fn split_range_by_grapheme_width( line: &str, start: usize, end: usize, width: usize, ) -> usize
Wraps the given byte range of a line at grapheme boundaries, accounting for wide characters.