Expand description
Index by utf16 code units.
Functionsยง
- count
- Counts the utf16 code units that would be in a string slice if it were encoded as utf16.
- count_
surrogates - Counts the utf16 surrogate pairs that would be in a string slice if it were encoded as utf16.
- from_
byte_ idx - Converts from byte-index to utf16-code-unit-index in a string slice.
- to_
byte_ idx - Converts from utf16-code-unit-index to byte-index in a string slice.