RE: Sorting unicode strings
RE: Sorting unicode strings
- Subject: RE: Sorting unicode strings
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Thu, 30 Dec 2004 14:41:57 -0500
- Importance: Normal
You would definitely NOT want to use NSLiteralSearch in combination of
NSBackwardsSearch. If you specify both options, you get what appears to be
a forwards literal search, not a backwards literal search. At least, that's
what happened last time I tried it. Not sure about combining
NSLiteralSearch with the other possible masks.
Jonathan
> -----Original Message-----
> From: cocoa-dev-bounces+jonathan=email@hidden
> [mailto:cocoa-dev-bounces+jonathan=email@hidden]On Behalf
> Of Kevin Ballard
> Sent: Thursday, December 30, 2004 12:38 AM
> To: Cocoa-Dev Development
> Subject: Re: Sorting unicode strings
>
>
> I've never really been clear on this. The docs for NSLiteralSearch say
> it does a byte-for-byte comparison of strings. Is there any reason to
> use this aside from a speed boost? Is there any situation in which you
> would definitely *not* want to use this?
>
> On Dec 29, 2004, at 3:58 PM, Ricky Sharp wrote:
>
> > I then created a simple app that built instances of NSString with the
> > folder names and sorted them with NSString's compare:options: I used
> > NSLiteralSearch for the options param. The results almost gave me the
> > same as what Finder did.
>
> --
> Kevin Ballard
> email@hidden
> http://www.tildesoft.com
> http://kevin.sb.org
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden