• 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 ASCII filter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString ASCII filter


  • Subject: Re: NSString ASCII filter
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 12 Feb 2008 15:04:05 -0500
  • Organization: Rogue Research

On 2/12/08 11:58 AM, James Hober said:

>What is the simplest, reasonably efficient way to determine if an
>NSString contains a non-ASCII character

How about:

BOOL foo = [string canBeConvertedToEncoding:
  NSASCIIStringEncoding];

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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

References: 
 >NSString ASCII filter (From: James Hober <email@hidden>)

  • Prev by Date: Re: NSString ASCII filter
  • Next by Date: Re: programmatically implementing segmented control
  • Previous by thread: Re: NSString ASCII filter
  • Next by thread: Re: NSString ASCII filter
  • Index(es):
    • Date
    • Thread