Re: Want to know if a string only contains letters
Re: Want to know if a string only contains letters
- Subject: Re: Want to know if a string only contains letters
- From: Marcus Karlsson <email@hidden>
- Date: Fri, 6 Jul 2007 21:09:33 +0200
Thank you. Exactly what I needed.
Marcus
On 6 jul 2007, at 20.55, Aki Inoue wrote:
You can use inverted [NSCharacterSet letterCharacterSet] coupled
with [NSString rangeOfCharacterFromSet:].
Aki
On 2007/07/06, at 11:50, Marcus Karlsson wrote:
Hi.
I have a NSString and want to know if it only contains letters.
That's easy to do with ASCII, but I don't know about every other
letter. Does Cocoa have the ability to tell if the characters in a
NSString is letters?
Marcus
_______________________________________________
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
_______________________________________________
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