Skip to main content

utf16_range

Function utf16_range 

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

A range of code points of s as a range of UTF-16 units; None if it is not within s or is reversed.