Re: Parsing integers from strings
Re: Parsing integers from strings
- Subject: Re: Parsing integers from strings
- From: mmalc crawford <email@hidden>
- Date: Tue, 07 Oct 2008 12:49:44 -0700
On Oct 7, 2008, at 11:49 AM, Cyrus Najmabadi wrote:
Unfortunately, NSScanner seems insufficient.
It doesn't seem able to handle 64bit hexadecimal numbers.
From NSScanner.h, on Mac OS X v10.5 and later:
- (BOOL)scanHexLongLong:(unsigned long long *)result;
- (BOOL)scanHexFloat:(float *)result; // Corresponding to %a or %A
formatting. Requires "0x" or "0X" prefix.
- (BOOL)scanHexDouble:(double *)result; // Corresponding to %a or %A
formatting. Requires "0x" or "0X" prefix.
(On this occasion, please don't file a bug about the omission of these
methods from the documentation...)
mmalc
_______________________________________________
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