Claw
1.7.3
|
Exact pattern finding with the Knuth-Morris-Pratt's algorithm. More...
#include <kmp.hpp>
Public Member Functions | |
template<class UnaryPredicate > | |
void | operator() (const RandomIterator pattern_begin, const RandomIterator pattern_end, const RandomIterator text_begin, const RandomIterator text_end, UnaryPredicate &action) const |
Pattern matching with the Knuth-Morris-Pratt's algorithm. |
Exact pattern finding with the Knuth-Morris-Pratt's algorithm.
void claw::text::kmp< RandomIterator >::operator() | ( | const RandomIterator | pattern_begin, |
const RandomIterator | pattern_end, | ||
const RandomIterator | text_begin, | ||
const RandomIterator | text_end, | ||
UnaryPredicate & | action | ||
) | const |
Pattern matching with the Knuth-Morris-Pratt's algorithm.
pattern_begin | Iterator on the first item in the pattern. |
pattern_end | Iterator after the last item in the pattern. |
text_begin | Iterator on the first item in the text. |
text_end | Iterator after the last item in the text. |
action | Predicate called with the last found position for the pattern. |
Definition at line 174 of file kmp.tpp.
References claw::it_index< T >::set().