سؤال

In my application I have to normalize an NSString using NFD Unicode system. How can I do this? I need to convert a string which the user entered as normalized and from this normalized string, I have to calculate a number. Can anyone help me?

هل كانت مفيدة؟

المحلول

NSString *nfdString = [yourString decomposedStringWithCanonicalMapping];
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top