Skip to main content

Module grapheme_str

Module grapheme_str 

Source
Expand description

Unicode UAX #29 Extended Grapheme Cluster String Operations (str.*).

Eliminates JavaScript’s UTF-16 surrogate-pair corruption ("🚀".length === 2, "👨‍👩‍👧‍👦".length === 11, and $&/$' replacement traps) by operating on extended grapheme clusters, explicit scalar code points, and UTF-8 bytes.

Functions§

split_graphemes
Segment a UTF-8 string into Unicode UAX #29 Extended Grapheme Clusters.