pub fn find_in_line(line: &str, query: &SearchQuery) -> Vec<(usize, usize)>Expand description
Grapheme index pairs of every non-overlapping match in one line.
Indices come out in graphemes directly, so nothing has to map byte offsets back afterwards — and case folding, which can change a string’s byte length, never gets the chance to shift them.