Skip to main content

occurrences

Function occurrences 

Source
fn occurrences<'a>(
    text: &'a str,
    name: &'a str,
    nocase: bool,
) -> impl Iterator<Item = Range<usize>> + 'a
Expand description

Every whole-word occurrence of name in text outside strings (ignoring ASCII case when nocase).