Function librualg::string::common_substring[][src]

pub fn common_substring<'a>(a: &'a str, b: &'a str) -> Option<&'a str>
Expand description

Search for a common substring

 use librualg::string::common_substring;

 assert_eq!(common_substring("aba", "cabdd"), Some("ab"));