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