A C++ implementation of the AhoCorasick pattern matching algorithm.
next_id = 0; AhoCorasick ac(patterns); // patterns is a string vector ac.match(text); // text is the string to search in
The function match needs to be customized to application (print matches?, count matches?, etc..).