NSString comparing alphanumerically (with numbers)
NSString comparing alphanumerically (with numbers)
- Subject: NSString comparing alphanumerically (with numbers)
- From: nicolas berloquin <email@hidden>
- Date: Wed, 22 May 2002 15:25:22 +0200
Hi !
(I hope someone will have a hint on this one, unless I'm now banned
completely ;-))
Is there a direct/simple way to compare two NSStrings (during a sort),
while keeping numbers as numbers
mixed with text ? (ie toto1 < toto2 < toto10 and not toto1 < toto10 <
toto2 ) ?
what would be the best *cocoa* way to do it ? (Or should I compare each
character myself?)
(neither caseInsensitiveCompare nor NSLiteralSearch do the job)
thanks ^_^
(et bonjour aux francais, il semble qu'on soit nombreux ici !)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.