Lines Matching full:text

29 #include "utils/text/regex.hpp"
33 #include "utils/text/exceptions.hpp"
35 namespace text = utils::text;
41 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY()
42 "foo.*bar", "this is a string without the searched text", 0); in ATF_TEST_CASE_BODY()
51 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY()
62 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY()
74 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY()
87 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY()
99 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY()
112 const text::regex regex = text::regex::compile("number is ([0-9]+)", 1); in ATF_TEST_CASE_BODY()
115 const text::regex_matches matches = regex.match("my number is 581."); in ATF_TEST_CASE_BODY()
123 const text::regex_matches matches = regex.match("your number is 6"); in ATF_TEST_CASE_BODY()
135 const text::regex regex1 = text::regex::compile("foo", 0, false); in ATF_TEST_CASE_BODY()
140 ATF_REQUIRE(!text::match_regex("foo", "bar Foo bar", 0, false)); in ATF_TEST_CASE_BODY()
141 ATF_REQUIRE(!text::match_regex("foo", "bar foO bar", 0, false)); in ATF_TEST_CASE_BODY()
142 ATF_REQUIRE(!text::match_regex("foo", "bar FOO bar", 0, false)); in ATF_TEST_CASE_BODY()
144 const text::regex regex2 = text::regex::compile("foo", 0, true); in ATF_TEST_CASE_BODY()
150 ATF_REQUIRE( text::match_regex("foo", "bar foo bar", 0, true)); in ATF_TEST_CASE_BODY()
151 ATF_REQUIRE( text::match_regex("foo", "bar Foo bar", 0, true)); in ATF_TEST_CASE_BODY()
152 ATF_REQUIRE( text::match_regex("foo", "bar foO bar", 0, true)); in ATF_TEST_CASE_BODY()
153 ATF_REQUIRE( text::match_regex("foo", "bar FOO bar", 0, true)); in ATF_TEST_CASE_BODY()
159 ATF_REQUIRE_THROW(text::regex_error, in ATF_TEST_CASE_BODY()
160 text::regex::compile("this is (unbalanced", 0)); in ATF_TEST_CASE_BODY()