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