[Mono-devel-list] [PATCH] (String|Char).ToLower and ToUpper with CultureInfo

Ben Maurer 05mauben at hawken.edu
Tue Mar 16 10:16:37 EST 2004

src = (UChar *)g_malloc0 (sizeof (UChar) * (2));

you dont need malloc/free here, just do a UChar [2].

>>> Mohammad DAMT <md at mt.web.id> 03/16/04 05:41 AM >>>
This patch (2 sides, mono-side and classlib side) implements
Char.ToLower(CultureInfo) and Char.ToUpper(CultureInfo).

The patch also set the icall for String.ToLower and String.ToUpper to
ves_icall_System_String_InternalToLower_Comp and
ves_icall_System_String_InternalToUpper_Comp respectively (currently
they point to ves_icall_System_String_InternalToUpper and
ves_icall_System_String_InternalToUpper which is not Culture enabled).

The patch also contains diff to CharTest.cs and StringTest.cs.
Mohammad DAMT <mdamt at bisnisweb.com>
http://www.bisnisweb.net ASP.Net Linux web hosting

More information about the Mono-devel-list mailing list