Finds a particular index at which one sequence occurs in another sequence.
Finds a particular index at which one sequence occurs in another sequence. Both the source sequence and the target sequence are expressed in terms other sequences S' and T' with offset and length parameters. This function is designed to wrap the KMP machinery in a sufficiently general way that all library sequence searches can use it. It is unlikely you have cause to call it directly: prefer functions such as StringBuilder#indexOf and Seq#lastIndexOf.
the sequence to search in
the starting offset in source
the length beyond sourceOffset to search
the sequence being searched for
the starting offset in target
the length beyond targetOffset which makes up the target string
the smallest index at which the target sequence may start
the applicable index in source where target exists, or -1 if not found
Finds a particular index at which one sequence occurs in another sequence.
Finds a particular index at which one sequence occurs in another sequence.
Like indexOf
, but finds the latest occurrence rather than earliest.
scala.collection.SeqLike, method indexOf
The companion object for trait
SeqLike
.