3 ms·
How do you define "character"? You typically need to take into account grapheme clusters / composed character sequences, which make jump-to-character O(n) rega
by panic 10y ago
How do you define "character"? You typically need to take into account grapheme clusters / composed character sequences, which make jump-to-character O(n) regardless of encoding.