Next: kmp vector, Previous: kmp intro, Up: kmp [Index]
The following conventions for arguments documentation hold:
It is the sequence of elements to search for. It must support random access by indexing.
The half–open range of elements in pattern to search for. pattern-start is the index of the first (included) element; pattern-past is the index of the last (excluded) element.
It is a fixed sequence in which to do the search. It must support random access by indexing.
The half–open range of elements in text in which to do the search. text-start is the index of the first (included) element; text-past is the index of the last (excluded) element.
It is an equality function used to construct the restart vector; for
characters it is typically char=? or char-ci=?, while for
numbers it is =.
It is an element extraction function to be applied to pattern to
retrieve an element by index; if pattern is a string, it is
string-ref; if pattern is a vector it is vector-ref;
if pattern is a list it is list-ref.
It is the KMP restart vector for pattern, as constructed
by %kmp-make-restart-vector.