Re: Finding next / previous characters in an alphabet?
Re: Finding next / previous characters in an alphabet?
- Subject: Re: Finding next / previous characters in an alphabet?
- From: John Stiles <email@hidden>
- Date: Sat, 20 Aug 2005 16:20:55 -0700
Just out of curiosity, what is your ultimate goal here?
I don't think it's clear that all characters have an obvious "next"
character. You mention Japanese, so I'll use Kanji as my
example--certainly they have an ordering, in that they all have Unicode
codepoints, but I don't think it's an average user would think of them
as "ordered" per se. To put it in other terms--from the perspective of
Unicode, 樸 (codepoint 6A38) is immediately followed by 樹 (codepoint
6A39). But if you asked a Japanese person "what character is the next
Kanji immediately after 樸", the question doesn't make any sense. They
wouldn't say, "oh, 樹!"
Jonathan del Strother wrote:
I have a unicode character in an NSString. I need to find the next
character in the alphabet - eg if I have 'd', I want 'e'. I'd also
like it to work with (for example) japanese characters.
There's clearly some character-ordering somewhere in Cocoa, since it
must use that for the compare: methods, but I can't figure out how to
get to it. Any suggestions?
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden