Home
last modified time | relevance | path

Searched refs:regex_match (Results 1 – 25 of 66) sorted by relevance

123

/external/llvm-project/libcxx/test/std/re/re.alg/re.alg.match/
Dinverted_character_classes.pass.cpp21 assert(std::regex_match("X", std::regex("[X]"))); in main()
22 assert(std::regex_match("X", std::regex("[XY]"))); in main()
23 assert(!std::regex_match("X", std::regex("[^X]"))); in main()
24 assert(!std::regex_match("X", std::regex("[^XY]"))); in main()
26 assert(std::regex_match("X", std::regex("[\\S]"))); in main()
27 assert(!std::regex_match("X", std::regex("[^\\S]"))); in main()
29 assert(!std::regex_match("X", std::regex("[\\s]"))); in main()
30 assert(std::regex_match("X", std::regex("[^\\s]"))); in main()
32 assert(std::regex_match("X", std::regex("[\\s\\S]"))); in main()
33 assert(std::regex_match("X", std::regex("[^Y\\s]"))); in main()
[all …]
Decma.pass.cpp38 assert(std::regex_match(s, m, std::regex("a"))); in main()
54 assert(std::regex_match(s, m, std::regex("ab"))); in main()
69 assert(!std::regex_match(s, m, std::regex("ba"))); in main()
76 assert(!std::regex_match(s, m, std::regex("ab"))); in main()
82 assert(!std::regex_match(s, m, std::regex("ab"), in main()
89 assert(!std::regex_match(s, m, std::regex("bc"))); in main()
95 assert(std::regex_match(s, m, std::regex("ab*c"))); in main()
110 assert(std::regex_match(s, m, std::regex("(ab)*c"))); in main()
128 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi"))); in main()
134 assert(std::regex_match(s, m, std::regex("^abc"))); in main()
[all …]
Dbasic.pass.cpp37 assert(!std::regex_match("a", m, std::regex())); in main()
44 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
60 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
75 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
82 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
88 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
95 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
101 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
116 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
134 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
[all …]
Dawk.pass.cpp36 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
52 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
67 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk))); in main()
74 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
80 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk), in main()
87 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk))); in main()
93 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
108 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
126 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
133 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
[all …]
Dextended.pass.cpp38 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
54 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
69 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::extended))); in main()
76 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
82 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
89 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
95 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
110 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
128 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
135 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
[all …]
Dlookahead_capture.pass.cpp35 assert(std::regex_match(s, m, re)); in main()
47 assert(std::regex_match(s, m, re)); in main()
61 assert(std::regex_match(s, m, re)); in main()
76 assert(std::regex_match(s, m, re)); in main()
90 assert(std::regex_match(s, m, re)); in main()
Dparse_curly_brackets.pass.cpp32 assert((std::regex_match(target, smatch, regex))); in test1()
42 assert((std::regex_match(target, smatch, regex))); in test2()
52 assert((std::regex_match(target, smatch, regex))); in test3()
62 assert((std::regex_match(target, smatch, regex))); in test4()
Degrep.pass.cpp29 assert(std::regex_match(s, m, std::regex("tour\nto\ntournament", in main()
45 assert(!std::regex_match(s, m, std::regex("tour\n\ntournament", in main()
52 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+\ntourna", in main()
68 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+\ntourna", in main()
/external/libcxx/test/std/re/re.alg/re.alg.match/
Dinverted_character_classes.pass.cpp20 assert(std::regex_match("X", std::regex("[X]"))); in main()
21 assert(std::regex_match("X", std::regex("[XY]"))); in main()
22 assert(!std::regex_match("X", std::regex("[^X]"))); in main()
23 assert(!std::regex_match("X", std::regex("[^XY]"))); in main()
25 assert(std::regex_match("X", std::regex("[\\S]"))); in main()
26 assert(!std::regex_match("X", std::regex("[^\\S]"))); in main()
28 assert(!std::regex_match("X", std::regex("[\\s]"))); in main()
29 assert(std::regex_match("X", std::regex("[^\\s]"))); in main()
31 assert(std::regex_match("X", std::regex("[\\s\\S]"))); in main()
32 assert(std::regex_match("X", std::regex("[^Y\\s]"))); in main()
[all …]
Decma.pass.cpp39 assert(std::regex_match(s, m, std::regex("a"))); in main()
55 assert(std::regex_match(s, m, std::regex("ab"))); in main()
70 assert(!std::regex_match(s, m, std::regex("ba"))); in main()
77 assert(!std::regex_match(s, m, std::regex("ab"))); in main()
83 assert(!std::regex_match(s, m, std::regex("ab"), in main()
90 assert(!std::regex_match(s, m, std::regex("bc"))); in main()
96 assert(std::regex_match(s, m, std::regex("ab*c"))); in main()
111 assert(std::regex_match(s, m, std::regex("(ab)*c"))); in main()
129 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi"))); in main()
135 assert(std::regex_match(s, m, std::regex("^abc"))); in main()
[all …]
Dbasic.pass.cpp38 assert(!std::regex_match("a", m, std::regex())); in main()
45 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
61 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
76 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
83 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
89 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
96 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
102 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
117 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
135 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
[all …]
Dawk.pass.cpp33 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
49 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
64 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk))); in main()
71 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); in main()
77 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk), in main()
84 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk))); in main()
90 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk))); in main()
105 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::awk))); in main()
123 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
130 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::awk))); in main()
[all …]
Dextended.pass.cpp39 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
55 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
70 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::extended))); in main()
77 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
83 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
90 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
96 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
111 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
129 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
136 assert(std::regex_match(s, m, std::regex("^abc", std::regex_constants::extended))); in main()
[all …]
Dlookahead_capture.pass.cpp36 assert(std::regex_match(s, m, re)); in main()
48 assert(std::regex_match(s, m, re)); in main()
62 assert(std::regex_match(s, m, re)); in main()
77 assert(std::regex_match(s, m, re)); in main()
91 assert(std::regex_match(s, m, re)); in main()
Dparse_curly_brackets.pass.cpp33 assert((std::regex_match(target, smatch, regex))); in test1()
43 assert((std::regex_match(target, smatch, regex))); in test2()
53 assert((std::regex_match(target, smatch, regex))); in test3()
63 assert((std::regex_match(target, smatch, regex))); in test4()
Degrep.pass.cpp30 assert(std::regex_match(s, m, std::regex("tour\nto\ntournament", in main()
46 assert(!std::regex_match(s, m, std::regex("tour\n\ntournament", in main()
53 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+\ntourna", in main()
69 assert(std::regex_match(s, m, std::regex("(tour|to|tournament)+\ntourna", in main()
/external/llvm-project/libcxx/test/std/re/re.const/re.matchflag/
Dmatch_prev_avail.pass.cpp24 assert(regex_match(str1 + 1, str1 + 2, regex("^a"), in main()
28 assert(regex_match(str1_scnd, regex("a"), in main()
34 assert(regex_match(str1 + 1, str1 + 2, regex("\\ba\\b"), in main()
42 assert(regex_match(str1 + 1, str1 + 2, regex("^a"), in main()
46 assert(regex_match(str1_scnd, regex("\\ba"), in main()
77 assert(regex_match(Start, End, regex("\\bcd\\b"), in main()
Dmatch_not_eol.pass.cpp26 assert( std::regex_match(target, re)); in main()
27 assert(!std::regex_match(target, re, std::regex_constants::match_not_eol)); in main()
33 assert( std::regex_match(target, re)); in main()
34 assert( std::regex_match(target, re, std::regex_constants::match_not_eol)); in main()
Dmatch_not_bol.pass.cpp26 assert( std::regex_match(target, re)); in main()
27 assert(!std::regex_match(target, re, std::regex_constants::match_not_bol)); in main()
33 assert( std::regex_match(target, re)); in main()
34 assert( std::regex_match(target, re, std::regex_constants::match_not_bol)); in main()
Dmatch_not_null.pass.cpp35 assert(!std::regex_match("", m, std::regex("a*"), in main()
37 assert(!std::regex_match("", m, std::regex("a*", std::regex::extended), in main()
39 assert(!std::regex_match( in main()
/external/llvm-project/libcxx/test/std/re/re.regex/re.regex.construct/
Dawk_oct.pass.cpp24 assert(std::regex_match("\4", std::regex("\\4", awk))); in main()
25 assert(std::regex_match("\41", std::regex("\\41", awk))); in main()
26 assert(std::regex_match("\141", std::regex("\\141", awk))); in main()
27 assert(std::regex_match("\141" "1", std::regex("\\1411", awk))); in main()
/external/libcxx/test/std/re/re.regex/re.regex.construct/
Dawk_oct.pass.cpp25 assert(std::regex_match("\4", std::regex("\\4", awk))); in main()
26 assert(std::regex_match("\41", std::regex("\\41", awk))); in main()
27 assert(std::regex_match("\141", std::regex("\\141", awk))); in main()
28 assert(std::regex_match("\141" "1", std::regex("\\1411", awk))); in main()
/external/libcxx/test/std/re/re.const/re.matchflag/
Dmatch_not_eol.pass.cpp27 assert( std::regex_match(target, re)); in main()
28 assert(!std::regex_match(target, re, std::regex_constants::match_not_eol)); in main()
34 assert( std::regex_match(target, re)); in main()
35 assert( std::regex_match(target, re, std::regex_constants::match_not_eol)); in main()
Dmatch_not_bol.pass.cpp27 assert( std::regex_match(target, re)); in main()
28 assert(!std::regex_match(target, re, std::regex_constants::match_not_bol)); in main()
34 assert( std::regex_match(target, re)); in main()
35 assert( std::regex_match(target, re, std::regex_constants::match_not_bol)); in main()
Dmatch_not_null.pass.cpp36 assert(!std::regex_match("", m, std::regex("a*"), in main()
38 assert(!std::regex_match("", m, std::regex("a*", std::regex::extended), in main()
40 assert(!std::regex_match( in main()

123