Home
last modified time | relevance | path

Searched refs:regex_search (Results 1 – 25 of 47) sorted by relevance

12

/external/libcxx/test/std/re/re.alg/re.alg.search/
Decma.pass.cpp39 assert(std::regex_search(s, m, std::regex("a"))); in main()
55 assert(std::regex_search(s, m, std::regex("ab"))); in main()
70 assert(!std::regex_search(s, m, std::regex("ba"))); in main()
77 assert(std::regex_search(s, m, std::regex("ab"))); in main()
92 assert(!std::regex_search(s, m, std::regex("ab"), in main()
99 assert(std::regex_search(s, m, std::regex("bc"))); in main()
114 assert(std::regex_search(s, m, std::regex("ab*c"))); in main()
129 assert(std::regex_search(s, m, std::regex("(ab)*c"))); in main()
147 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
168 assert(std::regex_search(s, m, std::regex("^abc"))); in main()
[all …]
Dawk.pass.cpp39 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::awk))); in main()
55 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::awk))); in main()
70 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::awk))); in main()
77 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::awk))); in main()
92 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::awk), in main()
99 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::awk))); in main()
114 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
129 assert(std::regex_search(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
147 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi", in main()
169 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
[all …]
Dbasic.pass.cpp38 assert(!std::regex_search("a", m, std::regex())); in main()
45 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::basic))); in main()
61 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::basic))); in main()
76 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::basic))); in main()
83 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::basic))); in main()
98 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::basic), in main()
105 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::basic))); in main()
120 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
135 assert(std::regex_search(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
153 assert(std::regex_search(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
[all …]
Dextended.pass.cpp39 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::extended))); in main()
55 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::extended))); in main()
70 assert(!std::regex_search(s, m, std::regex("ba", std::regex_constants::extended))); in main()
77 assert(std::regex_search(s, m, std::regex("ab", std::regex_constants::extended))); in main()
92 assert(!std::regex_search(s, m, std::regex("ab", std::regex_constants::extended), in main()
99 assert(std::regex_search(s, m, std::regex("bc", std::regex_constants::extended))); in main()
114 assert(std::regex_search(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
129 assert(std::regex_search(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
147 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi", in main()
169 assert(std::regex_search(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
[all …]
Degrep.pass.cpp30 assert(std::regex_search(s, m, std::regex("tour\nto\ntournament", in main()
46 assert(std::regex_search(s, m, std::regex("tour\n\ntournament", in main()
62 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+\ntourna", in main()
78 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+\ntourna", in main()
Dinvert_neg_word_search.pass.cpp26 assert(std::regex_search("HelloWorld", std::regex("[^\\W]"))); in main()
27 assert(std::regex_search("_", std::regex("[^\\W]"))); in main()
Dlookahead.pass.cpp27 assert(!std::regex_search("ab", std::regex("(?=^)b"))); in main()
28 assert(!std::regex_search("ab", std::regex("a(?=^)b"))); in main()
Dexponential.pass.cpp31 std::regex_search( in main()
45 assert(std::regex_search(s, std::regex("a*", op))); in main()
Dgrep.pass.cpp59 assert(std::regex_search(s, m, std::regex("tour\nto\ntournament", in main()
75 assert(std::regex_search(s, m, std::regex("tour\n\ntournament", in main()
Dbasic.fail.cpp34 std::regex_search(std::string("abcde"), m, re); in main()
/external/libcxx/test/std/re/re.results/re.results.form/
Dform1.pass.cpp30 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
42 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi", in main()
55 assert(std::regex_search(s, m, std::regex("cdefghi"))); in main()
67 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
80 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
93 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi", in main()
107 assert(std::regex_search(s, m, std::regex("cdefghi"))); in main()
121 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
133 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
146 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
Dform4.pass.cpp29 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
38 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
47 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
57 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
66 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
75 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
Dform3.pass.cpp34 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
43 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
52 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
62 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
71 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
80 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
Dform2.pass.cpp35 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
46 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
58 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in main()
71 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
82 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
94 assert(std::regex_search(s, m, std::wregex(L"cd((e)fg)hi"))); in main()
/external/libcxx/test/std/re/re.const/re.matchflag/
Dmatch_not_eol.pass.cpp41 assert( std::regex_search(target, re)); in main()
42 assert(!std::regex_search(target, re, std::regex_constants::match_not_eol)); in main()
48 assert( std::regex_search(target, re)); in main()
49 assert( std::regex_search(target, re, std::regex_constants::match_not_eol)); in main()
Dmatch_not_bol.pass.cpp41 assert( std::regex_search(target, re)); in main()
42 assert(!std::regex_search(target, re, std::regex_constants::match_not_bol)); in main()
48 assert( std::regex_search(target, re)); in main()
49 assert( std::regex_search(target, re, std::regex_constants::match_not_bol)); in main()
Dmatch_not_null.pass.cpp24 assert(!std::regex_search("a", m, std::regex("b*"), in main()
26 assert(std::regex_search("aa", m, std::regex("a*?"), in main()
29 assert(!std::regex_search("a", m, std::regex("b*", std::regex::extended), in main()
31 assert(!std::regex_search( in main()
/external/libcxx/test/std/re/re.results/re.results.state/
Dready.pass.cpp26 std::regex_search(s, m, std::regex("cd((e)fg)hi")); in test1()
36 std::regex_search(s, m, std::regex("z")); in test2()
/external/libcxx/test/std/re/re.regex/re.regex.assign/
Dassign.pass.cpp27 assert(std::regex_search("ab", r2)); in main()
36 assert(std::regex_search("ab", r2)); in main()
/external/bcc/src/cc/usdt/
Dusdt_args.cc247 matched = std::regex_search(arg_str, matches, arg_n_regex); in parse()
253 if (std::regex_search(arg_str, matches, arg_op_regex_const)) { in parse()
255 } else if (std::regex_search(arg_str, matches, arg_op_regex_reg)) { in parse()
257 } else if (std::regex_search(arg_str, matches, arg_op_regex_breg_off)) { in parse()
260 } else if (std::regex_search(arg_str, matches, arg_op_regex_breg_ireg)) { in parse()
/external/libcxx/utils/google-benchmark/cmake/
Dstd_regex.cpp8 return std::regex_search(str, re) ? 0 : -1; in main()
/external/google-benchmark/cmake/
Dstd_regex.cpp8 return std::regex_search(str, re) ? 0 : -1; in main()
/external/libcxx/test/std/re/re.results/re.results.acc/
Dprefix.pass.cpp25 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in test()
/external/libcxx/test/std/re/re.results/re.results.size/
Dempty.pass.cpp29 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); in test()
/external/libcxx/test/std/re/re.results/re.results.nonmember/
Dequal.pass.cpp33 assert(std::regex_search(s, m1, std::regex("cd((e)fg)hi"))); in test()

12