ChangeLog 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. 2005-05-06 Ben Maurer <[email protected]>
  2. * StringBuilder.cs (InternalEnsureCapacity): It is possible that
  3. the size we attempt to grow to is more than the max capacity, but
  4. that a smaller size will do. In this case, don't throw an
  5. exception. Fixes #72244
  6. 2005-04-16 Atsushi Enomoto <[email protected]>
  7. * NormalizationForm.cs : new file.
  8. 2005-03-20 Ben Maurer <[email protected]>
  9. * StringBuilder.cs (set_Length): If we set the length, we must
  10. clobber the cached string.
  11. 2005-03-03 Gonzalo Paniagua Javier <[email protected]>
  12. * UnicodeEncoding.cs: same fix (\uFEFF) but for Unicode. Patch by
  13. Svetlana Zholkovsky.
  14. 2005-03-03 Gonzalo Paniagua Javier <[email protected]>
  15. * UTF7Encoding.cs: fix for characters encoded as a shifted sequence
  16. whose length is greater than 3. Patch by Svetlana Zholkovsky.
  17. 2005-01-31 Ben Maurer <[email protected]>
  18. * StringBuilder.cs (Remove): We need to do the check that the
  19. string isnt being cached *before* we munge it.
  20. 2005-01-21 Ben Maurer <[email protected]>
  21. * StringBuilder.cs: Don't allocate memory on the .ctor, do it
  22. lazily. This saves us lots of memory if you only use the
  23. stringbuilder once. Also, we can allocate on the second Append,
  24. which might reduce the number of buffers allocated.
  25. 2005-01-14 Lluis Sanches Gual <[email protected]>
  26. * StringBuilder.cs: Improved parameter check.
  27. 2005-01-11 Gonzalo Paniagua Javier <[email protected]>
  28. * StringBuilder.cs: when creating the StringBuilder from a string, the
  29. maximum capacity remains Int32.MaxValue.
  30. 2005-01-10 Gonzalo Paniagua Javier <[email protected]>
  31. * StringBuilder.cs: throw if the new size is greater than the maximum
  32. capacity for the StringBuilder. Patch by [email protected]. Fixes
  33. bug #62422.
  34. 2004-12-15 Sebastien Pouliot <[email protected]>
  35. * UTF7Encoding.cs: Fixed warning for unused variable.
  36. 2004-09-30 Juraj Skripsky <[email protected]>
  37. * Encoding.cs: Add encoding name "latin1" for compatibility with
  38. MS.NET.
  39. 2004-09-25 Zoltan Varga <[email protected]>
  40. * StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.
  41. 2004-09-09 Tim Coleman <[email protected]>
  42. * StringBuilder.cs: Added AppendLine methods for Fx 2.0
  43. 2004-06-23 Sebastien Pouliot <[email protected]>
  44. * UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
  45. Follow the RFC1642 rules for "overbits".
  46. 2004-06-15 Gert Driesen <[email protected]>
  47. * ASCIIEncoding.cs: added TODO for serialization
  48. * StringBuilder.cs: added TODO for serialization
  49. * UnicodeEncoding.cs: added TODO for serialization
  50. * UTF7Encoding.cs: added TODO for serialization
  51. * UTF8Encoding.cs: added TODO for serialization
  52. 2004-06-10 Gert Driesen <[email protected]>
  53. * Encoding.cs: Marked protected internal field as internal to
  54. fix API signature
  55. 2004-06-07 Atsushi Enomoto <[email protected]>
  56. * UTF8Encoding.cs : Length check must be done only when the character
  57. sequence is valid (i.e. should not check when it is overlongs).
  58. See also TestThrowOnInvalid().
  59. 2004-06-07 Atsushi Enomoto <[email protected]>
  60. * UTF8Encoding.cs : Added Overlong check to InternalGetCharCount().
  61. 2004-06-07 Atsushi Enomoto <[email protected]>
  62. * UTF8Encoding.cs : Throw overlongs error only when throwOnInvalid is
  63. true. Otherwise just ignore them.
  64. 2004-05-26 Sebastien Pouliot <[email protected]>
  65. * StringBuilder.cs: Fixed potential integer overflows in several
  66. methods.
  67. 2004-05-14 Sebastien Pouliot <[email protected]>
  68. * UTF8Encoding.cs: Moved charCount-- after the check for surrogate
  69. pair. This fix bug #57009 (and 2 failing unit tests). Added code
  70. to check for some (like MS) overlongs.
  71. 2004-05-03 Lluis Sanches Gual <[email protected]>
  72. * Encoding.cs: Use name const to load I18N assembly.
  73. 2004-04-25 Andreas Nahr <[email protected]>
  74. * Encoding.cs: Call shortcut String.ToLowerInvariant
  75. 2004-04-13 Miguel de Icaza <[email protected]>
  76. * Encoding.cs: Use new internal codepage setup.
  77. 2004-04-10 Atsushi Enomoto <[email protected]>
  78. * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
  79. 2004-03-19 Dick Porter <[email protected]>
  80. * UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
  81. BOM at the beginning of the range of characters we're interested
  82. in, not at the beginning of the array. Fixes bug 51531.
  83. 2004-03-10 Juraj Skripsky <[email protected]>
  84. * StringBuilder.cs
  85. (Insert int, char[]): fix by using new string(char[]) instead of
  86. char[].ToString() and simplify.
  87. (Insert int, string, int): add LAMESPEC note.
  88. (Insert int char[], int, int): handle value==null according to spec.
  89. Use a string instead of char array + Array.Copy (gonzalo)
  90. 2004-03-08 Gonzalo Paniagua Javier <[email protected]>
  91. * StringBuilder.cs:
  92. (Append (string)): remove redundant check.
  93. 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
  94. * StringBuilder.cs:
  95. (Remove): fixed offsets when copying and set the new size. Fixes bug
  96. #53240.
  97. 2004-01-13 Gonzalo Paniagua Javier <[email protected]>
  98. * StringBuilder.cs: added checks for null in a few Append methods.
  99. Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <[email protected]>
  100. * StringBuilder.cs: fixed start offset in Append(char).
  101. 2004-01-12 Patrik Torstensson
  102. * StringBuilder.cs: new implementation that uses
  103. string as a buffer instead of a array of chars.
  104. 2003-12-07 Ben Maurer <[email protected]>
  105. * UTF8Encoding.cs (GetBytes string): Do not call base
  106. The version in Encoding will call string.ToCharArray (),
  107. allocating an extra array. By calling the better method
  108. in our own class we can save memory.
  109. 2003-11-17 Ben Maurer <[email protected]>
  110. * StringBuilder.cs (Insert int, char): It is really silly and
  111. wasteful to allocate an array here. We can just copy the value
  112. over.
  113. 2003-11-11 Miguel de Icaza <[email protected]>
  114. * Encoding.cs: Use an internal variable to track the parameters of
  115. each encoder, since the .NET API does not expose virtual methods
  116. in the child classes, we should not depend on that.
  117. * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
  118. Initialize the parameters for base class encoding here.
  119. 2003-09-01 Miguel de Icaza <[email protected]>
  120. * Encoding.cs (UTF8Unmarked): make it also not error out on
  121. invalid input, that is what the Microsoft default is for the
  122. StreamReader and BinaryReader expect (our main consumers).
  123. 2003-08-21 Ben Maurer <[email protected]>
  124. * StringBuilder.cs
  125. (AppendFormat) Use FormatHelper in System.String to avoid
  126. allocating an extra StringBuilder.
  127. (Append string, int, int), (Append char, int): Both were
  128. allocating extra strings.
  129. 2003-06-05 Nick Drochak <[email protected]>
  130. * UTF8Encoding.cs: Cleanups according to class status page
  131. 2003-05-10 Miguel de Icaza <[email protected]>
  132. * Encoding.cs (GetEncoding): Add all the aliases documented in the
  133. framework. We were missing a few.
  134. Reorganize the table. Also, convert the input name into the
  135. lower-case - to _ before we compare against our table.
  136. 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
  137. * StringBuilder.cs: fixed bug #41397.
  138. 2003-04-12 Miguel de Icaza <[email protected]>
  139. * Encoding.cs: Enabled the code paths that we did have commented
  140. out, they seem to work now.
  141. Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <[email protected]>
  142. * StringBuilder.cs: cache the result from ToString().
  143. 2003-03-18 Atsushi Enomoto <[email protected]>
  144. * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
  145. (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
  146. 2003-03-05 Gonzalo Paniagua Javier <[email protected]>
  147. * ASCIIEncoding.cs: fixed bug #38984.
  148. 2003-03-05 Aleksey Demakov <[email protected]>
  149. * ASCIIEncoding.cs:
  150. * Latin1Encoding.cs: fix GetString (byte[]) and
  151. GetString (byte[], int, int) for zero-length case.
  152. 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
  153. * Latin1Encoding.cs: added Serializable attribute.
  154. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  155. * Encoding.cs: removed UnixConsoleEncoding.
  156. 2003-01-30 Zoltan Varga <[email protected]>
  157. * StringBuilder.cs: fix the constructor: 'value' can be NULL,
  158. 'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
  159. This fixes the StringBuilder unit tests.
  160. 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
  161. * StringBuilder.cs: fixed typo in set_Length.
  162. 2002-12-12 Gonzalo Paniagua Javier <[email protected]>
  163. * Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
  164. encoding is not found, default to UTF8Unmarked. Removed comment in
  165. UnixConsoleEncoding, because it's now Default, which gets the
  166. encoding internally using g_get_encoding ().
  167. 2002-12-01 Gonzalo Paniagua Javier <[email protected]>
  168. * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
  169. Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <[email protected]>
  170. * UTF8Encoding.cs: fix GetByteCount (), too.
  171. 2002-11-19 Miguel de Icaza <[email protected]>
  172. * UnicodeEncoding.cs: the bytemark should only be used to return
  173. information in GetPreamble, not to actually encode the information
  174. on the stream. That is taken care of by the Stream classes.
  175. * UTF8Encoding.cs: ditto.
  176. 2002-11-13 Gonzalo Paniagua Javier <[email protected]>
  177. * StringBuilder.cs: only move the remaining chars in Remove.
  178. 2002-11-05 Gonzalo Paniagua Javier <[email protected]>
  179. * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
  180. locking whenever possible.
  181. 2002-10-30 Miguel de Icaza <[email protected]>
  182. * Encoding.cs (UTF8Unmarked): New static property, used to return
  183. a no-markers UTf8 encoder, used in a few places in the class library.
  184. 2002-09-06 Miguel de Icaza <[email protected]>
  185. * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
  186. what the Microsoft version does.
  187. (UnixConsoleEncoding): New internal method, used to get the
  188. encoding, in the future, this should pull the locale, map to
  189. charset and then code page.
  190. Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <[email protected]>
  191. * Encoding.cs: use icall to get default codepage.
  192. * DefaultEncoding.cs: remove useless class.
  193. Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <[email protected]>
  194. * *.cs: change to conform to mono coding style.
  195. 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
  196. * ASCIIEncoding.cs:
  197. * Decoder.cs:
  198. * Encoder.cs:
  199. * Encoding.cs:
  200. * UTF7Encoding.cs:
  201. * UTF8Encoding.cs:
  202. * UnicodeEncoding.cs: added Serializable attribute.
  203. 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
  204. * StringBuilder.cs: improved performace by using String.InternalCopyTo
  205. instead of using ToCharArray all over the place (more that 50% of
  206. speed improvement when using Append).
  207. Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <[email protected]>
  208. * *.cs: imported the code donated by Rhys Weatherley
  209. <[email protected]>.
  210. 2002-08-18 Dick Porter <[email protected]>
  211. * Encoding.cs: Make GetString() return a useful representation of
  212. the bytes, rather than "System.Char[]"
  213. 2002-08-03 Gonzalo Paniagua Javier <[email protected]>
  214. * StringBuilder.cs: added IndexerName to indexer.
  215. 2002-08-01 Jason Diamond <[email protected]>
  216. * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
  217. converting chars to bytes.
  218. 2002-07-13 Gonzalo Paniagua Javier <[email protected]>
  219. * StringBuilder.cs: updated comments. MaxCapacity always returns
  220. Int32.MaxValue.
  221. 2002-06-21 Gonzalo Paniagua Javier <[email protected]>
  222. * StringBuilder.cs: implemented AppendFormat methods using
  223. String.Format. Thanks Paolo!
  224. This makes xsp generate correct C# output in linux :-). I still need
  225. to do more testing, though.
  226. Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <[email protected]>
  227. * ASCIIEncoding.cs: fixed handling of 0 bytecount.
  228. 2002-05-19 Martin Baulig <[email protected]>
  229. * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
  230. Added exception handling.
  231. * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
  232. Added exception handling.
  233. 2002/04/02 Nick Drochak <[email protected]>
  234. * StringBuilder.cs (Append): Removed obsolete overload.
  235. 2002-03-21 Mike Kestner <[email protected]>
  236. * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
  237. Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <[email protected]>
  238. * StringBuilder.cs: no need to intern the string returned by ToString().
  239. 2002-03-17 Mike Kestner <[email protected]>
  240. * ASCIIEncoding.cs: Implement all the overridden methods. No longer
  241. dependent on iconv icalls.
  242. * Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
  243. to GetBytes.
  244. Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <[email protected]>
  245. * StringBuilder.cs: make ToString() return a interned string, this
  246. seems to be required to make switch on string work.
  247. Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <[email protected]>
  248. * StringBuilder.cs: make Append(char) do the smart thing.
  249. 2002-01-05 Ravi Pratap <[email protected]>
  250. * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs,
  251. UnicodeEncoding.cs: MonoTODO attribute marking.
  252. * StringBuilder.cs : Ditto.
  253. Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <[email protected]>
  254. * Encoding.cs: renamed some fields.
  255. * StringBuilder.cs: CLSCompliant updates.
  256. 2001-10-29 Nick Drochak <[email protected]>
  257. * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
  258. invalid. Just like MS does (as best as I can tell).
  259. Tests for these exceptions are now added to the unit tests as well.
  260. 2001-10-25 Nick Drochak <[email protected]>
  261. * StringBuilder.cs: Throw exception if they try to make a StringBuilder
  262. whose capacity is greater than the MaxCapacity.
  263. I added some tests for the constructors and the above exception. More
  264. coming soon.
  265. 2001-10-23 Nick Drochak <[email protected]>
  266. * StringBuilder.cs: Refactored constructor code into just one
  267. constructor. All the other construtors call it. Also supplied missing
  268. constructors so the class has all those in the spec.
  269. Added the MaxCapacity property as well, however this needs to be
  270. completed to return a value is related to the available system memory.
  271. 2001-10-07 Miguel de Icaza <[email protected]>
  272. * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
  273. UnicodeEncoding.cs: Corrected API.
  274. * UTF8Encoding.cs: Checked in changes from Rafael.
  275. 2001-08-28 Dietmar Maurer <[email protected]>
  276. * UTF8Encoding.cs: impl. clumsy GetBytes
  277. 2001-07-16 Marcin Szczepanski <[email protected]>
  278. * StringBuilder.cs (Text): Fixed.
  279. * StringBuilderTest.cs: Implement Test suite.
  280. 2001-07-12 Marcin Szczepanski <[email protected]>
  281. * StringBuilder.cs: Implemented.
  282. The only methods left unimplemented are the AppendFormat( ... )
  283. ones just because it's probably better to wait until some of the
  284. Format related classes are implemented. I've put that as a TODO
  285. comment at the top and created the methods with a "nop" body.
  286. 2001-06-26 Sean MacIsaac <[email protected]>
  287. * UnicodeEncoding.cs: Members added so that a clean compile is
  288. possible.
  289. * ASCIIEncoding.cs: Members added so that a clean compile is
  290. possible.
  291. * UTF7Encoding.cs: Members added so that a clean compile is
  292. possible.
  293. * UTF8Encoding.cs: Members added so that a clean compile is
  294. possible.
  295. * Encoding.cs: All public members included. Most members
  296. unimplemented.