Skip to main content

utf8_range

Function utf8_range 

Source
pub fn utf8_range(s: &str, range: Range<usize>) -> Option<Range<usize>>
Expand description

A range of code points of s as a range of bytes; None if it is not within s or is reversed.