Re: Parsing integers from strings
Re: Parsing integers from strings
- Subject: Re: Parsing integers from strings
- From: Randall Meadows <email@hidden>
- Date: Tue, 7 Oct 2008 11:50:43 -0600
On Oct 6, 2008, at 11:08 PM, Cyrus Najmabadi wrote:
I've been unsuccessful finding the right class in cocoa to help me
parse
integers inside NSStrings.
I'm looking for something similar to java's Long.parseInt(string,
radix).
i.e. something that can understand a stream of numbers along with a
specified radix (which may be 8, 10 or 16 in my use cases).
What is available to help out here?
I think you'd want NSScanner.
_______________________________________________
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