ChangeLog 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. 2007-02-01 Gert Driesen <[email protected]>
  2. * Encoding.cs: Enabled ArgumentException in GetEncoding (string) again.
  3. In Encoding.Default, catch both ArgumentException and NotSupportException.
  4. 2007-02-01 Atsushi Enomoto <[email protected]>
  5. * Encoding.cs : the change broke the build, so reverted part of it.
  6. 2007-01-31 Gert Driesen <[email protected]>
  7. * Encoding.cs: Also set ParamName of the ArgumentException.
  8. 2007-01-31 Gert Driesen <[email protected]>
  9. * Encoding.cs: In GetEncoding (int) do not allow codepage value below zero
  10. and above 0xffff. Modified NotSupportedException to ArgumentException in
  11. GetEncoding (string).
  12. 2006-12-18 Atsushi Enomoto <[email protected]>
  13. * EncoderFallbackBuffer.cs : implement Reset().
  14. 2006-10-25 Ben Maurer <[email protected]>
  15. * Encoding.cs: Make the GetByteCcount method used fixed pointers
  16. removes quite a few allocations from Banshee.
  17. 2006-09-03 Zoltan Varga <[email protected]>
  18. * StringBuilder.cs (.ctor): Add a comment.
  19. 2006-08-24 Atsushi Enomoto <[email protected]>
  20. * Encoding.cs :
  21. Consider DecoderFallback and EncoderFallback in 2.0 Equals()
  22. and GetHashCode().
  23. * UTF32Encoding.cs, UTF7Encoding.cs :
  24. Fixed GetHashCode() and Equals() as well.
  25. Added several missing overrides in 2.0.
  26. 2006-08-24 Atsushi Enomoto <[email protected]>
  27. * Encoding.cs : implemented IsAlwaysNormalized().
  28. * Latin1Encoding.cs : IsAlwaysNormalized() does not return false
  29. for FormC.
  30. 2006-07-18 Kornél Pál <[email protected]>
  31. * ASCIIEncoding.cs: Fixed GetString () methods to use ASCII rather
  32. than new string (sbyte*, int, int) that uses Encoding.Default.
  33. * Latin1Encoding.cs: Fixed GetString () methods to use Latin 1 rather
  34. than new string (sbyte*, int, int) that uses Encoding.Default.
  35. 2006-07-11 Kornél Pál <[email protected]>
  36. * StringBuilder.cs: Pad the string with NULL characters when setting
  37. Length. This is now documented:
  38. http://msdn2.microsoft.com/en-us/library/system.text.stringbuilder.length.aspx
  39. 2006-07-06 Kornél Pál <[email protected]>
  40. * CodePageEncoding.cs: Corrected comments.
  41. * MLangCodePageEncoding.cs: Corrected comments. Removed unnesessary
  42. ArgumentExceptions in private constructors.
  43. * SurrogateEncoder.cs: Corrected comments.
  44. 2006-07-05 Kornél Pál <[email protected]>
  45. * CodePageEncoding.cs: Return the same real object in subsequent
  46. calls to GetRealObject ().
  47. * MLangCodePageEncoding.cs: Return the same real object in
  48. subsequent calls to GetRealObject (). Rename Encoder and Decoder
  49. MLangEncoder and MLangDecoder. These classes are not serializable
  50. in 1.x although MS.NET 2.0 can deserialize them.
  51. * SurrogateEncoder.cs: Return the same real object in subsequent
  52. calls to GetRealObject ().
  53. 2006-07-04 Kornél Pál <[email protected]>
  54. * CodePageEncoding.cs: Added comment on usage.
  55. * MLangCodePageEncoding.cs: Added comment on usage.
  56. * SurrogateEncoder.cs: Added comment on usage.
  57. 2006-07-03 Kornél Pál <[email protected]>
  58. * CodePageEncoding.cs: Added.
  59. * MLangCodePageEncoding.cs: Added.
  60. * SurrogateEncoder.cs: Added.
  61. 2006-06-27 Atsushi Enomoto <[email protected]>
  62. * EncodingInfo.cs : EncodingName is WebName, not EncodingName.
  63. 2006-06-24 Kornél Pál <[email protected]>
  64. * UnicodeEncoding.cs: Don't detect byte order. Only readers like
  65. StreamReader should detect byte order marks.
  66. 2006-06-21 Kornél Pál <[email protected]>
  67. * Encoding.cs: Return big-endian UTF-32 in GetEncodings () and
  68. GetEncoding (int)
  69. 2006-06-06 Kornél Pál <[email protected]>
  70. * UnicodeEncoding.cs: Override GetString (byte [], int, int) in
  71. profile 1.x as well because performance improvement is worth the
  72. signature difference. (Fix regression of r61250.)
  73. 2006-05-30 Gert Driesen <[email protected]>
  74. * ASCIIEncoding.cs: Marked class ComVisible (true) on 2.0 profile.
  75. Marked 2.0-only members as ComVisible (false).
  76. * Decoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
  77. 2.0-only members as ComVisible (false).
  78. * Encoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
  79. 2.0-only members as ComVisible (false).
  80. * Encoding.cs: Marked class ComVisible (true) on 2.0 profile. Marked
  81. 2.0-only members as ComVisible (false).
  82. * NormalizationForm.cs: Marked ComVisible (true).
  83. * StringBuilder.cs: Marked class ComVisible (true) on 2.0 profile.
  84. Marked 2.0-only methods as ComVisible (false).
  85. * UnicodeEncoding.cs: GetString (byte[], int, int) is only available
  86. in 2.0 profile. Marked 2.0-only methods ComVisible (false). Added
  87. missing ctor in 2.0 profile, and marked in MonoTODO.
  88. * UTF7Encoding.cs: Marked class ComVisible (true) on 2.0 profile.
  89. * UTF8Encoding.cs: Marked 2.0-only methods as ComVisible (false).
  90. 2006-05-25 Atsushi Enomoto <[email protected]>
  91. * EncodingInfo.cs, Encoding.cs :
  92. Implemented Encoding.GetEncodings(). It's so hacky!
  93. 2006-04-13 Kornél Pál <[email protected]>
  94. * Encoding.cs: GetString (byte []): Wrap GetString (byte [], int, int)
  95. as MS.NET does. This is a more reasonable high level wrapper
  96. implementation.
  97. * UnicodeEncoding.cs: GetBytes (string): Implement as a wrapper
  98. instead of using GetBytesInternal to be MS.NET compatible.
  99. Override GetString (byte [], int, int) to speed up string creation.
  100. 2006-04-13 Atsushi Enomoto <[email protected]>
  101. * ASCIIEncoding.cs : 2.0 decoder fallback support was missing.
  102. 2006-03-30 Atsushi Enomoto <[email protected]>
  103. * Encoder.cs, Decoder.cs : implemented Convert(). Also added argument
  104. check in some methods.
  105. 2006-03-30 Atsushi Enomoto <[email protected]>
  106. * ASCIIEncoding.cs : added overriden methods in NET_2_0 (maybe
  107. there are optimizations, but for now we need something just works).
  108. 2006-03-24 Atsushi Enomoto <[email protected]>
  109. * UTF8Encoding.cs : made internal implementation as pointer-based,
  110. and added pointer-based converter method overloads.
  111. 2006-03-21 Kornél Pál <[email protected]>
  112. * UnicodeEncoding.cs: Use unsafe code for copying characters to speed
  113. up conversion.
  114. 2006-03-09 Zoltan Varga <[email protected]>
  115. * Encoding.cs: Add stub for net 2.0 GetEncodings () method.
  116. 2006-02-14 Atsushi Enomoto <[email protected]>
  117. * UTF8Encoding.cs : Fallback was indicating incorrect index.
  118. Fixed bug #77550.
  119. 2006-02-10 Atsushi Enomoto <[email protected]>
  120. * ASCIIEncoding.cs : (GetChars) reduced either one store or one jump
  121. in IL. 10% performance improvement.
  122. 2006-02-03 Atsushi Enomoto <[email protected]>
  123. * UTF8Encoding.cs : avoid possible overflow.
  124. 2006-02-03 Atsushi Enomoto <[email protected]>
  125. * UTF8Encoding.cs : In zero-charbuffer case, byte buffer count should
  126. be checked. Also it should not ignore leftOver characters even if
  127. byte buffer length is 0.
  128. 2006-02-03 Atsushi Enomoto <[email protected]>
  129. * UTF8Encoding.cs : Fast path optimization for InternalGetByteCount()
  130. and InternalGetBytes().
  131. 2006-02-03 Atsushi Enomoto <[email protected]>
  132. * UTF8Encoding.cs :
  133. actually leftover bits needs more careful handleding. So it's
  134. better to be rather close to the original GetBytes().
  135. Also changed leftOver handling so that it will be able to support
  136. fallback.
  137. 2006-02-03 Atsushi Enomoto <[email protected]>
  138. * UTF8Encoding.cs :
  139. GetBytes(string, ...) could reuse InternalGetBytes() using fixed
  140. pointers. However, InternalGetBytes() was slower than
  141. GetBytes(string, ...), so first replaced existing InternalGetBytes()
  142. with GetBytes() internals, and GetBytes(string, ...) switched to
  143. InternalGetBytes(). Now GetBytes() implementation code is reduced
  144. to one method.
  145. 2006-02-02 Atsushi Enomoto <[email protected]>
  146. * UTF8Encoding.cs : fast path optimization was pretty insufficient.
  147. Now it handles the entire bytes, not just half of them.
  148. 2006-02-02 Atsushi Enomoto <[email protected]>
  149. * UTF8Encoding.cs : zero-length check was wrong. Check it by
  150. "charIndex == chars.Length" instead of "charCount == 0".
  151. 2006-02-02 Atsushi Enomoto <[email protected]>
  152. * UTF8Encoding.cs : switched GetBytes() to pointer-based code.
  153. Implemented 2.0 pointer-based GetBytes(). 10% perf. improvement.
  154. 2006-01-30 Atsushi Enomoto <[email protected]>
  155. * UTF8Encoding.cs : InternalGetCharCount() optimization again, and
  156. this time InternalGetChars() as well.
  157. 2006-01-24 Mike Glenn <[email protected]>
  158. * StringBuilder.cs: Avoid computing computation for the string
  159. length twice.
  160. 2006-01-24 Atsushi Enomoto <[email protected]>
  161. * UTF8Encoding.cs : reverted the previous change. Looks like it broke
  162. the build.
  163. 2006-01-24 Atsushi Enomoto <[email protected]>
  164. * UTF8Encoding.cs : InternalGetCharCount() optimization: fast path
  165. for ASCII range.
  166. 2006-01-24 Atsushi Enomoto <[email protected]>
  167. * UTF7Encoding.cs UTF8Encoding.cs :
  168. Fixed bug #77315 (Patch by [email protected]).
  169. Make strict check for invalid surrogate.
  170. 2006-01-23 Atsushi Enomoto <[email protected]>
  171. * EncoderFallbackException.cs EncoderExceptionFallback.cs
  172. DecoderFallbackBuffer.cs EncoderReplacementFallback.cs
  173. EncoderFallbackBuffer.cs DecoderExceptionFallbackBuffer.cs
  174. EncoderFallback.cs DecoderReplacementFallbackBuffer.cs
  175. DecoderFallbackException.cs DecoderExceptionFallback.cs
  176. DecoderReplacementFallback.cs EncoderExceptionFallbackBuffer.cs
  177. EncoderReplacementFallbackBuffer.cs :
  178. include them in net_2_0bootstrap build.
  179. 2006-01-20 Atsushi Enomoto <[email protected]>
  180. * Decoder.cs : ditto.
  181. 2006-01-20 Atsushi Enomoto <[email protected]>
  182. * Encoder.cs : Fallback should be initialized to have an instance.
  183. 2006-01-20 Atsushi Enomoto <[email protected]>
  184. * Encoding.cs : Cloned instances should not be read-only.
  185. 2005-12-08 Atsushi Enomoto <[email protected]>
  186. * UTF8Encoding.cs : (GetChars) let ABCREM work effectively.
  187. 2005-12-08 Atsushi Enomoto <[email protected]>
  188. * Encoding.cs : now under 2.0 GetBytes(string,...) dispatches to
  189. byte*-based GetBytes().
  190. * UTF8Encoding.cs : avoid extraneous DecoderFallbackBuffer creation
  191. which came to happen after introducing fallback buffer.
  192. 2005-11-28 Atsushi Enomoto <[email protected]>
  193. * Encoding.cs, ASCIIEncoding.cs, Latin1Encoding.cs :
  194. Added IsSingleByte.
  195. 2005-11-28 Atsushi Enomoto <[email protected]>
  196. * Encoder.cs : added new GetByteCount()/GetBytes() overloads.
  197. Added FallbackBuffer.
  198. * Decoder.cs : added new GetCharCount()/GetChars() overloads.
  199. 2005-11-28 Atsushi Enomoto <[email protected]>
  200. * EncodingInfo.cs : new file.
  201. 2005-11-28 Atsushi Enomoto <[email protected]>
  202. * UTF32Encoding.cs : Sealed. Added the overload which has
  203. throwOnInvalid parameter.
  204. * NormalizationForm.cs : removed [Serializable].
  205. 2005-11-28 Atsushi Enomoto <[email protected]>
  206. * Encoding.cs : added UTF32.
  207. 2005-11-28 Atsushi Enomoto <[email protected]>
  208. * UTF32Encoding.cs : surrogate pairs vanished in GetBytes() when the
  209. endianness is big.
  210. 2005-11-28 Atsushi Enomoto <[email protected]>
  211. * UTF32Encoding.cs : new file.
  212. 2005-11-22 Atsushi Enomoto <[email protected]>
  213. * ASCIIEncoding.cs, Latin1Encoding.cs : added EncoderFallback support.
  214. * Encoding.cs : changed default fallback selection. Seems like only
  215. ASCII and GB18030 uses '?' for replacement.
  216. * UTF8Encoding.cs : now that Fallback is read only by default, we
  217. need special setter.
  218. 2005-11-16 Atsushi Enomoto <[email protected]>
  219. * UTF8Encoding.cs : safer UTF8Decoder ctor.
  220. 2005-11-16 Atsushi Enomoto <[email protected]>
  221. * Decoder.cs : added FallbackBuffer property.
  222. * UTF8Encoding.cs : In NET_2_0, use DecoderFallbackBuffer instead of
  223. "throwOnInvalid".
  224. 2005-11-15 Atsushi Enomoto <[email protected]>
  225. * DecoderReplacementFallbackBuffer.cs : it does not have to preserve
  226. byte buffer.
  227. * EncoderReplacementFallbackBuffer.cs : implemented.
  228. * DecoderReplacementFallback.cs, EncoderReplacementFallback.cs :
  229. Removed MonoTODO.
  230. 2005-11-15 Atsushi Enomoto <[email protected]>
  231. * DecoderFallbackBuffer.cs : Reset() does nothing here.
  232. * DecoderReplacementFallbackBuffer.cs : implemented, but no idea how
  233. bytesUnknown is used.
  234. 2005-11-15 Atsushi Enomoto <[email protected]>
  235. * Encoding.cs : added ICloneable, Clone() and new GetEncoding().
  236. 2005-11-15 Atsushi Enomoto <[email protected]>
  237. * Encoding.cs : Added IsReadOnly, DecoderFallback and EncoderFallback.
  238. * Encoder.cs : Added Fallback property.
  239. * Decoder.cs : Added Fallback property.
  240. 2005-11-15 Atsushi Enomoto <[email protected]>
  241. * EncoderFallbackBuffer.cs, EncoderFallback.cs,
  242. EncoderExceptionFallbackBuffer.cs,
  243. EncoderReplacementFallbackBuffer.cs,
  244. EncoderFallbackException.cs,
  245. EncoderExceptionFallback.cs,
  246. EncoderReplacementFallback.cs : new files (not actually used yet).
  247. * DecoderExceptionFallback.cs, DecoderFallbackException.cs,
  248. DecoderReplacementFallback.cs : [Serializable] and sealed.
  249. * DecoderReplacementFallbackBuffer.cs : Reset() was missing.
  250. 2005-11-14 Atsushi Enomoto <[email protected]>
  251. * DecoderFallbackBuffer.cs, DecoderFallback.cs,
  252. DecoderExceptionFallbackBuffer.cs,
  253. DecoderReplacementFallbackBuffer.cs,
  254. DecoderFallbackException.cs,
  255. DecoderExceptionFallback.cs,
  256. DecoderReplacementFallback.cs : new files (not actually used yet).
  257. 2005-11-14 Miguel de Icaza <[email protected]>
  258. * ASCIIEncoding.cs, Encoding: Another snack, just a few methods
  259. missing.
  260. Also add some checks that were missing.
  261. 2005-11-11 Sebastien Pouliot <[email protected]>
  262. * StringBuilder.cs: Fix ISerializable.GetObjectData (remoting tests
  263. were failing under 2.0) and two possible integer overflow in CopyTo.
  264. 2005-11-11 Miguel de Icaza <[email protected]>
  265. * Encoding.cs, UnicodeEncoding.cs: A few 2.x methods.
  266. * StringBuilder.cs (Text): Added serialization support in 2.x.
  267. 2005-10-22 Jonathan Pryor <[email protected]>
  268. * UTF8Encoding.cs (InternalGetChars/InternalGetCharCount): Fix lead byte
  269. check logic for 6 octet sequences. ((ch & 0xFC) == 0xFC) is always true
  270. for 0xFF, even though 0xFF isn't a valid lead byte. It should be
  271. ((ch & 0xFE) == 0xFC).
  272. 2005-08-25 Atsushi Enomoto <[email protected]>
  273. * UTF8Encoding.cs : (InternalGetChars/InternalGetCharCount):
  274. Don't exclude FEFF in the resulting text.
  275. 2005-06-21 Ben Maurer <[email protected]>
  276. * StringBuilder.cs (Replace): Do the correct thing when we replace
  277. with a longer string. Thanks to Alexander Beznozdrev
  278. <[email protected]>
  279. 2005-05-26 Ben Maurer <[email protected]>
  280. * Encoding.cs: Use static object for locking. `volatile' to
  281. prevent double checked locking error.
  282. * StringBuilder.cs: Remove = null inits on fields, saves a few
  283. instructions. When we compare _cached_str == _str, we are only
  284. interested in pointer based equality, so just do that.
  285. 2005-05-06 Ben Maurer <[email protected]>
  286. * StringBuilder.cs (InternalEnsureCapacity): It is possible that
  287. the size we attempt to grow to is more than the max capacity, but
  288. that a smaller size will do. In this case, don't throw an
  289. exception. Fixes #72244
  290. 2005-04-16 Atsushi Enomoto <[email protected]>
  291. * NormalizationForm.cs : new file.
  292. 2005-03-20 Ben Maurer <[email protected]>
  293. * StringBuilder.cs (set_Length): If we set the length, we must
  294. clobber the cached string.
  295. 2005-03-03 Gonzalo Paniagua Javier <[email protected]>
  296. * UnicodeEncoding.cs: same fix (\uFEFF) but for Unicode. Patch by
  297. Svetlana Zholkovsky.
  298. 2005-03-03 Gonzalo Paniagua Javier <[email protected]>
  299. * UTF7Encoding.cs: fix for characters encoded as a shifted sequence
  300. whose length is greater than 3. Patch by Svetlana Zholkovsky.
  301. 2005-01-31 Ben Maurer <[email protected]>
  302. * StringBuilder.cs (Remove): We need to do the check that the
  303. string isnt being cached *before* we munge it.
  304. 2005-01-21 Ben Maurer <[email protected]>
  305. * StringBuilder.cs: Don't allocate memory on the .ctor, do it
  306. lazily. This saves us lots of memory if you only use the
  307. stringbuilder once. Also, we can allocate on the second Append,
  308. which might reduce the number of buffers allocated.
  309. 2005-01-14 Lluis Sanches Gual <[email protected]>
  310. * StringBuilder.cs: Improved parameter check.
  311. 2005-01-11 Gonzalo Paniagua Javier <[email protected]>
  312. * StringBuilder.cs: when creating the StringBuilder from a string, the
  313. maximum capacity remains Int32.MaxValue.
  314. 2005-01-10 Gonzalo Paniagua Javier <[email protected]>
  315. * StringBuilder.cs: throw if the new size is greater than the maximum
  316. capacity for the StringBuilder. Patch by [email protected]. Fixes
  317. bug #62422.
  318. 2004-12-15 Sebastien Pouliot <[email protected]>
  319. * UTF7Encoding.cs: Fixed warning for unused variable.
  320. 2004-09-30 Juraj Skripsky <[email protected]>
  321. * Encoding.cs: Add encoding name "latin1" for compatibility with
  322. MS.NET.
  323. 2004-09-25 Zoltan Varga <[email protected]>
  324. * StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.
  325. 2004-09-09 Tim Coleman <[email protected]>
  326. * StringBuilder.cs: Added AppendLine methods for Fx 2.0
  327. 2004-06-23 Sebastien Pouliot <[email protected]>
  328. * UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
  329. Follow the RFC1642 rules for "overbits".
  330. 2004-06-15 Gert Driesen <[email protected]>
  331. * ASCIIEncoding.cs: added TODO for serialization
  332. * StringBuilder.cs: added TODO for serialization
  333. * UnicodeEncoding.cs: added TODO for serialization
  334. * UTF7Encoding.cs: added TODO for serialization
  335. * UTF8Encoding.cs: added TODO for serialization
  336. 2004-06-10 Gert Driesen <[email protected]>
  337. * Encoding.cs: Marked protected internal field as internal to
  338. fix API signature
  339. 2004-06-07 Atsushi Enomoto <[email protected]>
  340. * UTF8Encoding.cs : Length check must be done only when the character
  341. sequence is valid (i.e. should not check when it is overlongs).
  342. See also TestThrowOnInvalid().
  343. 2004-06-07 Atsushi Enomoto <[email protected]>
  344. * UTF8Encoding.cs : Added Overlong check to InternalGetCharCount().
  345. 2004-06-07 Atsushi Enomoto <[email protected]>
  346. * UTF8Encoding.cs : Throw overlongs error only when throwOnInvalid is
  347. true. Otherwise just ignore them.
  348. 2004-05-26 Sebastien Pouliot <[email protected]>
  349. * StringBuilder.cs: Fixed potential integer overflows in several
  350. methods.
  351. 2004-05-14 Sebastien Pouliot <[email protected]>
  352. * UTF8Encoding.cs: Moved charCount-- after the check for surrogate
  353. pair. This fix bug #57009 (and 2 failing unit tests). Added code
  354. to check for some (like MS) overlongs.
  355. 2004-05-03 Lluis Sanches Gual <[email protected]>
  356. * Encoding.cs: Use name const to load I18N assembly.
  357. 2004-04-25 Andreas Nahr <[email protected]>
  358. * Encoding.cs: Call shortcut String.ToLowerInvariant
  359. 2004-04-13 Miguel de Icaza <[email protected]>
  360. * Encoding.cs: Use new internal codepage setup.
  361. 2004-04-10 Atsushi Enomoto <[email protected]>
  362. * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
  363. 2004-03-19 Dick Porter <[email protected]>
  364. * UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
  365. BOM at the beginning of the range of characters we're interested
  366. in, not at the beginning of the array. Fixes bug 51531.
  367. 2004-03-10 Juraj Skripsky <[email protected]>
  368. * StringBuilder.cs
  369. (Insert int, char[]): fix by using new string(char[]) instead of
  370. char[].ToString() and simplify.
  371. (Insert int, string, int): add LAMESPEC note.
  372. (Insert int char[], int, int): handle value==null according to spec.
  373. Use a string instead of char array + Array.Copy (gonzalo)
  374. 2004-03-08 Gonzalo Paniagua Javier <[email protected]>
  375. * StringBuilder.cs:
  376. (Append (string)): remove redundant check.
  377. 2004-01-23 Gonzalo Paniagua Javier <[email protected]>
  378. * StringBuilder.cs:
  379. (Remove): fixed offsets when copying and set the new size. Fixes bug
  380. #53240.
  381. 2004-01-13 Gonzalo Paniagua Javier <[email protected]>
  382. * StringBuilder.cs: added checks for null in a few Append methods.
  383. Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <[email protected]>
  384. * StringBuilder.cs: fixed start offset in Append(char).
  385. 2004-01-12 Patrik Torstensson
  386. * StringBuilder.cs: new implementation that uses
  387. string as a buffer instead of a array of chars.
  388. 2003-12-07 Ben Maurer <[email protected]>
  389. * UTF8Encoding.cs (GetBytes string): Do not call base
  390. The version in Encoding will call string.ToCharArray (),
  391. allocating an extra array. By calling the better method
  392. in our own class we can save memory.
  393. 2003-11-17 Ben Maurer <[email protected]>
  394. * StringBuilder.cs (Insert int, char): It is really silly and
  395. wasteful to allocate an array here. We can just copy the value
  396. over.
  397. 2003-11-11 Miguel de Icaza <[email protected]>
  398. * Encoding.cs: Use an internal variable to track the parameters of
  399. each encoder, since the .NET API does not expose virtual methods
  400. in the child classes, we should not depend on that.
  401. * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
  402. Initialize the parameters for base class encoding here.
  403. 2003-09-01 Miguel de Icaza <[email protected]>
  404. * Encoding.cs (UTF8Unmarked): make it also not error out on
  405. invalid input, that is what the Microsoft default is for the
  406. StreamReader and BinaryReader expect (our main consumers).
  407. 2003-08-21 Ben Maurer <[email protected]>
  408. * StringBuilder.cs
  409. (AppendFormat) Use FormatHelper in System.String to avoid
  410. allocating an extra StringBuilder.
  411. (Append string, int, int), (Append char, int): Both were
  412. allocating extra strings.
  413. 2003-06-05 Nick Drochak <[email protected]>
  414. * UTF8Encoding.cs: Cleanups according to class status page
  415. 2003-05-10 Miguel de Icaza <[email protected]>
  416. * Encoding.cs (GetEncoding): Add all the aliases documented in the
  417. framework. We were missing a few.
  418. Reorganize the table. Also, convert the input name into the
  419. lower-case - to _ before we compare against our table.
  420. 2003-05-10 Gonzalo Paniagua Javier <[email protected]>
  421. * StringBuilder.cs: fixed bug #41397.
  422. 2003-04-12 Miguel de Icaza <[email protected]>
  423. * Encoding.cs: Enabled the code paths that we did have commented
  424. out, they seem to work now.
  425. Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <[email protected]>
  426. * StringBuilder.cs: cache the result from ToString().
  427. 2003-03-18 Atsushi Enomoto <[email protected]>
  428. * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
  429. (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
  430. 2003-03-05 Gonzalo Paniagua Javier <[email protected]>
  431. * ASCIIEncoding.cs: fixed bug #38984.
  432. 2003-03-05 Aleksey Demakov <[email protected]>
  433. * ASCIIEncoding.cs:
  434. * Latin1Encoding.cs: fix GetString (byte[]) and
  435. GetString (byte[], int, int) for zero-length case.
  436. 2003-02-19 Gonzalo Paniagua Javier <[email protected]>
  437. * Latin1Encoding.cs: added Serializable attribute.
  438. 2003-02-03 Gonzalo Paniagua Javier <[email protected]>
  439. * Encoding.cs: removed UnixConsoleEncoding.
  440. 2003-01-30 Zoltan Varga <[email protected]>
  441. * StringBuilder.cs: fix the constructor: 'value' can be NULL,
  442. 'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
  443. This fixes the StringBuilder unit tests.
  444. 2003-01-30 Gonzalo Paniagua Javier <[email protected]>
  445. * StringBuilder.cs: fixed typo in set_Length.
  446. 2002-12-12 Gonzalo Paniagua Javier <[email protected]>
  447. * Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
  448. encoding is not found, default to UTF8Unmarked. Removed comment in
  449. UnixConsoleEncoding, because it's now Default, which gets the
  450. encoding internally using g_get_encoding ().
  451. 2002-12-01 Gonzalo Paniagua Javier <[email protected]>
  452. * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
  453. Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <[email protected]>
  454. * UTF8Encoding.cs: fix GetByteCount (), too.
  455. 2002-11-19 Miguel de Icaza <[email protected]>
  456. * UnicodeEncoding.cs: the bytemark should only be used to return
  457. information in GetPreamble, not to actually encode the information
  458. on the stream. That is taken care of by the Stream classes.
  459. * UTF8Encoding.cs: ditto.
  460. 2002-11-13 Gonzalo Paniagua Javier <[email protected]>
  461. * StringBuilder.cs: only move the remaining chars in Remove.
  462. 2002-11-05 Gonzalo Paniagua Javier <[email protected]>
  463. * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
  464. locking whenever possible.
  465. 2002-10-30 Miguel de Icaza <[email protected]>
  466. * Encoding.cs (UTF8Unmarked): New static property, used to return
  467. a no-markers UTf8 encoder, used in a few places in the class library.
  468. 2002-09-06 Miguel de Icaza <[email protected]>
  469. * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
  470. what the Microsoft version does.
  471. (UnixConsoleEncoding): New internal method, used to get the
  472. encoding, in the future, this should pull the locale, map to
  473. charset and then code page.
  474. Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <[email protected]>
  475. * Encoding.cs: use icall to get default codepage.
  476. * DefaultEncoding.cs: remove useless class.
  477. Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <[email protected]>
  478. * *.cs: change to conform to mono coding style.
  479. 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
  480. * ASCIIEncoding.cs:
  481. * Decoder.cs:
  482. * Encoder.cs:
  483. * Encoding.cs:
  484. * UTF7Encoding.cs:
  485. * UTF8Encoding.cs:
  486. * UnicodeEncoding.cs: added Serializable attribute.
  487. 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
  488. * StringBuilder.cs: improved performace by using String.InternalCopyTo
  489. instead of using ToCharArray all over the place (more that 50% of
  490. speed improvement when using Append).
  491. Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <[email protected]>
  492. * *.cs: imported the code donated by Rhys Weatherley
  493. <[email protected]>.
  494. 2002-08-18 Dick Porter <[email protected]>
  495. * Encoding.cs: Make GetString() return a useful representation of
  496. the bytes, rather than "System.Char[]"
  497. 2002-08-03 Gonzalo Paniagua Javier <[email protected]>
  498. * StringBuilder.cs: added IndexerName to indexer.
  499. 2002-08-01 Jason Diamond <[email protected]>
  500. * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
  501. converting chars to bytes.
  502. 2002-07-13 Gonzalo Paniagua Javier <[email protected]>
  503. * StringBuilder.cs: updated comments. MaxCapacity always returns
  504. Int32.MaxValue.
  505. 2002-06-21 Gonzalo Paniagua Javier <[email protected]>
  506. * StringBuilder.cs: implemented AppendFormat methods using
  507. String.Format. Thanks Paolo!
  508. This makes xsp generate correct C# output in linux :-). I still need
  509. to do more testing, though.
  510. Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <[email protected]>
  511. * ASCIIEncoding.cs: fixed handling of 0 bytecount.
  512. 2002-05-19 Martin Baulig <[email protected]>
  513. * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
  514. Added exception handling.
  515. * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
  516. Added exception handling.
  517. 2002/04/02 Nick Drochak <[email protected]>
  518. * StringBuilder.cs (Append): Removed obsolete overload.
  519. 2002-03-21 Mike Kestner <[email protected]>
  520. * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
  521. Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <[email protected]>
  522. * StringBuilder.cs: no need to intern the string returned by ToString().
  523. 2002-03-17 Mike Kestner <[email protected]>
  524. * ASCIIEncoding.cs: Implement all the overridden methods. No longer
  525. dependent on iconv icalls.
  526. * Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
  527. to GetBytes.
  528. Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <[email protected]>
  529. * StringBuilder.cs: make ToString() return a interned string, this
  530. seems to be required to make switch on string work.
  531. Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <[email protected]>
  532. * StringBuilder.cs: make Append(char) do the smart thing.
  533. 2002-01-05 Ravi Pratap <[email protected]>
  534. * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs,
  535. UnicodeEncoding.cs: MonoTODO attribute marking.
  536. * StringBuilder.cs : Ditto.
  537. Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <[email protected]>
  538. * Encoding.cs: renamed some fields.
  539. * StringBuilder.cs: CLSCompliant updates.
  540. 2001-10-29 Nick Drochak <[email protected]>
  541. * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
  542. invalid. Just like MS does (as best as I can tell).
  543. Tests for these exceptions are now added to the unit tests as well.
  544. 2001-10-25 Nick Drochak <[email protected]>
  545. * StringBuilder.cs: Throw exception if they try to make a StringBuilder
  546. whose capacity is greater than the MaxCapacity.
  547. I added some tests for the constructors and the above exception. More
  548. coming soon.
  549. 2001-10-23 Nick Drochak <[email protected]>
  550. * StringBuilder.cs: Refactored constructor code into just one
  551. constructor. All the other construtors call it. Also supplied missing
  552. constructors so the class has all those in the spec.
  553. Added the MaxCapacity property as well, however this needs to be
  554. completed to return a value is related to the available system memory.
  555. 2001-10-07 Miguel de Icaza <[email protected]>
  556. * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
  557. UnicodeEncoding.cs: Corrected API.
  558. * UTF8Encoding.cs: Checked in changes from Rafael.
  559. 2001-08-28 Dietmar Maurer <[email protected]>
  560. * UTF8Encoding.cs: impl. clumsy GetBytes
  561. 2001-07-16 Marcin Szczepanski <[email protected]>
  562. * StringBuilder.cs (Text): Fixed.
  563. * StringBuilderTest.cs: Implement Test suite.
  564. 2001-07-12 Marcin Szczepanski <[email protected]>
  565. * StringBuilder.cs: Implemented.
  566. The only methods left unimplemented are the AppendFormat( ... )
  567. ones just because it's probably better to wait until some of the
  568. Format related classes are implemented. I've put that as a TODO
  569. comment at the top and created the methods with a "nop" body.
  570. 2001-06-26 Sean MacIsaac <[email protected]>
  571. * UnicodeEncoding.cs: Members added so that a clean compile is
  572. possible.
  573. * ASCIIEncoding.cs: Members added so that a clean compile is
  574. possible.
  575. * UTF7Encoding.cs: Members added so that a clean compile is
  576. possible.
  577. * UTF8Encoding.cs: Members added so that a clean compile is
  578. possible.
  579. * Encoding.cs: All public members included. Most members
  580. unimplemented.