Convert spelled out numbers to digits?
Convert spelled out numbers to digits?
- Subject: Convert spelled out numbers to digits?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 27 Mar 2013 09:49:05 -0400
I have an application where I cannot control how string data is formatted -
and I am interested in numbers. Sometimes I get a "five" instead of a "5"
or an "eleven" instead of an "11" - and so on.
Is there an easy way to convert these to numeral string representations? Or
should I just make a monster set of stringByReplacingOccurrencesOfString in
a conversion method to return a modified string?
Thanks,
Eric
_______________________________________________
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