opensubscriber
   Find in this group all groups
 
Unknown more information…

a : advanced-dotnet@discuss.develop.com 9 September 2008 • 3:02AM -0400

Re: [ADVANCED-DOTNET] String.Compare seems to fail when it should not
by Per Bolmstedt

REPLY TO AUTHOR
 
REPLY TO GROUP




Define "won't work". Also, can you shed some more light on why it "won't
work"?

On Mon, 8 Sep 2008 14:32:02 -0400, =?ISO-8859-1?Q?S=E9bastien_Lorion?=
<sebastien.lorion@GMAI...> wrote:

>It won't work with international characters.
>
>Sébastien
>On Mon, Sep 8, 2008 at 2:19 PM, Per Bolmstedt
><discuss.develop.com@ul7....>wrote:
>
>> On Mon, 8 Sep 2008 13:23:16 -0400, =?ISO-8859-1?Q?S=E9bastien_Lorion?=
>> <sebastien.lorion@GMAI...> wrote:
>>
>>> by using OrdinalIgnoreCase, you are limiting yourself to only the
>>> first 128 chars of ASCII, which in 2008 is kinda out of fashion...
>>
>> How so?
>>
>> According to "New Recommendations for Using Strings in Microsoft .NET
>> "[1]; "Comparisons made using OrdinalIgnoreCase are behaviorally the
>> composition of two calls: calling ToUpperInvariant on both string
>> arguments, and doing an Ordinal comparison.".
>>
>> 1: http://msdn.microsoft.com/en-us/library/ms973919.aspx

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.