PeachDrawing.Text
PeachDrawing.Text.Unicode.Segmenter
Segmenter.FindGraphemeBoundaries(ReadOnlySpan<char>) Method
Finds the boundaries between extended grapheme clusters: the units a reader sees as one character, such as a letter with its accents, a Hangul syllable, an emoji sequence or a flag.
public static int[] FindGraphemeBoundaries(System.ReadOnlySpan<char> text);
Parameters
text System.ReadOnlySpan<System.Char>
The text to segment.
Returns
System.Int32[]
The boundaries, as UTF-16 indices.