Skip to main content

floor_char_boundary

Function floor_char_boundary 

pub fn floor_char_boundary(s: &str, max_bytes: usize) -> usize
Expand description

Largest byte index <= max_bytes that is still a valid UTF-8 boundary.