1 2005-04-16 Atsushi Enomoto <atsushi@ximian.com>
3 * NormalizationForm.cs : new file.
5 2005-03-20 Ben Maurer <bmaurer@ximian.com>
7 * StringBuilder.cs (set_Length): If we set the length, we must
8 clobber the cached string.
10 2005-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12 * UnicodeEncoding.cs: same fix (\uFEFF) but for Unicode. Patch by
15 2005-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17 * UTF7Encoding.cs: fix for characters encoded as a shifted sequence
18 whose length is greater than 3. Patch by Svetlana Zholkovsky.
20 2005-01-31 Ben Maurer <bmaurer@ximian.com>
22 * StringBuilder.cs (Remove): We need to do the check that the
23 string isnt being cached *before* we munge it.
25 2005-01-21 Ben Maurer <bmaurer@ximian.com>
27 * StringBuilder.cs: Don't allocate memory on the .ctor, do it
28 lazily. This saves us lots of memory if you only use the
29 stringbuilder once. Also, we can allocate on the second Append,
30 which might reduce the number of buffers allocated.
32 2005-01-14 Lluis Sanches Gual <lluis@novell.com>
34 * StringBuilder.cs: Improved parameter check.
36 2005-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
38 * StringBuilder.cs: when creating the StringBuilder from a string, the
39 maximum capacity remains Int32.MaxValue.
41 2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
43 * StringBuilder.cs: throw if the new size is greater than the maximum
44 capacity for the StringBuilder. Patch by luke@octerbar.net. Fixes
47 2004-12-15 Sebastien Pouliot <sebastien@ximian.com>
49 * UTF7Encoding.cs: Fixed warning for unused variable.
51 2004-09-30 Juraj Skripsky <js@hotfeet.ch>
53 * Encoding.cs: Add encoding name "latin1" for compatibility with
56 2004-09-25 Zoltan Varga <vargaz@freemail.hu>
58 * StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.
60 2004-09-09 Tim Coleman <tim@timcoleman.com>
62 * StringBuilder.cs: Added AppendLine methods for Fx 2.0
64 2004-06-23 Sebastien Pouliot <sebastien@ximian.com>
66 * UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
67 Follow the RFC1642 rules for "overbits".
69 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
71 * ASCIIEncoding.cs: added TODO for serialization
72 * StringBuilder.cs: added TODO for serialization
73 * UnicodeEncoding.cs: added TODO for serialization
74 * UTF7Encoding.cs: added TODO for serialization
75 * UTF8Encoding.cs: added TODO for serialization
77 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
79 * Encoding.cs: Marked protected internal field as internal to
82 2004-06-07 Atsushi Enomoto <atsushi@ximian.com>
84 * UTF8Encoding.cs : Length check must be done only when the character
85 sequence is valid (i.e. should not check when it is overlongs).
86 See also TestThrowOnInvalid().
88 2004-06-07 Atsushi Enomoto <atsushi@ximian.com>
90 * UTF8Encoding.cs : Added Overlong check to InternalGetCharCount().
92 2004-06-07 Atsushi Enomoto <atsushi@ximian.com>
94 * UTF8Encoding.cs : Throw overlongs error only when throwOnInvalid is
95 true. Otherwise just ignore them.
97 2004-05-26 Sebastien Pouliot <sebastien@ximian.com>
99 * StringBuilder.cs: Fixed potential integer overflows in several
102 2004-05-14 Sebastien Pouliot <sebastien@ximian.com>
104 * UTF8Encoding.cs: Moved charCount-- after the check for surrogate
105 pair. This fix bug #57009 (and 2 failing unit tests). Added code
106 to check for some (like MS) overlongs.
108 2004-05-03 Lluis Sanches Gual <lluis@ximian.com>
110 * Encoding.cs: Use name const to load I18N assembly.
112 2004-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
114 * Encoding.cs: Call shortcut String.ToLowerInvariant
116 2004-04-13 Miguel de Icaza <miguel@ximian.com>
118 * Encoding.cs: Use new internal codepage setup.
120 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
122 * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
124 2004-03-19 Dick Porter <dick@ximian.com>
126 * UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
127 BOM at the beginning of the range of characters we're interested
128 in, not at the beginning of the array. Fixes bug 51531.
130 2004-03-10 Juraj Skripsky <juraj@hotfeet.ch>
133 (Insert int, char[]): fix by using new string(char[]) instead of
134 char[].ToString() and simplify.
135 (Insert int, string, int): add LAMESPEC note.
136 (Insert int char[], int, int): handle value==null according to spec.
137 Use a string instead of char array + Array.Copy (gonzalo)
139 2004-03-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
142 (Append (string)): remove redundant check.
144 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
147 (Remove): fixed offsets when copying and set the new size. Fixes bug
150 2004-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
152 * StringBuilder.cs: added checks for null in a few Append methods.
154 Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <lupus@ximian.com>
156 * StringBuilder.cs: fixed start offset in Append(char).
158 2004-01-12 Patrik Torstensson
160 * StringBuilder.cs: new implementation that uses
161 string as a buffer instead of a array of chars.
163 2003-12-07 Ben Maurer <bmaurer@users.sourceforge.net>
165 * UTF8Encoding.cs (GetBytes string): Do not call base
166 The version in Encoding will call string.ToCharArray (),
167 allocating an extra array. By calling the better method
168 in our own class we can save memory.
170 2003-11-17 Ben Maurer <bmaurer@users.sourceforge.net>
172 * StringBuilder.cs (Insert int, char): It is really silly and
173 wasteful to allocate an array here. We can just copy the value
176 2003-11-11 Miguel de Icaza <miguel@ximian.com>
178 * Encoding.cs: Use an internal variable to track the parameters of
179 each encoder, since the .NET API does not expose virtual methods
180 in the child classes, we should not depend on that.
182 * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
183 Initialize the parameters for base class encoding here.
185 2003-09-01 Miguel de Icaza <miguel@ximian.com>
187 * Encoding.cs (UTF8Unmarked): make it also not error out on
188 invalid input, that is what the Microsoft default is for the
189 StreamReader and BinaryReader expect (our main consumers).
191 2003-08-21 Ben Maurer <bmaurer@users.sourceforge.net>
194 (AppendFormat) Use FormatHelper in System.String to avoid
195 allocating an extra StringBuilder.
196 (Append string, int, int), (Append char, int): Both were
197 allocating extra strings.
199 2003-06-05 Nick Drochak <ndrochak@gol.com>
201 * UTF8Encoding.cs: Cleanups according to class status page
203 2003-05-10 Miguel de Icaza <miguel@ximian.com>
205 * Encoding.cs (GetEncoding): Add all the aliases documented in the
206 framework. We were missing a few.
208 Reorganize the table. Also, convert the input name into the
209 lower-case - to _ before we compare against our table.
211 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
213 * StringBuilder.cs: fixed bug #41397.
215 2003-04-12 Miguel de Icaza <miguel@ximian.com>
217 * Encoding.cs: Enabled the code paths that we did have commented
218 out, they seem to work now.
220 Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
222 * StringBuilder.cs: cache the result from ToString().
224 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
226 * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
227 (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
229 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
231 * ASCIIEncoding.cs: fixed bug #38984.
233 2003-03-05 Aleksey Demakov <avd@openlinksw.com>
236 * Latin1Encoding.cs: fix GetString (byte[]) and
237 GetString (byte[], int, int) for zero-length case.
239 2003-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
241 * Latin1Encoding.cs: added Serializable attribute.
243 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
245 * Encoding.cs: removed UnixConsoleEncoding.
247 2003-01-30 Zoltan Varga <vargaz@freemail.hu>
249 * StringBuilder.cs: fix the constructor: 'value' can be NULL,
250 'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
251 This fixes the StringBuilder unit tests.
253 2003-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
255 * StringBuilder.cs: fixed typo in set_Length.
257 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
259 * Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
260 encoding is not found, default to UTF8Unmarked. Removed comment in
261 UnixConsoleEncoding, because it's now Default, which gets the
262 encoding internally using g_get_encoding ().
264 2002-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
266 * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
268 Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <lupus@ximian.com>
270 * UTF8Encoding.cs: fix GetByteCount (), too.
272 2002-11-19 Miguel de Icaza <miguel@ximian.com>
274 * UnicodeEncoding.cs: the bytemark should only be used to return
275 information in GetPreamble, not to actually encode the information
276 on the stream. That is taken care of by the Stream classes.
278 * UTF8Encoding.cs: ditto.
280 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
282 * StringBuilder.cs: only move the remaining chars in Remove.
284 2002-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
286 * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
287 locking whenever possible.
289 2002-10-30 Miguel de Icaza <miguel@ximian.com>
291 * Encoding.cs (UTF8Unmarked): New static property, used to return
292 a no-markers UTf8 encoder, used in a few places in the class library.
294 2002-09-06 Miguel de Icaza <miguel@ximian.com>
296 * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
297 what the Microsoft version does.
299 (UnixConsoleEncoding): New internal method, used to get the
300 encoding, in the future, this should pull the locale, map to
301 charset and then code page.
303 Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
305 * Encoding.cs: use icall to get default codepage.
306 * DefaultEncoding.cs: remove useless class.
308 Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
310 * *.cs: change to conform to mono coding style.
312 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
320 * UnicodeEncoding.cs: added Serializable attribute.
322 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
324 * StringBuilder.cs: improved performace by using String.InternalCopyTo
325 instead of using ToCharArray all over the place (more that 50% of
326 speed improvement when using Append).
328 Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
330 * *.cs: imported the code donated by Rhys Weatherley
331 <rweather@southern-storm.com.au>.
333 2002-08-18 Dick Porter <dick@ximian.com>
335 * Encoding.cs: Make GetString() return a useful representation of
336 the bytes, rather than "System.Char[]"
338 2002-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
340 * StringBuilder.cs: added IndexerName to indexer.
342 2002-08-01 Jason Diamond <jason@injektilo.org>
344 * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
345 converting chars to bytes.
347 2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
349 * StringBuilder.cs: updated comments. MaxCapacity always returns
352 2002-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
354 * StringBuilder.cs: implemented AppendFormat methods using
355 String.Format. Thanks Paolo!
357 This makes xsp generate correct C# output in linux :-). I still need
358 to do more testing, though.
360 Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
362 * ASCIIEncoding.cs: fixed handling of 0 bytecount.
364 2002-05-19 Martin Baulig <martin@gnome.org>
366 * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
367 Added exception handling.
369 * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
370 Added exception handling.
372 2002/04/02 Nick Drochak <ndrochak@gol.com>
374 * StringBuilder.cs (Append): Removed obsolete overload.
376 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
378 * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
380 Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <lupus@ximian.com>
382 * StringBuilder.cs: no need to intern the string returned by ToString().
384 2002-03-17 Mike Kestner <mkestner@speakeasy.net>
386 * ASCIIEncoding.cs: Implement all the overridden methods. No longer
387 dependent on iconv icalls.
388 * Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
391 Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <lupus@ximian.com>
393 * StringBuilder.cs: make ToString() return a interned string, this
394 seems to be required to make switch on string work.
396 Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
398 * StringBuilder.cs: make Append(char) do the smart thing.
400 2002-01-05 Ravi Pratap <ravi@ximian.com>
402 * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs,
403 UnicodeEncoding.cs: MonoTODO attribute marking.
405 * StringBuilder.cs : Ditto.
407 Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <lupus@ximian.com>
409 * Encoding.cs: renamed some fields.
410 * StringBuilder.cs: CLSCompliant updates.
412 2001-10-29 Nick Drochak <ndrochak@gol.com>
414 * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
415 invalid. Just like MS does (as best as I can tell).
417 Tests for these exceptions are now added to the unit tests as well.
419 2001-10-25 Nick Drochak <ndrochak@gol.com>
421 * StringBuilder.cs: Throw exception if they try to make a StringBuilder
422 whose capacity is greater than the MaxCapacity.
424 I added some tests for the constructors and the above exception. More
427 2001-10-23 Nick Drochak <ndrochak@gol.com>
429 * StringBuilder.cs: Refactored constructor code into just one
430 constructor. All the other construtors call it. Also supplied missing
431 constructors so the class has all those in the spec.
433 Added the MaxCapacity property as well, however this needs to be
434 completed to return a value is related to the available system memory.
436 2001-10-07 Miguel de Icaza <miguel@ximian.com>
438 * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
439 UnicodeEncoding.cs: Corrected API.
441 * UTF8Encoding.cs: Checked in changes from Rafael.
443 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
445 * UTF8Encoding.cs: impl. clumsy GetBytes
447 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
449 * StringBuilder.cs (Text): Fixed.
451 * StringBuilderTest.cs: Implement Test suite.
453 2001-07-12 Marcin Szczepanski <marcins@zipworld.com.au>
455 * StringBuilder.cs: Implemented.
457 The only methods left unimplemented are the AppendFormat( ... )
458 ones just because it's probably better to wait until some of the
459 Format related classes are implemented. I've put that as a TODO
460 comment at the top and created the methods with a "nop" body.
462 2001-06-26 Sean MacIsaac <macisaac@ximian.com>
464 * UnicodeEncoding.cs: Members added so that a clean compile is
467 * ASCIIEncoding.cs: Members added so that a clean compile is
470 * UTF7Encoding.cs: Members added so that a clean compile is
473 * UTF8Encoding.cs: Members added so that a clean compile is
476 * Encoding.cs: All public members included. Most members