Let's say there's a Unicode String
object, and I want to print each Unicode character in that String
one by one.
In my simple test with very limited languages, I could successively achieve this just assuming one code point is always the same as one glyph.
But I know this is not the case, and the code logic above may easily cause unexpected results in some countries or languages.
So my question is, is there any way to tell if one Unicode code point is one complete printable glyph in Java or C#? If I have to write code in C/C++, that's fine too.
I googled for hours but all I got is about code units and code points. It's very easy to tell if a code unit is a part of a surrogate-pair but nothing about graphemes..
Could anyone point me in the right direction, please?