[−][src]Function string_tools::get_idx_before_strict
pub fn get_idx_before_strict<'a>(text: &'a str, begin: &str) -> Option<usize>
Alias for the str find method.
use string_tools::get_idx_before_strict; assert_eq!(get_idx_before_strict("azertyuiopqsdfghjklmwxcvbn", "sdf"), Some(11)); assert_eq!(get_idx_before_strict("azertyuiopqsdfghjklmwxcvbn", "123"), None);