Click or drag to resize
KMP Methods

The KMP type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Takes a pattern string and an input string as command-line arguments; searches for the pattern string in the text string; and prints the first occurrence of the pattern string in the text string.
Public methodSearch(Char)
Returns the index of the first occurrrence of the pattern string in the text string.
Public methodSearch(String)
Returns the index of the first occurrrence of the pattern string in the text string.
Top
See Also