find_pos_before_delimiter

Function find_pos_before_delimiter 

Source
pub fn find_pos_before_delimiter(
    source_str: &str,
    pos_cursor: usize,
    delimiter: &str,
) -> Option<usize>
Expand description

return the position before the delimiter or None
Does NOT mutate the pos_cursor, because that is for a higher level logic to decide.