sqruff_lib::core::string_helpers

Function find_all

Source
pub fn find_all(substr: &str, in_str: &str) -> Vec<usize>
Expand description

String Helpers for the parser module. Yields all the positions sbstr within in_str https://stackoverflow.com/questions/4664850/how-to-find-all-occurrences-of-a-substring