* CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
override for Moonlight and move all icalls together so they
can be #if-ed out.
svn path=/trunk/mcs/; revision=143648
* CompareInfo.cs : Fixed bug #462957. With empty target string it
should always return 0.
* CompareInfoTest.cs : added test for #462957.
svn path=/trunk/mcs/; revision=122602
[ these fix nunit built with MS .net 2.0, running on mono. nunit
apparently stores all manner of things in its resources ]
* NumberFormatInfo.cs: add unused nativeDigits and
digitSubstitution fields that MS serializes.
* DateTimeFormatInfo.cs: serialization fixes. MS apparently
stores (and serializes) a couple of fields as ints, but exposes
them to programmers as Enum's.
* CompareInfo.cs: add unused m_name field that MS serializes.
* GregorianCalendar.cs: add a couple of unused fields that MS serializes.
svn path=/trunk/mcs/; revision=71620
* CompareInfo.cs : there was a test which raises assertion failure
if there isn't paramName for ArgumentException. Quite odd one.
svn path=/trunk/mcs/; revision=71449
* CompareInfo.cs : GetSortKey() does not allow Ordinal and
OrdinalIgnoreCase in 2.0 (shuold be also prohibited in 1.x BTW).
svn path=/trunk/mcs/; revision=70628
* SimpleCollator.cs : added IndexOf() implementation for Ordinal
and OrdinalIgnoreCase, though Ordinal version is not used (since
it is slower than icall).
* CompareInfo.cs : for OrdinalIgnoreCase, IndexOf() and LastIndexOf()
will use managed version (icalls for them are case sensitive).
Removed MonoTODOs.
* CompareInfoTest.cs : added tests for OrdinalIgnoreCase versions
of IndexOf() and LastIndexOf(). Added Ordinal LastIndexOf() tests.
svn path=/trunk/mcs/; revision=70037
* 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
* CompareInfo.cs : added support for OrdinalIgnoreCase.
* CompareInfoTest.cs : added test for Compare() w/ OrdinalIgnoreCase.
svn path=/trunk/mcs/; revision=53004
2005-10-31 Miguel de Icaza <[email protected]>
* HijriCalendar.cs, HebrewCalendar.cs, JulianCalendar.cs,
GregorianCalendar.cs, JapaneseCalendar.cs, Calendar.cs,
TaiwanCalendar.cs, HijriCalendar.cs: Add
CalendarAlgorithmType, MinSupportedDateTime, MaxSupportedDateTime
properties.
* Added ComVisibleAttribute in a bunch of places, using the fully
qualified name to speed up cut and paste.
svn path=/trunk/mcs/; revision=52426
* CompareInfo.cs: Use Environment.internalGetEnvironmentVariable as
the .cctor gets executed before the security manager is ready to be
activated (and cause recursion with --security).
svn path=/trunk/mcs/; revision=49139
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
* CompareInfo.cs: Get ICU name from a cultureinfo object instead
of looking it up in the culture map.
* RegionInfo.cs: Dont check if the LCID is neutral unless its not
found in the switch. Avoids an icall.
svn path=/trunk/mcs/; revision=25160
* CompareInfo.cs: Replace blah == "" with blah.Length == 0.
MUCH faster. Note, we dont need to check for nulls, because
the properties were used in other places.
svn path=/trunk/mcs/; revision=21382
* String.cs: Added Compare shortcut for length==0.
2003-12-19 Dick Porter <[email protected]>
* CompareInfo.cs: Added assorted shortcuts when comparing empty
strings. Fixed offset and length range checks to flag when <0.
Broke test that offset >= string length to match actual ms
behaviour (sigh.) Fixes bug 52310.
2003-12-19 Dick Porter <[email protected]>
* StringTest.cs: Added Compare test for length==0.
2003-12-19 Dick Porter <[email protected]>
* CompareInfoTest.cs: Added some Compare tests
svn path=/trunk/mcs/; revision=21341
* String.cs: Don't use CompareInfo for non-culture-sensitive
IndexOf and LastIndexOf methods.
2003-12-06 Dick Porter <[email protected]>
* CompareInfo.cs: Don't build strings in Compare, IndexOf and
LastIndexOf methods. Avoid the icall in IndexOf and LastIndexOf
if the search parameter is a char and the CompareOptions include
Ordinal.
svn path=/trunk/mcs/; revision=20820
* CompareInfo.cs: Implement the deserialization callback
* CultureInfo.cs: Allow CompareInfo to see the CultureMap so that
it can construct the ICU collator itself
svn path=/trunk/mcs/; revision=20776
* String.cs: Make Compare, IndexOf, LastIndexOf, StartsWith,
Replace, ToLower, ToUpper and Equals use the correct CultureInfo.
2003-12-01 Dick Porter <[email protected]>
* CultureInfo.cs: Culture name creation is case-insensitive.
Implemented CurrentCulture and CurrentUICulture.
* CompareInfo.cs: Fix IndexOf and LastIndexOf so that they work
for combining characters.
2003-12-01 Dick Porter <[email protected]>
* Thread.cs: Implement CurrentCulture and CurrentUICulture
2003-12-01 Dick Porter <[email protected]>
* CaseInsensitiveComparer.cs: Construct the default comparers when
they're needed, to avoid a dependency loop with CultureInfo's
constructor.
svn path=/trunk/mcs/; revision=20663
* CultureInfo.cs: Implemented, with internal calls to ICU apart
from the Invariant culture.
* SortKey.cs:
* CompareInfo.cs: Implemented
* DateTimeFormatInfo.cs: Fixed the worst of the formatting,
construct default FullDateTimePattern on the fly.
svn path=/trunk/mcs/; revision=18820
* CompareInfo.cs: new basic stub (compiles on Linux, so I assume
it does not break the build on windows. Sorry if it does).
svn path=/trunk/mcs/; revision=4386