Lines Matching refs:regex

10 // <regex>
20 #include <regex>
30 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk)));
46 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk)));
61 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk)));
68 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk)));
74 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk),
81 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk)));
87 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk)));
102 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::awk)));
120 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi",
127 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk)));
142 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk)));
148 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk)));
154 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::awk)));
169 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::awk)));
175 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::awk)));
181 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::awk)));
196 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::awk)));
211 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::awk)));
226 assert(std::regex_match(s, m, std::regex("(.*).*", std::regex_constants::awk)));
244 assert(!std::regex_match(s, m, std::regex("(a*)*", std::regex_constants::awk)));
250 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk)));
256 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk)));
271 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk)));
286 assert(std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk)));
301 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk)));
307 assert(!std::regex_match(s, m, std::regex("ab{3,5}c", std::regex_constants::awk)));
313 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk)));
319 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk)));
334 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk)));
349 assert(std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk)));
364 assert(!std::regex_match(s, m, std::regex("a.{3,5}c", std::regex_constants::awk)));
370 assert(std::regex_match(s, m, std::regex("tour|to|tournament",
386 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+",
402 assert(std::regex_match(s, m, std::regex("(tour|to|t)+",
421 assert(!std::regex_match(s, m, std::regex("-(.*),\1-", std::regex_constants::awk)));
427 assert(std::regex_match(s, m, std::regex("-.*,.*-", std::regex_constants::awk)));
442 assert(std::regex_match(s, m, std::regex("^[a]$",
458 assert(std::regex_match(s, m, std::regex("^[ab]$",
474 assert(std::regex_match(s, m, std::regex("^[a-f]$",
490 assert(!std::regex_match(s, m, std::regex("^[a-f]$",
497 assert(!std::regex_match(s, m, std::regex("q[^u]",
504 assert(!std::regex_match(s, m, std::regex("q[^u]",
511 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B",
527 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B",
534 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B",
550 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B",
557 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B",
564 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B",
580 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]",
596 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]",
612 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]",
620 /* assert(std::regex_match(s, m,*/ std::regex("[a[=M=]z]"/*,
636 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]",
653 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]",
660 assert(!std::regex_match(s, m, std::regex("[ace1-9]*",
667 assert(!std::regex_match(s, m, std::regex("[ace1-9]+",
676 std::regex regex(FI(r), FI(r+sr), std::regex_constants::awk);
680 assert(std::regex_match(BI(s), BI(s+ss), m, regex));
695 assert(std::regex_match(s, m, std::regex("[\\n]+",
1357 std::wregex regex(FI(r), FI(r+sr), std::regex_constants::awk);
1361 assert(std::regex_match(BI(s), BI(s+ss), m, regex));