Kyle
Kyle

Reputation: 22055

How do I decompose a unicode character in Objective-C?

How can I decompose a unicode character like into it's components of ㅂㅏㅂ?

I want to test to see if the decomposition ends with , and then if it does, remove that and recompose the character. For example, turn to or turn to .

Upvotes: 0

Views: 177

Answers (1)

Kyle
Kyle

Reputation: 22055

NSString has a decomposedStringWithCanonicalMapping function that does exactly that.

Upvotes: 1

Related Questions