3 ms·
Depending on the use case, libc, Windows API or ICU. Personally, I'd like to see a simple C string library using modified UTF-8 (to be compatible with ASCIIZ)
by cygx 15y ago
Depending on the use case, libc, Windows API or ICU.
Personally, I'd like to see a simple C string library using modified UTF-8 (to be compatible with ASCIIZ) which is grapheme aware.
I'm tempted to take a shot at writing one myself, but haven't gotten around to it yet. If anyone is interested, see http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries for the algorithm and http://www.unicode.org/Public/UNIDATA/auxiliary/GraphemeBreakProperty.txt http://www.unicode.org/Public/UNIDATA/auxiliary/GraphemeBrea... for the property data...