Lines Matching full:regex
12 // <regex>
24 #include <regex>
36 assert(std::regex_match(s, m, std::regex("a")));
52 assert(std::regex_match(s, m, std::regex("ab")));
67 assert(!std::regex_match(s, m, std::regex("ba")));
74 assert(!std::regex_match(s, m, std::regex("ab")));
80 assert(!std::regex_match(s, m, std::regex("ab"),
87 assert(!std::regex_match(s, m, std::regex("bc")));
93 assert(std::regex_match(s, m, std::regex("ab*c")));
108 assert(std::regex_match(s, m, std::regex("(ab)*c")));
126 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi")));
132 assert(std::regex_match(s, m, std::regex("^abc")));
147 assert(!std::regex_match(s, m, std::regex("^abc")));
153 assert(!std::regex_match(s, m, std::regex("^abc")));
159 assert(std::regex_match(s, m, std::regex("abc$")));
174 assert(!std::regex_match(s, m, std::regex("abc$")));
180 assert(!std::regex_match(s, m, std::regex("abc$")));
186 assert(std::regex_match(s, m, std::regex("a.c")));
201 assert(std::regex_match(s, m, std::regex("a.c")));
216 assert(std::regex_match(s, m, std::regex("a.c")));
231 assert(std::regex_match(s, m, std::regex("(.*).*")));
249 assert(!std::regex_match(s, m, std::regex("(a*)*")));
255 assert(!std::regex_match(s, m, std::regex("ab{3,5}c")));
261 assert(std::regex_match(s, m, std::regex("ab{3,5}c")));
276 assert(std::regex_match(s, m, std::regex("ab{3,5}c")));
291 assert(std::regex_match(s, m, std::regex("ab{3,5}c")));
306 assert(!std::regex_match(s, m, std::regex("ab{3,5}c")));
312 assert(!std::regex_match(s, m, std::regex("ab{3,5}c")));
318 assert(!std::regex_match(s, m, std::regex("a.{3,5}c")));
324 assert(std::regex_match(s, m, std::regex("a.{3,5}c")));
339 assert(std::regex_match(s, m, std::regex("a.{3,5}c")));
354 assert(std::regex_match(s, m, std::regex("a.{3,5}c")));
369 assert(!std::regex_match(s, m, std::regex("a.{3,5}c")));
376 assert(std::regex_match(s, m, std::regex("tour|to|tournament")));
393 std::regex_match(s, m, std::regex("(tour|to|tournament)+",
409 assert(std::regex_match(s, m, std::regex("(tour|to|t)+")));
427 assert(!std::regex_match(s, m, std::regex("-(.*),\1-")));
433 assert(std::regex_match(s, m, std::regex("-.*,.*-")));
448 assert(std::regex_match(s, m, std::regex("^[a]$")));
463 assert(std::regex_match(s, m, std::regex("^[ab]$")));
478 assert(std::regex_match(s, m, std::regex("^[a-f]$")));
493 assert(!std::regex_match(s, m, std::regex("^[a-f]$")));
499 assert(!std::regex_match(s, m, std::regex("q[^u]")));
505 assert(!std::regex_match(s, m, std::regex("q[^u]")));
511 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B")));
526 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B")));
532 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B")));
547 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B")));
553 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B")));
559 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B")));
574 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]")));
589 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]")));
604 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]")));
611 assert(std::regex_match(s, m, std::regex("[a[=M=]z]")));
626 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]",
642 assert(std::regex_match(s, m, std::regex("[^\\0]*")));
648 assert(std::regex_match(s, s+7, m, std::regex("[abfor\\0]*")));
655 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]")));
661 assert(!std::regex_match(s, m, std::regex("[ace1-9]*")));
667 assert(!std::regex_match(s, m, std::regex("[ace1-9]+")));
675 std::regex regex(FI(r), FI(r+sr));
679 assert(std::regex_match(BI(s), BI(s+ss), m, regex));
694 assert(!std::regex_match(s, m, std::regex("Jeff(?=s\\b)")));
700 assert(!std::regex_match(s, m, std::regex("Jeff(?!s\\b)")));
706 assert(std::regex_match(s, m, std::regex("\\d[\\W]k")));
1349 std::wregex regex(FI(r), FI(r+sr));
1353 assert(std::regex_match(BI(s), BI(s+ss), m, regex));