1 2004-05-26 Sebastien Pouliot <sebastien@ximian.com>
3 * StringBuilder.cs: Fixed potential integer overflows in several
6 2004-05-14 Sebastien Pouliot <sebastien@ximian.com>
8 * UTF8Encoding.cs: Moved charCount-- after the check for surrogate
9 pair. This fix bug #57009 (and 2 failing unit tests). Added code
10 to check for some (like MS) overlongs.
12 2004-05-03 Lluis Sanches Gual <lluis@ximian.com>
14 * Encoding.cs: Use name const to load I18N assembly.
16 2004-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
18 * Encoding.cs: Call shortcut String.ToLowerInvariant
20 2004-04-13 Miguel de Icaza <miguel@ximian.com>
22 * Encoding.cs: Use new internal codepage setup.
24 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
26 * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
28 2004-03-19 Dick Porter <dick@ximian.com>
30 * UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
31 BOM at the beginning of the range of characters we're interested
32 in, not at the beginning of the array. Fixes bug 51531.
34 2004-03-10 Juraj Skripsky <juraj@hotfeet.ch>
37 (Insert int, char[]): fix by using new string(char[]) instead of
38 char[].ToString() and simplify.
39 (Insert int, string, int): add LAMESPEC note.
40 (Insert int char[], int, int): handle value==null according to spec.
41 Use a string instead of char array + Array.Copy (gonzalo)
43 2004-03-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
46 (Append (string)): remove redundant check.
48 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
51 (Remove): fixed offsets when copying and set the new size. Fixes bug
54 2004-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
56 * StringBuilder.cs: added checks for null in a few Append methods.
58 Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <lupus@ximian.com>
60 * StringBuilder.cs: fixed start offset in Append(char).
62 2004-01-12 Patrik Torstensson
64 * StringBuilder.cs: new implementation that uses
65 string as a buffer instead of a array of chars.
67 2003-12-07 Ben Maurer <bmaurer@users.sourceforge.net>
69 * UTF8Encoding.cs (GetBytes string): Do not call base
70 The version in Encoding will call string.ToCharArray (),
71 allocating an extra array. By calling the better method
72 in our own class we can save memory.
74 2003-11-17 Ben Maurer <bmaurer@users.sourceforge.net>
76 * StringBuilder.cs (Insert int, char): It is really silly and
77 wasteful to allocate an array here. We can just copy the value
80 2003-11-11 Miguel de Icaza <miguel@ximian.com>
82 * Encoding.cs: Use an internal variable to track the parameters of
83 each encoder, since the .NET API does not expose virtual methods
84 in the child classes, we should not depend on that.
86 * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
87 Initialize the parameters for base class encoding here.
89 2003-09-01 Miguel de Icaza <miguel@ximian.com>
91 * Encoding.cs (UTF8Unmarked): make it also not error out on
92 invalid input, that is what the Microsoft default is for the
93 StreamReader and BinaryReader expect (our main consumers).
95 2003-08-21 Ben Maurer <bmaurer@users.sourceforge.net>
98 (AppendFormat) Use FormatHelper in System.String to avoid
99 allocating an extra StringBuilder.
100 (Append string, int, int), (Append char, int): Both were
101 allocating extra strings.
103 2003-06-05 Nick Drochak <ndrochak@gol.com>
105 * UTF8Encoding.cs: Cleanups according to class status page
107 2003-05-10 Miguel de Icaza <miguel@ximian.com>
109 * Encoding.cs (GetEncoding): Add all the aliases documented in the
110 framework. We were missing a few.
112 Reorganize the table. Also, convert the input name into the
113 lower-case - to _ before we compare against our table.
115 2003-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
117 * StringBuilder.cs: fixed bug #41397.
119 2003-04-12 Miguel de Icaza <miguel@ximian.com>
121 * Encoding.cs: Enabled the code paths that we did have commented
122 out, they seem to work now.
124 Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
126 * StringBuilder.cs: cache the result from ToString().
128 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
130 * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
131 (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
133 2003-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
135 * ASCIIEncoding.cs: fixed bug #38984.
137 2003-03-05 Aleksey Demakov <avd@openlinksw.com>
140 * Latin1Encoding.cs: fix GetString (byte[]) and
141 GetString (byte[], int, int) for zero-length case.
143 2003-02-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
145 * Latin1Encoding.cs: added Serializable attribute.
147 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
149 * Encoding.cs: removed UnixConsoleEncoding.
151 2003-01-30 Zoltan Varga <vargaz@freemail.hu>
153 * StringBuilder.cs: fix the constructor: 'value' can be NULL,
154 'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
155 This fixes the StringBuilder unit tests.
157 2003-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
159 * StringBuilder.cs: fixed typo in set_Length.
161 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
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 ().
168 2002-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
170 * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
172 Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <lupus@ximian.com>
174 * UTF8Encoding.cs: fix GetByteCount (), too.
176 2002-11-19 Miguel de Icaza <miguel@ximian.com>
178 * UnicodeEncoding.cs: the bytemark should only be used to return
179 information in GetPreamble, not to actually encode the information
180 on the stream. That is taken care of by the Stream classes.
182 * UTF8Encoding.cs: ditto.
184 2002-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
186 * StringBuilder.cs: only move the remaining chars in Remove.
188 2002-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
190 * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
191 locking whenever possible.
193 2002-10-30 Miguel de Icaza <miguel@ximian.com>
195 * Encoding.cs (UTF8Unmarked): New static property, used to return
196 a no-markers UTf8 encoder, used in a few places in the class library.
198 2002-09-06 Miguel de Icaza <miguel@ximian.com>
200 * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
201 what the Microsoft version does.
203 (UnixConsoleEncoding): New internal method, used to get the
204 encoding, in the future, this should pull the locale, map to
205 charset and then code page.
207 Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
209 * Encoding.cs: use icall to get default codepage.
210 * DefaultEncoding.cs: remove useless class.
212 Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
214 * *.cs: change to conform to mono coding style.
216 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
224 * UnicodeEncoding.cs: added Serializable attribute.
226 2002-08-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
228 * StringBuilder.cs: improved performace by using String.InternalCopyTo
229 instead of using ToCharArray all over the place (more that 50% of
230 speed improvement when using Append).
232 Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
234 * *.cs: imported the code donated by Rhys Weatherley
235 <rweather@southern-storm.com.au>.
237 2002-08-18 Dick Porter <dick@ximian.com>
239 * Encoding.cs: Make GetString() return a useful representation of
240 the bytes, rather than "System.Char[]"
242 2002-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
244 * StringBuilder.cs: added IndexerName to indexer.
246 2002-08-01 Jason Diamond <jason@injektilo.org>
248 * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
249 converting chars to bytes.
251 2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
253 * StringBuilder.cs: updated comments. MaxCapacity always returns
256 2002-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
258 * StringBuilder.cs: implemented AppendFormat methods using
259 String.Format. Thanks Paolo!
261 This makes xsp generate correct C# output in linux :-). I still need
262 to do more testing, though.
264 Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
266 * ASCIIEncoding.cs: fixed handling of 0 bytecount.
268 2002-05-19 Martin Baulig <martin@gnome.org>
270 * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
271 Added exception handling.
273 * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
274 Added exception handling.
276 2002/04/02 Nick Drochak <ndrochak@gol.com>
278 * StringBuilder.cs (Append): Removed obsolete overload.
280 2002-03-21 Mike Kestner <mkestner@speakeasy.net>
282 * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
284 Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <lupus@ximian.com>
286 * StringBuilder.cs: no need to intern the string returned by ToString().
288 2002-03-17 Mike Kestner <mkestner@speakeasy.net>
290 * ASCIIEncoding.cs: Implement all the overridden methods. No longer
291 dependent on iconv icalls.
292 * Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
295 Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <lupus@ximian.com>
297 * StringBuilder.cs: make ToString() return a interned string, this
298 seems to be required to make switch on string work.
300 Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
302 * StringBuilder.cs: make Append(char) do the smart thing.
304 2002-01-05 Ravi Pratap <ravi@ximian.com>
306 * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs,
307 UnicodeEncoding.cs: MonoTODO attribute marking.
309 * StringBuilder.cs : Ditto.
311 Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <lupus@ximian.com>
313 * Encoding.cs: renamed some fields.
314 * StringBuilder.cs: CLSCompliant updates.
316 2001-10-29 Nick Drochak <ndrochak@gol.com>
318 * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
319 invalid. Just like MS does (as best as I can tell).
321 Tests for these exceptions are now added to the unit tests as well.
323 2001-10-25 Nick Drochak <ndrochak@gol.com>
325 * StringBuilder.cs: Throw exception if they try to make a StringBuilder
326 whose capacity is greater than the MaxCapacity.
328 I added some tests for the constructors and the above exception. More
331 2001-10-23 Nick Drochak <ndrochak@gol.com>
333 * StringBuilder.cs: Refactored constructor code into just one
334 constructor. All the other construtors call it. Also supplied missing
335 constructors so the class has all those in the spec.
337 Added the MaxCapacity property as well, however this needs to be
338 completed to return a value is related to the available system memory.
340 2001-10-07 Miguel de Icaza <miguel@ximian.com>
342 * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
343 UnicodeEncoding.cs: Corrected API.
345 * UTF8Encoding.cs: Checked in changes from Rafael.
347 2001-08-28 Dietmar Maurer <dietmar@ximian.com>
349 * UTF8Encoding.cs: impl. clumsy GetBytes
351 2001-07-16 Marcin Szczepanski <marcins@zipworld.com.au>
353 * StringBuilder.cs (Text): Fixed.
355 * StringBuilderTest.cs: Implement Test suite.
357 2001-07-12 Marcin Szczepanski <marcins@zipworld.com.au>
359 * StringBuilder.cs: Implemented.
361 The only methods left unimplemented are the AppendFormat( ... )
362 ones just because it's probably better to wait until some of the
363 Format related classes are implemented. I've put that as a TODO
364 comment at the top and created the methods with a "nop" body.
366 2001-06-26 Sean MacIsaac <macisaac@ximian.com>
368 * UnicodeEncoding.cs: Members added so that a clean compile is
371 * ASCIIEncoding.cs: Members added so that a clean compile is
374 * UTF7Encoding.cs: Members added so that a clean compile is
377 * UTF8Encoding.cs: Members added so that a clean compile is
380 * Encoding.cs: All public members included. Most members