Re: String processing
Re: String processing
- Subject: Re: String processing
- From: Andreas Mayer <email@hidden>
- Date: Mon, 19 Mar 2007 16:42:03 +0100
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.
(BTW: I recommend you use AppKiDo for searching the Cocoa class
hierarchy. It's a lot faster than digging through the documentation
in Xcode or online.)
Andreas
_______________________________________________
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