pub fn char_range(text: &str, r: &Range<usize>) -> Option<(usize, usize)>
A byte range as a character range (GTK’s TextIter, ArkUI’s spans).
TextIter