copying the latest Sys.Web.Services from trunk.
[mono.git] / mcs / class / corlib / System.Text / ChangeLog
1 2005-04-16  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * NormalizationForm.cs : new file.
4
5 2005-03-20  Ben Maurer  <bmaurer@ximian.com>
6
7         * StringBuilder.cs (set_Length): If we set the length, we must
8         clobber the cached string.
9
10 2005-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11
12         * UnicodeEncoding.cs: same fix (\uFEFF) but for Unicode. Patch by
13         Svetlana Zholkovsky.
14
15 2005-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16
17         * UTF7Encoding.cs: fix for characters encoded as a shifted sequence
18         whose length is greater than 3. Patch by Svetlana Zholkovsky.
19
20 2005-01-31  Ben Maurer  <bmaurer@ximian.com>
21
22         * StringBuilder.cs (Remove): We need to do the check that the
23         string isnt being cached *before* we munge it.
24
25 2005-01-21  Ben Maurer  <bmaurer@ximian.com>
26
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.
31
32 2005-01-14 Lluis Sanches Gual  <lluis@novell.com>
33
34         * StringBuilder.cs: Improved parameter check.
35
36 2005-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
37
38         * StringBuilder.cs: when creating the StringBuilder from a string, the
39         maximum capacity remains Int32.MaxValue.
40
41 2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
42
43         * StringBuilder.cs: throw if the new size is greater than the maximum
44         capacity for the StringBuilder. Patch by luke@octerbar.net. Fixes
45         bug #62422.
46
47 2004-12-15  Sebastien Pouliot  <sebastien@ximian.com>
48
49         * UTF7Encoding.cs:  Fixed warning for unused variable.
50
51 2004-09-30  Juraj Skripsky <js@hotfeet.ch>
52
53         * Encoding.cs: Add encoding name "latin1" for compatibility with
54         MS.NET.
55
56 2004-09-25  Zoltan Varga  <vargaz@freemail.hu>
57
58         * StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.
59
60 2004-09-09  Tim Coleman <tim@timcoleman.com>
61
62         * StringBuilder.cs: Added AppendLine methods for Fx 2.0
63
64 2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
65
66         * UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
67         Follow the RFC1642 rules for "overbits".
68
69 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
70
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
76
77 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
78
79         * Encoding.cs: Marked protected internal field as internal to
80         fix API signature
81
82 2004-06-07  Atsushi Enomoto  <atsushi@ximian.com>
83
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().
87
88 2004-06-07  Atsushi Enomoto  <atsushi@ximian.com>
89
90         * UTF8Encoding.cs : Added Overlong check to InternalGetCharCount().
91
92 2004-06-07  Atsushi Enomoto  <atsushi@ximian.com>
93
94         * UTF8Encoding.cs : Throw overlongs error only when throwOnInvalid is
95           true. Otherwise just ignore them.
96
97 2004-05-26  Sebastien Pouliot  <sebastien@ximian.com>
98
99         * StringBuilder.cs: Fixed potential integer overflows in several 
100         methods.
101
102 2004-05-14  Sebastien Pouliot  <sebastien@ximian.com>
103
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.
107
108 2004-05-03 Lluis Sanches Gual  <lluis@ximian.com>
109
110         * Encoding.cs: Use name const to load I18N assembly.
111
112 2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
113
114         * Encoding.cs: Call shortcut String.ToLowerInvariant
115
116 2004-04-13  Miguel de Icaza  <miguel@ximian.com>
117
118         * Encoding.cs: Use new internal codepage setup.
119
120 2004-04-10  Atsushi Enomoto  <atsushi@ximian.com>
121
122         * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
123
124 2004-03-19  Dick Porter  <dick@ximian.com>
125
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.
129
130 2004-03-10  Juraj Skripsky <juraj@hotfeet.ch>
131
132         * StringBuilder.cs
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)
138
139 2004-03-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
140
141         * StringBuilder.cs:
142         (Append (string)): remove redundant check.
143
144 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
145
146         * StringBuilder.cs:
147         (Remove): fixed offsets when copying and set the new size. Fixes bug
148         #53240.
149
150 2004-01-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
151
152         * StringBuilder.cs: added checks for null in a few Append methods.
153
154 Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <lupus@ximian.com>
155
156         * StringBuilder.cs: fixed start offset in Append(char).
157
158 2004-01-12  Patrik Torstensson
159
160         * StringBuilder.cs: new implementation that uses
161         string as a buffer instead of a array of chars.
162
163 2003-12-07 Ben Maurer  <bmaurer@users.sourceforge.net>
164
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.
169
170 2003-11-17 Ben Maurer  <bmaurer@users.sourceforge.net>
171
172         * StringBuilder.cs (Insert int, char): It is really silly and
173         wasteful to allocate an array here. We can just copy the value
174         over.
175
176 2003-11-11  Miguel de Icaza  <miguel@ximian.com>
177
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.
181         
182         * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
183         Initialize the parameters for base class encoding here.
184
185 2003-09-01  Miguel de Icaza  <miguel@ximian.com>
186
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).
190
191 2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>
192
193         * StringBuilder.cs
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.
198
199 2003-06-05  Nick Drochak  <ndrochak@gol.com>
200
201         * UTF8Encoding.cs: Cleanups according to class status page
202
203 2003-05-10  Miguel de Icaza  <miguel@ximian.com>
204
205         * Encoding.cs (GetEncoding): Add all the aliases documented in the
206         framework.  We were missing a few.
207         
208         Reorganize the table.  Also, convert the input name into the
209         lower-case - to _ before we compare against our table.
210         
211 2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
212
213         * StringBuilder.cs: fixed bug #41397.
214
215 2003-04-12  Miguel de Icaza  <miguel@ximian.com>
216
217         * Encoding.cs: Enabled the code paths that we did have commented
218         out, they seem to work now.
219
220 Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
221
222         * StringBuilder.cs: cache the result from ToString().
223
224 2003-03-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
225
226         * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
227           (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
228
229 2003-03-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
230
231         * ASCIIEncoding.cs: fixed bug #38984.
232
233 2003-03-05  Aleksey Demakov <avd@openlinksw.com>
234
235         * ASCIIEncoding.cs:
236         * Latin1Encoding.cs: fix GetString (byte[]) and
237         GetString (byte[], int, int) for zero-length case.
238
239 2003-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
240
241         * Latin1Encoding.cs: added Serializable attribute.
242
243 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
244
245         * Encoding.cs: removed UnixConsoleEncoding.
246
247 2003-01-30  Zoltan Varga  <vargaz@freemail.hu>
248
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.
252
253 2003-01-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
254
255         * StringBuilder.cs: fixed typo in set_Length.
256
257 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
258
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 ().
263
264 2002-12-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
265
266         * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
267
268 Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <lupus@ximian.com>
269
270         * UTF8Encoding.cs: fix GetByteCount (), too.
271
272 2002-11-19  Miguel de Icaza  <miguel@ximian.com>
273
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.
277
278         * UTF8Encoding.cs: ditto.
279
280 2002-11-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
281
282         * StringBuilder.cs: only move the remaining chars in Remove.
283
284 2002-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
285
286         * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
287         locking whenever possible.
288
289 2002-10-30  Miguel de Icaza  <miguel@ximian.com>
290
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.
293
294 2002-09-06  Miguel de Icaza  <miguel@ximian.com>
295
296         * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
297         what the Microsoft version does.
298
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. 
302
303 Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
304
305         * Encoding.cs: use icall to get default codepage.
306         * DefaultEncoding.cs: remove useless class.
307
308 Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
309
310         * *.cs: change to conform to mono coding style.
311
312 2002-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
313
314         * ASCIIEncoding.cs:
315         * Decoder.cs:
316         * Encoder.cs:
317         * Encoding.cs:
318         * UTF7Encoding.cs:
319         * UTF8Encoding.cs:
320         * UnicodeEncoding.cs: added Serializable attribute.
321
322 2002-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
323
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).
327
328 Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
329
330         * *.cs: imported the code donated by Rhys Weatherley
331         <rweather@southern-storm.com.au>.
332
333 2002-08-18  Dick Porter  <dick@ximian.com>
334
335         * Encoding.cs: Make GetString() return a useful representation of
336         the bytes, rather than "System.Char[]"
337
338 2002-08-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
339
340         * StringBuilder.cs: added IndexerName to indexer.
341
342 2002-08-01  Jason Diamond <jason@injektilo.org>
343
344         * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
345         converting chars to bytes.
346
347 2002-07-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
348
349         * StringBuilder.cs: updated comments. MaxCapacity always returns
350         Int32.MaxValue.
351
352 2002-06-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
353
354         * StringBuilder.cs: implemented AppendFormat methods using
355         String.Format. Thanks Paolo!
356
357         This makes xsp generate correct C# output in linux :-). I still need
358         to do more testing, though.
359
360 Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
361
362         * ASCIIEncoding.cs: fixed handling of 0 bytecount.
363
364 2002-05-19  Martin Baulig  <martin@gnome.org>
365
366         * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
367         Added exception handling.
368
369         * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
370         Added exception handling.
371
372 2002/04/02  Nick Drochak <ndrochak@gol.com>
373
374         * StringBuilder.cs (Append): Removed obsolete overload.
375
376 2002-03-21  Mike Kestner  <mkestner@speakeasy.net>
377
378         * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
379
380 Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <lupus@ximian.com>
381
382         * StringBuilder.cs: no need to intern the string returned by ToString().
383
384 2002-03-17  Mike Kestner  <mkestner@speakeasy.net>
385
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
389           to GetBytes.
390
391 Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <lupus@ximian.com>
392
393         * StringBuilder.cs: make ToString() return a interned string, this
394         seems to be required to make switch on string work.
395
396 Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
397
398         * StringBuilder.cs: make Append(char) do the smart thing.
399
400 2002-01-05  Ravi Pratap  <ravi@ximian.com>
401
402         * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs, 
403         UnicodeEncoding.cs: MonoTODO attribute marking.
404
405         * StringBuilder.cs : Ditto.
406         
407 Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <lupus@ximian.com>
408
409         * Encoding.cs: renamed some fields.
410         * StringBuilder.cs: CLSCompliant updates.
411
412 2001-10-29  Nick Drochak  <ndrochak@gol.com>
413
414         * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
415                 invalid. Just like MS does (as best as I can tell).
416
417         Tests for these exceptions are now added to the unit tests as well.
418
419 2001-10-25  Nick Drochak  <ndrochak@gol.com>
420
421         * StringBuilder.cs: Throw exception if they try to make a StringBuilder
422                 whose capacity is greater than the MaxCapacity.
423
424         I added some tests for the constructors and the above exception. More
425         coming soon.
426
427 2001-10-23  Nick Drochak  <ndrochak@gol.com>
428
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.
432
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.
435
436 2001-10-07  Miguel de Icaza  <miguel@ximian.com>
437
438         * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
439         UnicodeEncoding.cs: Corrected API.
440
441         * UTF8Encoding.cs: Checked in changes from Rafael.
442
443 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
444
445         * UTF8Encoding.cs: impl. clumsy GetBytes
446
447 2001-07-16  Marcin Szczepanski <marcins@zipworld.com.au>
448
449         * StringBuilder.cs (Text): Fixed.
450
451         * StringBuilderTest.cs: Implement Test suite.
452
453 2001-07-12  Marcin Szczepanski <marcins@zipworld.com.au>
454
455         * StringBuilder.cs: Implemented.
456
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.
461
462 2001-06-26  Sean MacIsaac  <macisaac@ximian.com>
463
464         * UnicodeEncoding.cs: Members added so that a clean compile is
465         possible.
466
467         * ASCIIEncoding.cs: Members added so that a clean compile is
468         possible.
469
470         * UTF7Encoding.cs: Members added so that a clean compile is
471         possible.
472
473         * UTF8Encoding.cs: Members added so that a clean compile is
474         possible.
475
476         * Encoding.cs: All public members included.  Most members
477         unimplemented.