pub fn code_point_before(subject: &str, end: usize) -> charExpand 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).