Home
last modified time | relevance | path

Searched refs:needle1 (Results 1 – 2 of 2) sorted by relevance

/third_party/boost/libs/algorithm/example/
Dsearch_example.cpp20 const std::string needle1 ( "ACAB" ); variable
30 …if ( ba::boyer_moore_search ( haystack.begin (), haystack.end (), needle1.begin (), needle1.end ()… in main()
31 … std::cout << "Found '" << needle1 << "' in '" << haystack << "' (boyer-moore 1)" << std::endl; in main()
33 …std::cout << "Did NOT find '" << needle1 << "' in '" << haystack << "' (boyer-moore 1)" << std::e… in main()
38 ba::boyer_moore<std::string::const_iterator> search1 ( needle1.begin (), needle1.end ()); in main()
40 … std::cout << "Found '" << needle1 << "' in '" << haystack << "' (boyer-moore 2)" << std::endl; in main()
42 …std::cout << "Did NOT find '" << needle1 << "' in '" << haystack << "' (boyer-moore 2)" << std::e… in main()
45 …yer_moore_horspool_search ( haystack.begin (), haystack.end (), needle1.begin (), needle1.end ()) … in main()
46 …std::cout << "Found '" << needle1 << "' in '" << haystack << "' (boyer-moore-horspool)" << std::e… in main()
48 …std::cout << "Did NOT find '" << needle1 << "' in '" << haystack << "' (boyer-moore-horspool)" <<… in main()
[all …]
/third_party/boost/libs/algorithm/test/
Dsearch_test1.cpp238 std::string needle1 ( "ANPANMAN" ); in BOOST_AUTO_TEST_CASE() local
255 check_one ( haystack1, needle1, 26 ); in BOOST_AUTO_TEST_CASE()
263 check_one ( needle1, haystack1, -1 ); // cant find long pattern in short corpus in BOOST_AUTO_TEST_CASE()
271 check_one ( haystack4, needle1, -1 ); // can't find in an empty haystack in BOOST_AUTO_TEST_CASE()