Re: String processing
Re: String processing
- Subject: Re: String processing
- From: Robert Walker <email@hidden>
- Date: Mon, 19 Mar 2007 12:18:45 -0400
Thanks everyone. I just wanted to make sure I was on the right
track. I didn't think to look in more detail at NSCharacterSet, but
that appears to be exactly what I need.
On Mar 19, 2007, at 11:51 AM, glenn andreas wrote:
On Mar 19, 2007, at 10:42 AM, Andreas Mayer wrote:
Am 19.03.2007 um 15:58 Uhr schrieb Robert Walker:
In my research for a solution it appears to me that NSScanner may
be used to do this conversion. I was thinking of creating a
category on NSString and using NSScanner to search for instances
of the dash.
Sounds good.
But, I'm not sure if this will work for converting the other
direction. Is there a convenient way to scan for capital letters
using NSScanner?
Yes. NSScanner uses NSCharacterSet which implements
+capitalizedLetterCharacterSet.
And make sure to remember to call [scanner setCaseSensitive: YES]
because by default, scanners are case insensitive (which makes the
whole "scan for case" do nothing)
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40mac.com
This email sent to email@hidden
--
Robert Walker
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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