KMPSearch Method (String) |
Returns the index of the first occurrrence of the pattern string
in the text string.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int Search(
string txt
)
Parameters
- txt
- Type: SystemString
the text string
Return Value
Type:
Int32the index of the first occurrence of the pattern string
in the text string; N if no such match
See Also