Home
last modified time | relevance | path

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

/external/libcxx/test/std/re/re.alg/re.alg.match/
Decma.pass.cpp35 assert(std::regex_match(s, m, std::regex("a"))); in main()
51 assert(std::regex_match(s, m, std::regex("ab"))); in main()
66 assert(!std::regex_match(s, m, std::regex("ba"))); in main()
73 assert(!std::regex_match(s, m, std::regex("ab"))); in main()
79 assert(!std::regex_match(s, m, std::regex("ab"), in main()
86 assert(!std::regex_match(s, m, std::regex("bc"))); in main()
92 assert(std::regex_match(s, m, std::regex("ab*c"))); in main()
107 assert(std::regex_match(s, m, std::regex("(ab)*c"))); in main()
125 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi"))); in main()
131 assert(std::regex_match(s, m, std::regex("^abc"))); in main()
[all …]
Dbasic.pass.cpp34 assert(!std::regex_match("a", m, std::regex())); in main()
41 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
57 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
72 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::basic))); in main()
79 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic))); in main()
85 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::basic), in main()
92 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::basic))); in main()
98 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::basic))); in main()
113 assert(std::regex_match(s, m, std::regex("\\(ab\\)*c", std::regex_constants::basic))); in main()
131 assert(!std::regex_match(s, m, std::regex("cd\\(\\(e\\)fg\\)hi", in main()
[all …]
Dextended.pass.cpp35 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
51 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
66 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::extended))); in main()
73 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended))); in main()
79 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::extended), in main()
86 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::extended))); in main()
92 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::extended))); in main()
107 assert(std::regex_match(s, m, std::regex("(ab)*c", std::regex_constants::extended))); in main()
125 assert(!std::regex_match(s, m, std::regex("cd((e)fg)hi", in main()
132 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/libcxx/test/std/re/re.const/re.matchflag/
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()
/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/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,
5328 regex_match(_Bp, _Bp, match_results<_Bp, _Ap>&, const basic_regex<_Cp, _Tp>&,
5919 // regex_match
5923 regex_match(_BidirectionalIterator __first, _BidirectionalIterator __last,
[all …]