Lines Matching full:grep
26 #include <boost/iostreams/filter/grep.hpp>
202 void test_filter( grep_filter grep,
215 grep_filter grep(match_us_courthouse); in grep_filter_test() local
216 test_filter(grep, addresses, us_courthouse); in grep_filter_test()
220 grep_filter grep(match_us_courthouse, match_default, grep::invert); in grep_filter_test() local
221 test_filter(grep, addresses, us_courthouse_inv); in grep_filter_test()
225 grep_filter grep(match_state_and_zip); in grep_filter_test() local
226 test_filter(grep, addresses, state_and_zip); in grep_filter_test()
230 grep_filter grep(match_state_and_zip, match_default, grep::invert); in grep_filter_test() local
231 test_filter(grep, addresses, state_and_zip_inv); in grep_filter_test()
235 grep_filter grep(match_three_words); in grep_filter_test() local
236 test_filter(grep, addresses, three_words); in grep_filter_test()
240 grep_filter grep(match_three_words, match_default, grep::whole_line); in grep_filter_test() local
241 test_filter(grep, addresses, exactly_three_words); in grep_filter_test()
245 int options = grep::whole_line | grep::invert; in grep_filter_test()
246 grep_filter grep(match_three_words, match_default, options); in grep_filter_test() local
247 test_filter(grep, addresses, exactly_three_words_inv); in grep_filter_test()
251 void test_filter( grep_filter grep, in test_filter() argument
262 io::copy(compose(boost::ref(grep), src), io::back_inserter(dest)); in test_filter()
264 BOOST_CHECK(grep.count() == count); in test_filter()
271 io::copy(src, compose(boost::ref(grep), io::back_inserter(dest))); in test_filter()
273 BOOST_CHECK(grep.count() == count); in test_filter()