4 ms·
Don't you want grapheme clusters for cursor positions? Length in encoded form can be found after encoding by checking the length of the binary content I guess.
by singpolyma3 2y ago
Don't you want grapheme clusters for cursor positions?
Length in encoded form can be found after encoding by checking the length of the binary content I guess.
I think for historical reasons access to codepoints can be useful, but it's rarely what one wants.