Original Post
Hi, I'm using unicode strings (basic_string<uint16>) for my game so it can be localized to any language. I was wondering, is there any good way to compare two unicode strings to see which one is alphabetically larger? With regular strings, I could just use strcmp() and check if it's greater than zero or whatever. With unicode strings I'm not sure... If I knew how to compare two characters to see which one is bigger, then writing the compare function is easy enough... Is it okay to just compare the values of the characters to see which one is bigger? In English I think that would work, because afaik the unicode value for "d" is less than the value for "z" for example. In Japanese I don't know how to go about it, since you might have two different Kanji with different unicode values, but the same phoenetic sound. Hmm, I'm going to spend a little more time looking into this, but if anyone might know offhand if there's a proper way to compare unicode strings, I would really appreciate it if you could give me a hint! Thanks, roos