• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare


  • Subject: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 07 May 2012 17:11:18 -0700

>> I'm sliding over the details of what you said because they're irrelevant for my purposes.
>
> OK, but I'd *really* appreciate it if you'd avoid calling my replies senseless:

I never said your replies are senseless. The sequence was:

>> On 2012.05.05, at 4:51 PM, Kyle Sluder wrote:
>> If I understand Quincey correctly, that's exactly what he's saying: the semantics of localizedCaseInsensitiveCompare: might be such that it is not appropriate for such algorithms.
>
> On 2012.05.07, at 1:35 PM, Martin Wierschin wrote:
> As Jens mentioned, that doesn't make any sense.

My quick dismissal that it "doesn't any sense" was about Kyle's suggestion that perhaps localizedCaseInsensitiveCompare isn't suitable for algorithms which require a transitive comparison operation.

Anyways, I certainly didn't mean to offend you- if I did, I apologize.


>>> Maybe give 'localizedStandardCompare:' a try?
>>
>> Thank you for the idea, but that won't be suitable for me because I need to be able to specify the locale.
>
> And you were going to specify the locale for 'localizedCaseInsensitiveCompare:' how?

I'm not actually using that method, it's just a nice compact name for the mailing list, and has the same errant behavior as -[NSString compare:options:range:locale:] and CFStringCompareWithOptionsAndLocale.

~Martin


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Martin Wierschin <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Quincey Morris <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Martin Wierschin <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Kyle Sluder <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Martin Wierschin <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Quincey Morris <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Martin Wierschin <email@hidden>)
 >Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Problem parsing file in 64 bit build.
  • Next by Date: Re: My app thinks it is a phone. Why?
  • Previous by thread: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Next by thread: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Index(es):
    • Date
    • Thread