Expand description
Utility functions for utf8 string slices.
This module provides various utility functions that operate on string slices in ways compatible with Ropey. They may be useful when building additional functionality on top of Ropey.
Functions§
- byte_
to_ char_ idx - Converts from byte-index to char-index in a string slice.
- byte_
to_ line_ idx - Converts from byte-index to line-index in a string slice.
- char_
to_ byte_ idx - Converts from char-index to byte-index in a string slice.
- char_
to_ line_ idx - Converts from char-index to line-index in a string slice.
- line_
to_ byte_ idx - Converts from line-index to byte-index in a string slice.
- line_
to_ char_ idx - Converts from line-index to char-index in a string slice.