Skip to main content

substring_positions

Function substring_positions 

Source
pub fn substring_positions(needle: &str, haystack: &str) -> Vec<usize>
Expand description

Character positions of the first case-insensitive occurrence of needle.

Column matching is a substring test, not a subsequence one, so highlighting it has to be too — otherwise the marks land on letters that had nothing to do with why the row is on screen.