Re: Convert spelled out numbers to digits?
Re: Convert spelled out numbers to digits?
- Subject: Re: Convert spelled out numbers to digits?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 28 Mar 2013 08:48:25 -0700
On Mar 28, 2013, at 6:57 AM, Kirk <email@hidden> wrote:
> Simplistically:
>
> Parse words of text into an array of words.(Or an array of NSRanges)
Do not do this yourself. Use CFStringTokenizer.
>
> Test each word for "numberness" (non-nil return) using NSNumberFormatter.
I don't think this is going to work. For example, in Spanish, “ciento” is the counting word for “hundred,” but “cien” is the adjective, and is also used when combining with “mil” (“thousand”).
--Kyle Sluder
_______________________________________________
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