Function galil_seiferas::gs_find
[−]
[src]
pub fn gs_find<T: Eq>(text: &[T], pattern: &[T]) -> Option<usize>
This is the Galil-Seiferas string matching algorithm.
If a match exists where pattern
is a substring of text
, return the
offset to the start of the match inside Some(_)
. If not, return None
.