Skip to main content

snap_to_char_boundary_ceil

Function snap_to_char_boundary_ceil 

Source
fn snap_to_char_boundary_ceil(buf: &[u8], idx: usize) -> usize
Expand description

Snap idx up to the nearest UTF-8 character boundary (or buf.len()).