Skip to main content

floor_char

Function floor_char 

Source
pub fn floor_char(s: &str, i: usize) -> usize
Expand description

Floor a byte limit to a UTF-8 boundary, clamped to the text length.