Skip to main content

code_point_before

Function code_point_before 

Source
pub fn code_point_before(subject: &str, end: usize) -> char
Expand description

The whole character ending at end, so an astral character is classified as one character by the flanking rules rather than as a stray byte. Start of subject counts as a line ending (section 6.4).