A lightweight heapless way to do slicing on unicode strings in Rust.
This library provides 4 utility functions to deal with unicode slices.
This will do the same as &s[begin..end]
, but now taking into account utf8 characters.
This will do the same as &s[begin..]
, but now taking into account utf8 characters.
This will do the same as &s[..end]
, but now taking into account utf8 characters.
This will do the same as s.len()
, but now taking into account utf8 characters.
MIT