2003-09-01 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System.Text / ChangeLog
1 2003-09-01  Miguel de Icaza  <miguel@ximian.com>
2
3         * Encoding.cs (UTF8Unmarked): make it also not error out on
4         invalid input, that is what the Microsoft default is for the
5         StreamReader and BinaryReader expect (our main consumers).
6
7 2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>
8
9         * StringBuilder.cs
10         (AppendFormat) Use FormatHelper in System.String to avoid
11         allocating an extra StringBuilder.
12         (Append string, int, int), (Append char, int): Both were
13         allocating extra strings.
14
15 2003-06-05  Nick Drochak  <ndrochak@gol.com>
16
17         * UTF8Encoding.cs: Cleanups according to class status page
18
19 2003-05-10  Miguel de Icaza  <miguel@ximian.com>
20
21         * Encoding.cs (GetEncoding): Add all the aliases documented in the
22         framework.  We were missing a few.
23         
24         Reorganize the table.  Also, convert the input name into the
25         lower-case - to _ before we compare against our table.
26         
27 2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
28
29         * StringBuilder.cs: fixed bug #41397.
30
31 2003-04-12  Miguel de Icaza  <miguel@ximian.com>
32
33         * Encoding.cs: Enabled the code paths that we did have commented
34         out, they seem to work now.
35
36 Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
37
38         * StringBuilder.cs: cache the result from ToString().
39
40 2003-03-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
41
42         * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
43           (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
44
45 2003-03-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
46
47         * ASCIIEncoding.cs: fixed bug #38984.
48
49 2003-03-05  Aleksey Demakov <avd@openlinksw.com>
50
51         * ASCIIEncoding.cs:
52         * Latin1Encoding.cs: fix GetString (byte[]) and
53         GetString (byte[], int, int) for zero-length case.
54
55 2003-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
56
57         * Latin1Encoding.cs: added Serializable attribute.
58
59 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
60
61         * Encoding.cs: removed UnixConsoleEncoding.
62
63 2003-01-30  Zoltan Varga  <vargaz@freemail.hu>
64
65         * StringBuilder.cs: fix the constructor: 'value' can be NULL,
66         'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
67         This fixes the StringBuilder unit tests.
68
69 2003-01-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
70
71         * StringBuilder.cs: fixed typo in set_Length.
72
73 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
74
75         * Encoding.cs: g_get_encoding () returns "ASCII". In Default, when the
76         encoding is not found, default to UTF8Unmarked. Removed comment in
77         UnixConsoleEncoding, because it's now Default, which gets the 
78         encoding internally using g_get_encoding ().
79
80 2002-12-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
81
82         * StringBuilder.cs: fixed constructor. Thanks to marcusU for reporting.
83
84 Tue Nov 19 13:03:27 CET 2002 Paolo Molaro <lupus@ximian.com>
85
86         * UTF8Encoding.cs: fix GetByteCount (), too.
87
88 2002-11-19  Miguel de Icaza  <miguel@ximian.com>
89
90         * UnicodeEncoding.cs: the bytemark should only be used to return
91         information in GetPreamble, not to actually encode the information
92         on the stream.  That is taken care of by the Stream classes.
93
94         * UTF8Encoding.cs: ditto.
95
96 2002-11-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
97
98         * StringBuilder.cs: only move the remaining chars in Remove.
99
100 2002-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
101
102         * Encoding.cs: unixConsoleEncoding is now the same as Default. Avoid
103         locking whenever possible.
104
105 2002-10-30  Miguel de Icaza  <miguel@ximian.com>
106
107         * Encoding.cs (UTF8Unmarked): New static property, used to return
108         a no-markers UTf8 encoder, used in a few places in the class library.
109
110 2002-09-06  Miguel de Icaza  <miguel@ximian.com>
111
112         * Encoding.cs (UTF8, Unicode): Create with a preamble, that is
113         what the Microsoft version does.
114
115         (UnixConsoleEncoding): New internal method, used to get the
116         encoding, in the future, this should pull the locale, map to
117         charset and then code page. 
118
119 Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
120
121         * Encoding.cs: use icall to get default codepage.
122         * DefaultEncoding.cs: remove useless class.
123
124 Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
125
126         * *.cs: change to conform to mono coding style.
127
128 2002-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
129
130         * ASCIIEncoding.cs:
131         * Decoder.cs:
132         * Encoder.cs:
133         * Encoding.cs:
134         * UTF7Encoding.cs:
135         * UTF8Encoding.cs:
136         * UnicodeEncoding.cs: added Serializable attribute.
137
138 2002-08-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
139
140         * StringBuilder.cs: improved performace by using String.InternalCopyTo
141         instead of using ToCharArray all over the place (more that 50% of
142         speed improvement when using Append).
143
144 Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
145
146         * *.cs: imported the code donated by Rhys Weatherley
147         <rweather@southern-storm.com.au>.
148
149 2002-08-18  Dick Porter  <dick@ximian.com>
150
151         * Encoding.cs: Make GetString() return a useful representation of
152         the bytes, rather than "System.Char[]"
153
154 2002-08-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
155
156         * StringBuilder.cs: added IndexerName to indexer.
157
158 2002-08-01  Jason Diamond <jason@injektilo.org>
159
160         * Encoding.cs: Use GetByteCount instead of GetMaxByteCount when
161         converting chars to bytes.
162
163 2002-07-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
164
165         * StringBuilder.cs: updated comments. MaxCapacity always returns
166         Int32.MaxValue.
167
168 2002-06-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
169
170         * StringBuilder.cs: implemented AppendFormat methods using
171         String.Format. Thanks Paolo!
172
173         This makes xsp generate correct C# output in linux :-). I still need
174         to do more testing, though.
175
176 Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
177
178         * ASCIIEncoding.cs: fixed handling of 0 bytecount.
179
180 2002-05-19  Martin Baulig  <martin@gnome.org>
181
182         * Encoder.cs (IConvEncoder.GetByteCount, IConvEncoder.GetBytes):
183         Added exception handling.
184
185         * Decoder.cs (IConvDecoder.GetCharCount, IConvDecoder.GetChars):
186         Added exception handling.
187
188 2002/04/02  Nick Drochak <ndrochak@gol.com>
189
190         * StringBuilder.cs (Append): Removed obsolete overload.
191
192 2002-03-21  Mike Kestner  <mkestner@speakeasy.net>
193
194         * ASCIIEncoding.cs : Fix off by one error in Get(Char|Byte)Count.
195
196 Thu Mar 21 17:38:19 CET 2002 Paolo Molaro <lupus@ximian.com>
197
198         * StringBuilder.cs: no need to intern the string returned by ToString().
199
200 2002-03-17  Mike Kestner  <mkestner@speakeasy.net>
201
202         * ASCIIEncoding.cs: Implement all the overridden methods. No longer
203           dependent on iconv icalls.
204         * Encoding.cs: Fix count bugs in GetBytes and GetChars. Add virtual
205           to GetBytes.
206
207 Wed Mar 13 00:26:29 CET 2002 Paolo Molaro <lupus@ximian.com>
208
209         * StringBuilder.cs: make ToString() return a interned string, this
210         seems to be required to make switch on string work.
211
212 Fri Mar 8 17:29:58 CET 2002 Paolo Molaro <lupus@ximian.com>
213
214         * StringBuilder.cs: make Append(char) do the smart thing.
215
216 2002-01-05  Ravi Pratap  <ravi@ximian.com>
217
218         * ASCIIEncoding.cs, Encoding.cs, UTF7Encoding.cs, 
219         UnicodeEncoding.cs: MonoTODO attribute marking.
220
221         * StringBuilder.cs : Ditto.
222         
223 Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <lupus@ximian.com>
224
225         * Encoding.cs: renamed some fields.
226         * StringBuilder.cs: CLSCompliant updates.
227
228 2001-10-29  Nick Drochak  <ndrochak@gol.com>
229
230         * StringBuilder.cs: Throw exceptions when constructor paramter(s) are
231                 invalid. Just like MS does (as best as I can tell).
232
233         Tests for these exceptions are now added to the unit tests as well.
234
235 2001-10-25  Nick Drochak  <ndrochak@gol.com>
236
237         * StringBuilder.cs: Throw exception if they try to make a StringBuilder
238                 whose capacity is greater than the MaxCapacity.
239
240         I added some tests for the constructors and the above exception. More
241         coming soon.
242
243 2001-10-23  Nick Drochak  <ndrochak@gol.com>
244
245         * StringBuilder.cs: Refactored constructor code into just one
246         constructor. All the other construtors call it. Also supplied missing
247         constructors so the class has all those in the spec.
248
249         Added the MaxCapacity property as well, however this needs to be 
250         completed to return a value is related to the available system memory.
251
252 2001-10-07  Miguel de Icaza  <miguel@ximian.com>
253
254         * Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
255         UnicodeEncoding.cs: Corrected API.
256
257         * UTF8Encoding.cs: Checked in changes from Rafael.
258
259 2001-08-28  Dietmar Maurer  <dietmar@ximian.com>
260
261         * UTF8Encoding.cs: impl. clumsy GetBytes
262
263 2001-07-16  Marcin Szczepanski <marcins@zipworld.com.au>
264
265         * StringBuilder.cs (Text): Fixed.
266
267         * StringBuilderTest.cs: Implement Test suite.
268
269 2001-07-12  Marcin Szczepanski <marcins@zipworld.com.au>
270
271         * StringBuilder.cs: Implemented.
272
273         The only methods left unimplemented are the AppendFormat( ... )
274         ones just because it's probably better to wait until some of the
275         Format related classes are implemented.  I've put that as a TODO
276         comment at the top and created the methods with a "nop" body.
277
278 2001-06-26  Sean MacIsaac  <macisaac@ximian.com>
279
280         * UnicodeEncoding.cs: Members added so that a clean compile is
281         possible.
282
283         * ASCIIEncoding.cs: Members added so that a clean compile is
284         possible.
285
286         * UTF7Encoding.cs: Members added so that a clean compile is
287         possible.
288
289         * UTF8Encoding.cs: Members added so that a clean compile is
290         possible.
291
292         * Encoding.cs: All public members included.  Most members
293         unimplemented.