Skip to main content

word_boundaries_chars

Function word_boundaries_chars 

pub fn word_boundaries_chars(text: &str, char_idx: usize) -> (usize, usize)
Expand description

Char range (start, end) of the word containing char_idx — the char-indexed mirror of word_boundaries. Drives double-click word selection in a reflowable reader.