Re: NSString character manipulation...
Re: NSString character manipulation...
- Subject: Re: NSString character manipulation...
- From: Ondra Cada <email@hidden>
- Date: Mon, 1 Jul 2002 13:11:37 +0200
On Monday, July 1, 2002, at 09:24 , Hsu wrote:
Is it safe to do something like:
if ( (isalnum([myNSString characterAtIndex:0])) || ([myNSString
characterAtIndex:0] == '.') ) {
// blah blah
}
Or am I going to have false positives because of unicode characters?
You are going to raise all forms of havoc because of unicode -- all those
is... standard macros are 8-bit.
Use NSCharacterSet services instead.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.