Re: Convert spelled out numbers to digits?
Re: Convert spelled out numbers to digits?
- Subject: Re: Convert spelled out numbers to digits?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Thu, 28 Mar 2013 12:57:08 -0400
In my particular case I don't need to use CFStringTokenizer since this
won't be using anything but English. It's a valid general point however.
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki
Imagineric <http://imagineric.ericd.net>
On Thu, Mar 28, 2013 at 11:48 AM, Kyle Sluder <email@hidden> wrote:
> 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