Module str_indices::utf16
source · [−]Expand description
Index by utf16 code units.
Functions
Counts the utf16 code units that would be in a string slice if it were encoded as utf16.
Counts the utf16 surrogate pairs that would be in a string slice if it were encoded as utf16.
Converts from byte-index to utf16-code-unit-index in a string slice.
Converts from utf16-code-unit-index to byte-index in a string slice.