Lines Matching refs:regex
15 // <regex>
27 #include <regex>
38 assert(!std::regex_match("a", m, std::regex()));
45 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic)));
61 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic)));
76 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic)));
83 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic)));
89 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic),
96 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic)));
102 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic)));
117 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic)));
135 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi",
142 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic)));
157 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic)));
163 assert(!std::regex_match(s, m, std::regex("^abc", std::regex_constants::basic)));
169 assert(std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic)));
184 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic)));
190 assert(!std::regex_match(s, m, std::regex("abc$", std::regex_constants::basic)));
196 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic)));
211 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic)));
226 assert(std::regex_match(s, m, std::regex("a.c", std::regex_constants::basic)));
241 assert(std::regex_match(s, m, std::regex("\\(.*\\).*", std::regex_constants::basic)));
259 assert(!std::regex_match(s, m, std::regex("\\(a*\\)*", std::regex_constants::basic)));
265 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic)));
271 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic)));
286 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic)));
301 assert(std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic)));
316 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic)));
322 assert(!std::regex_match(s, m, std::regex("ab\\{3,5\\}c", std::regex_constants::basic)));
328 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic)));
334 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic)));
349 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic)));
364 assert(std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic)));
379 assert(!std::regex_match(s, m, std::regex("a.\\{3,5\\}c", std::regex_constants::basic)));
385 assert(std::regex_match(s, m, std::regex("-\\(.*\\),\\1-", std::regex_constants::basic)));
403 assert(std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic)));
421 assert(!std::regex_match(s, m, std::regex("^\\(ab*\\)*\\1$", std::regex_constants::basic)));
427 assert(std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$",
446 assert(!std::regex_match(s, m, std::regex("^\\(Ab*\\)*\\1$",
453 assert(std::regex_match(s, m, std::regex("^[a]$",
469 assert(std::regex_match(s, m, std::regex("^[ab]$",
485 assert(std::regex_match(s, m, std::regex("^[a-f]$",
501 assert(!std::regex_match(s, m, std::regex("^[a-f]$",
508 assert(!std::regex_match(s, m, std::regex("q[^u]",
515 assert(!std::regex_match(s, m, std::regex("q[^u]",
522 assert(std::regex_match(s, m, std::regex("A[[:lower:]]B",
538 assert(!std::regex_match(s, m, std::regex("A[[:lower:]]B",
545 assert(std::regex_match(s, m, std::regex("A[^[:lower:]]B",
561 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]]B",
568 assert(!std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B",
575 assert(std::regex_match(s, m, std::regex("A[^[:lower:]0-9]B",
591 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]",
607 assert(std::regex_match(s, m, std::regex("[a[.hyphen.]z]",
623 assert(!std::regex_match(s, m, std::regex("[a[.hyphen.]z]",
631 assert(std::regex_match(s, m, std::regex("[a[=M=]z]",
647 assert(std::regex_match(s, m, std::regex("[a[.ch.]z]",
664 assert(!std::regex_match(s, m, std::regex("[a[=M=]z]",
671 assert(!std::regex_match(s, m, std::regex("[ace1-9]*",
678 assert(!std::regex_match(s, m, std::regex("[ace1-9]\\{1,\\}",
687 std::regex regex(FI(r), FI(r+sr), std::regex_constants::basic);
691 assert(std::regex_match(BI(s), BI(s+ss), m, regex));
1355 std::wregex regex(FI(r), FI(r+sr), std::regex_constants::basic);
1359 assert(std::regex_match(BI(s), BI(s+ss), m, regex));