* StringBuilder: hide non 2.1 AppendFormat on 2.1 so that
the compile picks up the adequate method when AppendFormat
is used in 2.1 platform code.
svn path=/trunk/mcs/; revision=84160
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
Marked 2.0-only members as ComVisible (false).
* Decoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* Encoder.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* Encoding.cs: Marked class ComVisible (true) on 2.0 profile. Marked
2.0-only members as ComVisible (false).
* NormalizationForm.cs: Marked ComVisible (true).
* StringBuilder.cs: Marked class ComVisible (true) on 2.0 profile.
Marked 2.0-only methods as ComVisible (false).
* UnicodeEncoding.cs: GetString (byte[], int, int) is only available
in 2.0 profile. Marked 2.0-only methods ComVisible (false). Added
missing ctor in 2.0 profile, and marked in MonoTODO.
* UTF7Encoding.cs: Marked class ComVisible (true) on 2.0 profile.
* UTF8Encoding.cs: Marked 2.0-only methods as ComVisible (false).
svn path=/trunk/mcs/; revision=61250
* StringBuilder.cs: Fix ISerializable.GetObjectData (remoting tests
were failing under 2.0) and two possible integer overflow in CopyTo.
svn path=/trunk/mcs/; revision=52933
2005-11-11 Miguel de Icaza <[email protected]>
* Encoding.cs, UnicodeEncoding.cs: A few 2.x methods.
* StringBuilder.cs (Text): Added serialization support in 2.x.
svn path=/trunk/mcs/; revision=52916
2005-06-21 Ben Maurer <[email protected]>
* StringBuilderTest.cs: Test replacing with a longer string.
In System.Text:
2005-06-21 Ben Maurer <[email protected]>
* StringBuilder.cs (Replace): Do the correct thing when we replace
with a longer string. Thanks to Vorobiev Maksim
<[email protected]>.
svn path=/trunk/mcs/; revision=46333
* StringBuilder.cs: Remove = null inits on fields, saves a few
instructions. When we compare _cached_str == _str, we are only
interested in pointer based equality, so just do that.
svn path=/trunk/mcs/; revision=45073
2005-05-06 Ben Maurer <[email protected]>
* StringBuilderTest.cs (MaxCapacity_Overflow3): Test for #72244.
In System.Text:
2005-05-06 Ben Maurer <[email protected]>
* StringBuilder.cs (InternalEnsureCapacity): It is possible that
the size we attempt to grow to is more than the max capacity, but
that a smaller size will do. In this case, don't throw an
exception. Fixes#72244
svn path=/trunk/mcs/; revision=44166
* StringBuilder.cs: Don't allocate memory on the .ctor, do it
lazily. This saves us lots of memory if you only use the
stringbuilder once. Also, we can allocate on the second Append,
which might reduce the number of buffers allocated.
svn path=/trunk/mcs/; revision=39337
* System.Text/StringBuilder.cs: when creating the StringBuilder from a
string, the maximum capacity remains Int32.MaxValue.
* Test/System.Text/StringBuilderTest.cs: new tests for capacity when
the StringBuilder is created from a string.
svn path=/trunk/mcs/; revision=38734
* System.Text/StringBuilder.cs: throw if the new size is greater than
the maximum capacity for the StringBuilder. Patch by [email protected].
Fixes bug #62422.
* Test/System.Text/StringBuilderTest.cs: patch to test for capacity
being exceeded.
svn path=/trunk/mcs/; revision=38640
* StringBuilder.cs: added TODO for serialization
* UnicodeEncoding.cs: added TODO for serialization
* UTF7Encoding.cs: added TODO for serialization
* UTF8Encoding.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29621
* StringBuilder.cs
(Insert int, char[]): fix by using new string(char[]) instead of
char[].ToString() and simplify.
(Insert int, string, int): add LAMESPEC note.
(Insert int char[], int, int): handle value==null according to spec.
Use a string instead of char array + Array.Copy (gonzalo)
svn path=/trunk/mcs/; revision=23920
* StringBuilder.cs (Insert int, char): It is really silly and
wasteful to allocate an array here. We can just copy the value
over.
svn path=/trunk/mcs/; revision=20144
* String.cs: Created method FormatHelper that does formatting,
using a StringBuilder.
* StringBuilder.cs
(AppendFormat) Use FormatHelper in System.String to avoid
allocating an extra StringBuilder.
(Append string, int, int), (Append char, int): Both were
allocating extra strings.
svn path=/trunk/mcs/; revision=17466
* StringBuilder.cs: fix the constructor: 'value' can be NULL,
'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
This fixes the StringBuilder unit tests.
svn path=/trunk/mcs/; revision=11069
* StringBuilder.cs: improved performace by using String.InternalCopyTo
instead of using ToCharArray all over the place (more that 50% of
speed improvement when using Append).
svn path=/trunk/mcs/; revision=7000
* StringBuilder.cs: implemented AppendFormat methods using
String.Format. Thanks Paolo!
This makes xsp generate correct C# output in linux :-). I still need
to do more testing, though.
svn path=/trunk/mcs/; revision=5388
* StringBuilder.cs: make ToString() return a interned string, this
seems to be required to make switch on string work.
svn path=/trunk/mcs/; revision=3079
* StringBuilder.cs: Throw exceptions when constructor paramter(s) are
invalid. Just like MS does (as best as I can tell).
Tests for these exceptions are now added to the unit tests as well.
svn path=/trunk/mcs/; revision=1225
* StringBuilder.cs: Throw exception if they try to make a StringBuilder
whose capacity is greater than the MaxCapacity.
I added some tests for the constructors and the above exception. More
coming soon.
svn path=/trunk/mcs/; revision=1198