ios - Unable to compare some foreign language using compare: -
i dealing foreign language filenames such 내가 해결할 수없는 생각.docx.
when compare filenames nsstring's compare: returns false same stored filename. unusual part returns true caseinsensitivecompare:.
i have tested passing english filenames, works compare:, showing filenames not capitalized chance.
i can compare not best of way, there many cases nspredicate fails compare 2 strings.
my question how compare these non-english text?
is there other improve way compare, or need utilize loop , utilize caseinsensitivecompare:?
comare: doesn’t homecoming “true” or “false” (or yes or no). returns value of type nscomparisonresult, can nsorderedascending, nsorderedsame, or nsordereddescending. there maybe confusion here having corresponding integer values of these 3 values (-1, 0, , 1, respectively)?
ios objective-c osx cocoa nsstring
No comments:
Post a Comment