1 2004-09-09 Tim Coleman <tim@timcoleman.com>
2 * StringBuilder.cs: Added AppendLine methods for Fx 2.0
4 2004-06-23 Sebastien Pouliot <sebastien@ximian.com>
6 * UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
7 Follow the RFC1642 rules for "overbits".
9 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
11 * ASCIIEncoding.cs: added TODO for serialization
12 * StringBuilder.cs: added TODO for serialization
13 * UnicodeEncoding.cs: added TODO for serialization
14 * UTF7Encoding.cs: added TODO for serialization
15 * UTF8Encoding.cs: added TODO for serialization
17 2004-06-10 Gert Driesen <drieseng@users.sourceforge.net>
19 * Encoding.cs: Marked protected internal field as internal to
22 2004-06-07 Atsushi Enomoto <atsushi@ximian.com>
24 * UTF8Encoding.cs : Length check must be done only when the character
25 sequence is valid (i.e. should not check when it is overlongs).
26 See also TestThrowOnInvalid().
28 2004-06-07 Atsushi Enomoto <atsushi@ximian.com>
30 * UTF8Encoding.cs : Added Overlong check to InternalGetCharCount().
32 2004-06-07 Atsushi Enomoto <atsushi@ximian.com>
34 * UTF8Encoding.cs : Throw overlongs error only when throwOnInvalid is
35 true. Otherwise just ignore them.
37 2004-05-26 Sebastien Pouliot <sebastien@ximian.com>
39 * StringBuilder.cs: Fixed potential integer overflows in several
42 2004-05-14 Sebastien Pouliot <sebastien@ximian.com>
44 * UTF8Encoding.cs: Moved charCount-- after the check for surrogate
45 pair. This fix bug #57009 (and 2 failing unit tests). Added code
46 to check for some (like MS) overlongs.
48 2004-05-03 Lluis Sanches Gual <lluis@ximian.com>
50 * Encoding.cs: Use name const to load I18N assembly.
52 2004-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
54 * Encoding.cs: Call shortcut String.ToLowerInvariant
56 2004-04-13 Miguel de Icaza <miguel@ximian.com>
58 * Encoding.cs: Use new internal codepage setup.
60 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
62 * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
64 2004-03-19 Dick Porter <dick@ximian.com>
66 * UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
67 BOM at the beginning of the range of characters we're interested
68 in, not at the beginning of the array. Fixes bug 51531.
70 2004-03-10 Juraj Skripsky <juraj@hotfeet.ch>
73 (Insert int, char[]): fix by using new string(char[]) instead of
74 char[].ToString() and simplify.
75 (Insert int, string, int): add LAMESPEC note.
76 (Insert int char[], int, int): handle value==null according to spec.
77 Use a string instead of char array + Array.Copy (gonzalo)
79 2004-03-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
82 (Append (string)): remove redundant check.
84 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
87 (Remove): fixed offsets when copying and set the new size. Fixes bug
90 2004-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
92 * StringBuilder.cs: added checks for null in a few Append methods.
94 Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <lupus@ximian.com>
96 * StringBuilder.cs: fixed start offset in Append(char).
98 2004-01-12 Patrik Torstensson
100 * StringBuilder.cs: new implementation that uses
101 string as a buffer instead of a array of chars.
103 2003-12-07 Ben Maurer <bmaurer@users.sourceforge.net>
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.
110 2003-11-17 Ben Maurer <bmaurer@users.sourceforge.net>
112 * StringBuilder.cs (Insert int, char): It is really silly and
113 wasteful to allocate an array here. We can just copy the value
116 2003-11-11 Miguel de Icaza <miguel@ximian.com>
118 * Encoding.cs: Use an internal variable to track the parameters of
119 each encoder, since the .NET API does not expose virtual methods
120 in the child classes, we should not depend on that.
122 * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
123 Initialize the parameters for base class encoding here.
125 2003-09-01 Miguel de Icaza <miguel@ximian.com>
127 * Encoding.cs (UTF8Unmarked): make it also not error out on
128 invalid input, that is what the Microsoft default is for the
129 StreamReader and BinaryReader expect (our main consumers).
131 2003-08-21 Ben Maurer <bmaurer@users.sourceforge.net>
134 (AppendFormat) Use FormatHelper in System.String to avoid
135 allocating an extra StringBuilder.
136 (Append string, int, int), (Append char, int): Both were
137 allocating extra strings.
139 2003-06-05 Nick Drochak <ndrochak@gol.com>
141 * UTF8Encoding.cs: Cleanups according to class status page
143 2003-05-10 Miguel de Icaza <miguel@ximian.com>
145 * Encoding.cs (GetEncoding): Add all the aliases documented in the
146 framework. We were missing a few.
148 Reorganize the table. Also, convert the input name into the
149 lower-case - to _ before we compare against our table.
151 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
153 * StringBuilder.cs: fixed bug #41397.
155 2003-04-12 Miguel de Icaza <miguel@ximian.com>
157 * Encoding.cs: Enabled the code paths that we did have commented
158 out, they seem to work now.
160 Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
162 * StringBuilder.cs: cache the result from ToString().
164 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
166 * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
167 (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
169 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
171 * ASCIIEncoding.cs: fixed bug #38984.
173 2003-03-05 Aleksey Demakov <avd@openlinksw.com>
176 * Latin1Encoding.cs: fix GetString (byte[]) and
177 GetString (byte[], int, int) for zero-length case.
179 2003-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
181 * Latin1Encoding.cs: added Serializable attribute.
183 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
185 * Encoding.cs: removed UnixConsoleEncoding.
187 2003-01-30 Zoltan Varga <vargaz@freemail.hu>
189 * StringBuilder.cs: fix the constructor: 'value' can be NULL,
190 'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
191 This fixes the StringBuilder unit tests.
193 2003-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
195 * StringBuilder.cs: fixed typo in set_Length.
197 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
199 * Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
200 encoding is not found, default to UTF8Unmarked. Removed comment in
201 UnixConsoleEncoding, because it's now Default, which gets the
202 encoding internally using g_get_encoding ().
204 2002-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
206 * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
208 Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <lupus@ximian.com>
210 * UTF8Encoding.cs: fix GetByteCount (), too.
212 2002-11-19 Miguel de Icaza <miguel@ximian.com>
214 * UnicodeEncoding.cs: the bytemark should only be used to return
215 information in GetPreamble, not to actually encode the information
216 on the stream. That is taken care of by the Stream classes.
218 * UTF8Encoding.cs: ditto.
220 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
222 * StringBuilder.cs: only move the remaining chars in Remove.
224 2002-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
226 * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
227 locking whenever possible.
229 2002-10-30 Miguel de Icaza <miguel@ximian.com>
231 * Encoding.cs (UTF8Unmarked): New static property, used to return
232 a no-markers UTf8 encoder, used in a few places in the class library.
234 2002-09-06 Miguel de Icaza <miguel@ximian.com>
236 * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
237 what the Microsoft version does.
239 (UnixConsoleEncoding): New internal method, used to get the
240 encoding, in the future, this should pull the locale, map to
241 charset and then code page.
243 Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
245 * Encoding.cs: use icall to get default codepage.
246 * DefaultEncoding.cs: remove useless class.
248 Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
250 * *.cs: change to conform to mono coding style.
252 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
260 * UnicodeEncoding.cs: added Serializable attribute.
262 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
264 * StringBuilder.cs: improved performace by using String.InternalCopyTo
265 instead of using ToCharArray all over the place (more that 50% of
266 speed improvement when using Append).
268 Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
270 * *.cs: imported the code donated by Rhys Weatherley
271 <rweather@southern-storm.com.au>.
273 2002-08-18 Dick Porter <dick@ximian.com>
275 * Encoding.cs: Make GetString() return a useful representation of
276 the bytes, rather than "System.Char[]"
278 2002-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
280 * StringBuilder.cs: added IndexerName to indexer.
282 2002-08-01 Jason Diamond <jason@injektilo.org>
284 * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
285 converting chars to bytes.
287 2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
289 * StringBuilder.cs: updated comments. MaxCapacity always returns
292 2002-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
294 * StringBuilder.cs: implemented AppendFormat methods using
295 String.Format. Thanks Paolo!
297 This makes xsp generate correct C# output in linux :-). I still need
298 to do more testing, though.
300 Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
302 * ASCIIEncoding.cs: fixed handling of 0 bytecount.
304 2002-05-19 Martin Baulig <martin@gnome.org>
306 * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
307 Added exception handling.
309 * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
310 Added exception handling.
312 2002/04/02 Nick Drochak <ndrochak@gol.com>
314 * StringBuilder.cs (Append): Removed obsolete overload.
316 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
318 * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
320 Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <lupus@ximian.com>
322 * StringBuilder.cs: no need to intern the string returned by ToString().
324 2002-03-17 Mike Kestner <mkestner@speakeasy.net>
326 * ASCIIEncoding.cs: Implement all the overridden methods. No longer
327 dependent on iconv icalls.
328 * Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
331 Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <lupus@ximian.com>
333 * StringBuilder.cs: make ToString() return a interned string, this
334 seems to be required to make switch on string work.
336 Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
338 * StringBuilder.cs: make Append(char) do the smart thing.
340 2002-01-05 Ravi Pratap <ravi@ximian.com>
342 * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs,
343 UnicodeEncoding.cs: MonoTODO attribute marking.
345 * StringBuilder.cs : Ditto.
347 Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <lupus@ximian.com>
349 * Encoding.cs: renamed some fields.
350 * StringBuilder.cs: CLSCompliant updates.
352 2001-10-29 Nick Drochak <ndrochak@gol.com>
354 * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
355 invalid. Just like MS does (as best as I can tell).
357 Tests for these exceptions are now added to the unit tests as well.
359 2001-10-25 Nick Drochak <ndrochak@gol.com>
361 * StringBuilder.cs: Throw exception if they try to make a StringBuilder
362 whose capacity is greater than the MaxCapacity.
364 I added some tests for the constructors and the above exception. More
367 2001-10-23 Nick Drochak <ndrochak@gol.com>
369 * StringBuilder.cs: Refactored constructor code into just one
370 constructor. All the other construtors call it. Also supplied missing
371 constructors so the class has all those in the spec.
373 Added the MaxCapacity property as well, however this needs to be
374 completed to return a value is related to the available system memory.
376 2001-10-07 Miguel de Icaza <miguel@ximian.com>
378 * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
379 UnicodeEncoding.cs: Corrected API.
381 * UTF8Encoding.cs: Checked in changes from Rafael.
383 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
385 * UTF8Encoding.cs: impl. clumsy GetBytes
387 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
389 * StringBuilder.cs (Text): Fixed.
391 * StringBuilderTest.cs: Implement Test suite.
393 2001-07-12 Marcin Szczepanski <marcins@zipworld.com.au>
395 * StringBuilder.cs: Implemented.
397 The only methods left unimplemented are the AppendFormat( ... )
398 ones just because it's probably better to wait until some of the
399 Format related classes are implemented. I've put that as a TODO
400 comment at the top and created the methods with a "nop" body.
402 2001-06-26 Sean MacIsaac <macisaac@ximian.com>
404 * UnicodeEncoding.cs: Members added so that a clean compile is
407 * ASCIIEncoding.cs: Members added so that a clean compile is
410 * UTF7Encoding.cs: Members added so that a clean compile is
413 * UTF8Encoding.cs: Members added so that a clean compile is
416 * Encoding.cs: All public members included. Most members