find_keyword_outside_parens

Function find_keyword_outside_parens 

Source
fn find_keyword_outside_parens(s: &str, keyword: &str) -> Option<usize>
Expand description

Find a keyword in the string that is not inside parentheses. Returns the byte offset of the keyword start.