• 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: NSString character manipulation...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSString character manipulation... (From: Hsu <email@hidden>)

  • Prev by Date: Re: How to properly create and destroy NSTimers?
  • Next by Date: Re: Centering an Image in an NSScrollView
  • Previous by thread: NSString character manipulation...
  • Next by thread: Re: NSString character manipulation...
  • Index(es):
    • Date
    • Thread