Home
last modified time | relevance | path

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

12

/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()
Dexponential.pass.cpp31 std::regex_match( in main()
45 assert(std::regex_match(s, std::regex("a*", op))); in main()
Dgrep.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()
Dbasic.fail.cpp34 std::regex_match(std::string("abcde"), m, re); 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_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_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_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()
/external/tensorflow/tensorflow/lite/tools/evaluation/
Devaluation_stage.cc52 if (!std::regex_match(tag_name_mapping, kTagNameMappingPattern)) { in ProcessExpectedTags()
63 if (!std::regex_match(std::string(tag), kTagPattern)) { in ProcessExpectedTags()
/external/swiftshader/third_party/subzero/src/
DIceCompiler.cpp55 std::regex_match(Filename, std::regex(".*\\.ll")); in llvmIRInput()
60 std::regex_match(Filename, std::regex(".*\\.wasm")); in wasmInput()
/external/selinux/libselinux/src/
Dregex.h141 int regex_match(struct regex_data *regex, char const *subject,
Dregex.c213 int regex_match(struct regex_data *regex, char const *subject, int partial) in regex_match() function
452 int regex_match(struct regex_data *regex, char const *subject, int partial) in regex_match() function
/external/libkmsxx/utils/
Dkmstest.cpp130 if (regex_match(crtc_str, sm, modename_re)) { in parse_crtc()
179 } else if (regex_match(crtc_str, sm, modeline_re)) { in parse_crtc()
249 if (!regex_match(plane_str, sm, plane_re)) in parse_plane()
342 if (!regex_match(fb_str, sm, fb_re)) in parse_fb()
369 if (!regex_match(view_str, sm, view_re)) in parse_view()
/external/libcxx/test/std/re/re.alg/re.alg.search/
Dgrep.pass.cpp36 TEST_IGNORE_NODISCARD std::regex_match(s, re); in LLVMFuzzerTestOneInput() member in LLVMFuzzerTestOneInput::std
/external/catch2/include/internal/
Dcatch_matchers_string.cpp90 return std::regex_match(matchee, reg); in match()
/external/libcxx/include/
Dregex532 regex_match(BidirectionalIterator first, BidirectionalIterator last,
539 regex_match(BidirectionalIterator first, BidirectionalIterator last,
545 regex_match(const charT* str, match_results<const charT*, Allocator>& m,
551 regex_match(const basic_string<charT, ST, SA>& s,
558 regex_match(const basic_string<charT, ST, SA>&& s,
565 regex_match(const charT* str, const basic_regex<charT, traits>& e,
570 regex_match(const basic_string<charT, ST, SA>& s,
5377 regex_match(_Bp, _Bp, match_results<_Bp, _Ap>&, const basic_regex<_Cp, _Tp>&,
6024 // regex_match
6028 regex_match(_BidirectionalIterator __first, _BidirectionalIterator __last,
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Dproto_gen_utils.cc239 if (std::regex_match(field.type_and_name, std::regex(R"(char \w+\[\d+\])"))) in InferProtoType()
/external/flatbuffers/tests/fuzzer/
Dflatbuffers_scalar_fuzzer.cc92 if (std::regex_match(str, match, re)) return true; in MatchRegexList()

12