• Home
  • Raw
  • Download

Lines Matching refs:needle

35     void check_one_iter ( const Container &haystack, const std::string &needle, int expected ) {  in check_one_iter()  argument
42 pattern_type nBeg = needle.begin (); in check_one_iter()
43 pattern_type nEnd = needle.end (); in check_one_iter()
58 …std::cout << "(Iterators) Pattern is " << needle.length () << ", haysstack is " << haystack.length… in check_one_iter()
83 std::cout << "Searching for: " << needle << std::endl; in check_one_iter()
100 void check_one_pointer ( const Container &haystack, const std::string &needle, int expected ) { in check_one_pointer() argument
106 ptr_type nBeg = needle.size () == 0 ? NULL : &*needle.begin (); in check_one_pointer()
107 ptr_type nEnd = nBeg + needle.size (); in check_one_pointer()
115 …std::cout << "(Pointers) Pattern is " << needle.length () << ", haysstack is " << haystack.length … in check_one_pointer()
135 std::cout << "Searching for: " << needle << std::endl; in check_one_pointer()
150 void check_one_object ( const Container &haystack, const std::string &needle, int expected ) { in check_one_object() argument
157 pattern_type nBeg = needle.begin (); in check_one_object()
158 pattern_type nEnd = needle.end (); in check_one_object()
160 ba::boyer_moore<pattern_type> bm_r = ba::make_boyer_moore ( needle ); in check_one_object()
174 …std::cout << "(Objects) Pattern is " << needle.length () << ", haysstack is " << haystack.length (… in check_one_object()
209 std::cout << "Searching for: " << needle << std::endl; in check_one_object()
227 void check_one ( const Container &haystack, const std::string &needle, int expected ) { in check_one() argument
228 check_one_iter ( haystack, needle, expected ); in check_one()
229 check_one_pointer ( haystack, needle, expected ); in check_one()
230 check_one_object ( haystack, needle, expected ); in check_one()