2009-10-27 Sebastien Pouliot <[email protected]>
* String.cs: Remove unused (and unneeded) internal call defs.
Reduce duplication (and fix test) for Concat (object,object).
Avoid allocating zero-length strings in the cases where the
FX does not do so.
In Test/System.Text:
2009-10-27 Sebastien Pouliot <[email protected]>
* UnicodeEncodingTest.cs: Add test cases with an odd number of
bytes being used in GetString (it does not crash but it does not
work like MS FX either).
In Test/System:
2009-10-27 Sebastien Pouliot <[email protected]>
* StringTest.cs: Add test case for methods that can return
empty strings.
In System.Globalization:
2009-10-27 Sebastien Pouliot <[email protected]>
* TextInfo.cs: Avoid allocating zero-length strings in ToLower
and ToUpper methods
svn path=/trunk/mcs/; revision=144921
* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
sure the components of a read-only culture object are read-only as well.
svn path=/trunk/mcs/; revision=92326
* CompareInfo.cs: Cache full UseManagedCollation value;
* CultureInfo.cs (Parent): Add caching to avoid re-creating culture info
every time when the property is used.
* TextInfo.cs: Removed unused field.
svn path=/trunk/mcs/; revision=67623
* DateTimeFormatInfo.cs: Switched (where possible) our internal
field names to match MS names. Added fields that MS has and we
don't. Fixes serialization issues with MS.
* CultureInfo.cs, Calendar.cs, TextInfo.cs,
GregorianCalenda.cs: Hiding internal attributes from serialization
svn path=/trunk/mcs/; revision=57532
* DateTimeStyles.cs: ComVisible is only needed in 2.0.
* TextInfo.cs: Added some 2.0 features that were needed (e.g. LCID)
to implement serialization for another class. Added TODO on class for
deserialization (so it shows up in the status page).
svn path=/trunk/mcs/; revision=54014
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)
svn path=/trunk/mcs/; revision=44558
* Char.cs : ToUpper()/ToLower() comparison ranges were incorrect.
* TextInfo.cs : To make new CultureInfo (127) as invariant, it should
not compare object Equals() against InvariantCulture.
svn path=/trunk/mcs/; revision=42597
* TextInfo.cs : Fixed ToTitleCase() so that
- handle some titlecase characters in Latin ang Greek.
- it keeps "all title case" word as is ("ABC" does not become "Abc").
- it can handle such string like "1ABc".
* TextInfoTest.cs : added further ToTitleCase() tests.
svn path=/trunk/mcs/; revision=42580
* String.cs,
Char.cs : use TextInfo for ToLower() and ToUpper().
* TextInfo.cs : implemented culture sensitive ToLower() and ToUpper()
which behaves exactly the same as MS.NET does.
svn path=/trunk/mcs/; revision=42511
* CultureInfo.cs: Store TextInfo data. Hand it over to TextInfo.
* TextInfo.cs: Rewrote props to use the textinfo data stored in
unmanaged code.
svn path=/trunk/mcs/; revision=37712
* TextInfo.cs (ToString) Fix the return value for ToString.
(Add a new parameter: the CultureInfo, since we implemented things
in terms of the CultureInfo in our runtime, and not the
TextInfo).
svn path=/trunk/mcs/; revision=35012
Made those serializable-compatible with MS.NET: modified fields names to
match MS.NET ones, and in CultureInfo added a flag to control when a
deserialized instance need to be initialized.
svn path=/trunk/mcs/; revision=25218