* String.cs: A new LOS_limit variable which gives the maximum
string length that's not put in the LOS.
* StringBuilder.cs: Copy the string also if it's in the LOS and
chopping it would bring its size below the LOS limit.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=147732
* StringBuilder.cs: don't throw on null values in ctor(string, int).
Unify another ctor into the main one to account for MaxCapacity.
svn path=/trunk/mcs/; revision=138692
* String.cs (ReplaceUnchecked): Avoid any unnecessary work and
string allocations by returning early when no oldValue was found.
2008-09-08 Juraj Skripsky <[email protected]>
* StringBuilder.cs (Replace): Return early when no oldValue was
found. Avoid extra string allocations.
svn path=/trunk/mcs/; revision=114321
* StringBuilder.cs (ToString): Use String.SubstringUnchecked instead
of String.Substring, as the former is guaranteed to create a new
string object. Fixes bug #395904.
* String.cs (Substring): Blocking bug #395904 has been fixed,
re-enable optimization.
* StringTest.cs (Substring2): Blocking bug #395904 has been fixed,
re-enable test.
svn path=/trunk/mcs/; revision=104629
* String.cs: Update of String that moves all remaining non-culture-sensitive
code to managed C# code. Improves performance for most cases and most methods
allows code-optimizations tools to perform better optimizations by removing the
internalcalls. Reduces the total number of lines of code used for String.
Allows code duplication reduction in several other classes and the runtime.
* StringComparer.cs: Remove duplicate code and call relevant String methods.
* StringBuilder.cs: Use the new managed String functions.
svn path=/trunk/mcs/; revision=99569
* 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