Maximum Character Value and Collation

A

alan

I'm writing a tree structure to store strings and would like a maximum
character value to serve as a boundry.

Is there a universal maximum character value that will survive in
collation algrotihms? Is that value Character.MAX_VALUE?

Thank you.
 
B

Boudewijn Dijkstra

I'm writing a tree structure to store strings and would like a maximum
character value to serve as a boundry.

Is there a universal maximum character value that will survive in
collation algrotihms? Is that value Character.MAX_VALUE?

No, that is only the largest value of type char (=0xFFFF). The maximum code
point value is Character.MAX_CODE_POINT (=0x10FFFF), which is the absolute
maximum in Unicode 4. For the next few decades, Integer.MAX_VALUE
(=0xFFFFFFFF) will be far beyond the maximum code point value, but it is not
valid in Unicode.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top