u5e
UnicodeTextC++Library
|
The challenge of truncating a string is that if you operate on the native level, you risk breaking a codepoint in half.
The u5e library provides an easy way to truncate a text, starting from a target native size and finding the correct boundary.