Function regex_automata::util::utf8::is_boundary

source ยท
pub(crate) fn is_boundary(bytes: &[u8], i: usize) -> bool
Expand description

Returns true if and only if the given offset in the given bytes falls on a valid UTF-8 encoded codepoint boundary.

If bytes is not valid UTF-8, then the behavior of this routine is unspecified.