Skip to main content

split_range_by_grapheme_width

Function split_range_by_grapheme_width 

Source
fn split_range_by_grapheme_width(
    line: &str,
    start: usize,
    end: usize,
    width: usize,
) -> usize
Expand description

Wraps the given byte range of a line at grapheme boundaries, accounting for wide characters.