str_indices

Module chars

Source
Expand description

Index by chars.

Functionsยง

  • Counts the chars in a string slice.
  • Converts from byte-index to char-index in a string slice.
  • Converts from char-index to byte-index in a string slice.