#include #include int main( int, char ** ) { const char *needle = "find"; const char *haystack = "this is a string that we search if we want to find the needle."; const char *hit = boost::algorithm::boyer_moore_search ( haystack, haystack + strlen( haystack ), needle, needle + strlen( needle ) ); if (hit) { std::cout << "Found it!" << std::endl; } else { std::cout << "No match" << std::endl; } return 0; }