Home
last modified time | relevance | path

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

/external/libcxx/test/std/re/re.alg/re.alg.match/
Decma.pass.cpp34 assert(std::regex_match(s, m, std::regex("a"))); in main()
50 assert(std::regex_match(s, m, std::regex("ab"))); in main()
65 assert(!std::regex_match(s, m, std::regex("ba"))); in main()
72 assert(!std::regex_match(s, m, std::regex("ab"))); in main()
78 assert(!std::regex_match(s, m, std::regex("ab"), in main()
85 assert(!std::regex_match(s, m, std::regex("bc"))); in main()
91 assert(std::regex_match(s, m, std::regex("ab*c"))); in main()
106 assert(std::regex_match(s, m, std::regex("(ab)*c"))); in main()
124 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi"))); in main()
130 assert(std::regex_match(s, m, std::regex("^abc"))); in main()
[all …]
Dbasic.pass.cpp33 assert(!std::regex_match("a", m, std::regex())); in main()
40 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
56 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
71 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
78 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
84 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
91 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
97 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
112 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
130 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
[all …]
Dextended.pass.cpp34 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
50 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
65 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::extended))); in main()
72 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
78 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
85 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
91 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
106 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
124 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
131 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()
Dgrep.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()
Dbasic.fail.cpp33 std::regex_match(std::string("abcde"), m, re); in main()
/external/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("\1411", std::regex("\\1411", awk))); in main()
/external/lldb/source/Interpreter/
DCommandObjectRegexCommand.cpp63 RegularExpression::Match regex_match(m_max_matches); in DoExecute() local
65 if (pos->regex.Execute (command, &regex_match)) in DoExecute()
73 if (regex_match.GetMatchAtIndex (command, match_idx, match_str)) in DoExecute()
DArgs.cpp858 RegularExpression::Match regex_match(3); in StringToAddress() local
859 if (g_symbol_plus_offset_regex.Execute(s, &regex_match)) in StringToAddress()
865 if (regex_match.GetMatchAtIndex(s, 1, name)) in StringToAddress()
867 if (regex_match.GetMatchAtIndex(s, 2, str)) in StringToAddress()
871 if (regex_match.GetMatchAtIndex(s, 3, str)) in StringToAddress()
/external/lldb/source/Target/
DThreadPlanStepInRange.cpp297 RegularExpression::Match regex_match(num_matches); in FrameMatchesAvoidRegexp() local
299 bool return_value = avoid_regexp_to_use->Execute(frame_function_name, &regex_match); in FrameMatchesAvoidRegexp()
305 regex_match.GetMatchAtIndex(frame_function_name,0, match); in FrameMatchesAvoidRegexp()
/external/lldb/source/Core/
DDisassembler.cpp696 RegularExpression::Match regex_match(1); in ReadArray() local
697 bool reg_exp_success = g_reg_exp.Execute (line.c_str(), &regex_match); in ReadArray()
699 regex_match.GetMatchAtIndex (line.c_str(), 1, value); in ReadArray()
765 RegularExpression::Match regex_match(2); in ReadDictionary() local
767 bool reg_exp_success = g_reg_exp.Execute (line.c_str(), &regex_match); in ReadDictionary()
772 regex_match.GetMatchAtIndex (line.c_str(), 1, key); in ReadDictionary()
773 regex_match.GetMatchAtIndex (line.c_str(), 2, value); in ReadDictionary()
DConnectionFileDescriptor.cpp58 RegularExpression::Match regex_match(2); in DecodeHostAndPort() local
59 if (g_regex.Execute (host_and_port, &regex_match)) in DecodeHostAndPort()
61 if (regex_match.GetMatchAtIndex (host_and_port, 1, host_str) && in DecodeHostAndPort()
62 regex_match.GetMatchAtIndex (host_and_port, 2, port_str)) in DecodeHostAndPort()
/external/toybox/toys/pending/
Dpgrep.c52 static int regex_match(regex_t *rp, char *tar, char *patt) in regex_match() function
147 if (!*toys.optargs || (regex_match(&rp, cmdline, *toys.optargs)^flag_chk(FLAG_v))) { in pgrep_main()
/external/lldb/source/Symbol/
DObjectFile.cpp575 RegularExpression::Match regex_match(2); in SplitArchivePathWithObject() local
576 if (g_object_regex.Execute (path_with_object, &regex_match)) in SplitArchivePathWithObject()
580 if (regex_match.GetMatchAtIndex (path_with_object, 1, path) && in SplitArchivePathWithObject()
581 regex_match.GetMatchAtIndex (path_with_object, 2, obj)) in SplitArchivePathWithObject()
DVariable.cpp400 RegularExpression::Match regex_match(1); in GetValuesForVariableExpressionPath() local
401 if (g_regex.Execute(variable_expr_path, &regex_match)) in GetValuesForVariableExpressionPath()
404 if (regex_match.GetMatchAtIndex(variable_expr_path, 1, variable_name)) in GetValuesForVariableExpressionPath()
/external/lldb/source/Plugins/SymbolFile/DWARF/
DDWARFCompileUnit.cpp974 RegularExpression::Match regex_match(3); in ParseProducerInfo() local
975 if (g_clang_version_regex.Execute (producer_cstr, &regex_match)) in ParseProducerInfo()
978 if (regex_match.GetMatchAtIndex (producer_cstr, 1, str)) in ParseProducerInfo()
980 if (regex_match.GetMatchAtIndex (producer_cstr, 2, str)) in ParseProducerInfo()
982 if (regex_match.GetMatchAtIndex (producer_cstr, 3, str)) in ParseProducerInfo()
/external/libcxx/include/
Dregex525 regex_match(BidirectionalIterator first, BidirectionalIterator last,
532 regex_match(BidirectionalIterator first, BidirectionalIterator last,
538 regex_match(const charT* str, match_results<const charT*, Allocator>& m,
544 regex_match(const basic_string<charT, ST, SA>& s,
551 regex_match(const basic_string<charT, ST, SA>&& s,
558 regex_match(const charT* str, const basic_regex<charT, traits>& e,
563 regex_match(const basic_string<charT, ST, SA>& s,
5414 regex_match(_Bp, _Bp, match_results<_Bp, _Ap>&, const basic_regex<_Cp, _Tp>&,
6011 // regex_match
6015 regex_match(_BidirectionalIterator __first, _BidirectionalIterator __last,
[all …]