unicode - Java sort strings in codepoint (UTF-32) order -


In addition to converting to UTF-8 bytes, or comparing, compare and compare a Comparison Function, Write JDK 1.6 Is missing in that which compares two strings in full unicode code point order instead of UCS-2 code point order?

I appreciate that this is not a difficult thing for code though I thought that in 1.6 there are various 'codepoint' APIs in the java.lang.String and the collation system. , But apparently there is nothing to compare two strings without hesitation on the surrogates. / P>

For the benefit of a commenter, I have to feed some data in this device which wants to wire in this sequence.

AAAIC, there is no such method in the API, but it is too small to implement itself. needed. Just out of curiosity: Why do you need something for this?


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -