Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 87) sorted by relevance

1234

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.match/
Dlookahead_capture.pass.cpp30 std::regex re{"^(?=(.))a$"}; in main() local
31 assert(re.mark_count() == 1); in main()
35 assert(std::regex_match(s, m, re)); in main()
42 std::regex re{"^(a)(?=(.))(b)$"}; in main() local
43 assert(re.mark_count() == 3); in main()
47 assert(std::regex_match(s, m, re)); in main()
56 std::regex re{"^(.)(?=(.)(?=.(.)))(...)$"}; in main() local
57 assert(re.mark_count() == 4); in main()
61 assert(std::regex_match(s, m, re)); in main()
71 std::regex re{"^(a)(?!([^b]))(.c)$"}; in main() local
[all …]
Dparse_curly_brackets.pass.cpp28 std::string re{"\\{a\\}"}; in test1() local
30 std::regex regex{re}; in test1()
38 std::string re{"\\{a\\}"}; in test2() local
40 std::regex regex{re, std::regex::extended}; in test2()
48 std::string re{"\\{a\\}"}; in test3() local
50 std::regex regex{re, std::regex::awk}; in test3()
58 std::string re{"\\{a\\}"}; in test4() local
60 std::regex regex{re, std::regex::egrep}; in test4()
Dbasic.fail.cpp34 std::regex re{"*"}; in main() local
35 std::regex_match(std::string("abcde"), m, re); in main()
/ndk/sources/third_party/googletest/googletest/test/
Dgtest_output_test.py44 import re
101 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output)
108 return re.sub(r'Stack trace:(.|\n)*?\n\n',
116 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output)
122 return re.sub(r'\(\d+ ms', '(? ms', output)
136 return re.sub(r'unsigned int', 'unsigned', test_output)
144 test_output = re.sub('\x1b\\[(0;3\d)?m', '', test_output)
146 test_output = re.sub(r': Failure\n', r': error: ', test_output)
148 test_output = re.sub(r'((\w|\.)+)\((\d+)\):', r'\1:\3:', test_output)
156 output = re.sub(r'\d+ tests?, listed below',
[all …]
Dgtest_help_test.py43 import re
56 INCORRECT_FLAG_VARIANTS = [re.sub('^--', '-', LIST_TESTS_FLAG),
57 re.sub('^--', '/', LIST_TESTS_FLAG),
58 re.sub('_', '-', LIST_TESTS_FLAG)]
65 HELP_REGEX = re.compile(
78 re.DOTALL)
Dgtest_xml_test_utils.py36 import re
170 timestamp.value = re.sub(r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$',
174 time.value = re.sub(r'^\d+(\.\d+)?$', '*', time.value)
182 message.value = re.sub(source_line_pat, '\\1*\n', message.value)
186 cdata = re.sub(source_line_pat, '\\1*\n', child.nodeValue)
188 child.nodeValue = re.sub(r'\nStack trace:\n(.|\n)*',
Dgtest_list_tests_unittest.py43 import re
56 EXPECTED_OUTPUT_NO_FILTER_RE = re.compile(r"""FooDeathTest\.
100 EXPECTED_OUTPUT_FILTER_FOO_RE = re.compile(r"""FooDeathTest\.
Dgtest-port_test.cc446 const RE re(TypeParam("a.*z")); in TYPED_TEST() local
447 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re)); in TYPED_TEST()
448 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re)); in TYPED_TEST()
449 EXPECT_FALSE(RE::FullMatch(TypeParam("baz"), re)); in TYPED_TEST()
450 EXPECT_FALSE(RE::FullMatch(TypeParam("azy"), re)); in TYPED_TEST()
459 const RE re(TypeParam("a.*z")); in TYPED_TEST() local
460 EXPECT_TRUE(RE::PartialMatch(TypeParam("az"), re)); in TYPED_TEST()
461 EXPECT_TRUE(RE::PartialMatch(TypeParam("axyz"), re)); in TYPED_TEST()
462 EXPECT_TRUE(RE::PartialMatch(TypeParam("baz"), re)); in TYPED_TEST()
463 EXPECT_TRUE(RE::PartialMatch(TypeParam("azy"), re)); in TYPED_TEST()
[all …]
Dgtest_xml_output_unittest.py39 import re
176 match = re.match(r'(\d+)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)', date_time_str)
178 re.match,
Dgtest_filter_unittest.py46 import re
103 PARAM_TEST_REGEX = re.compile(r'/ParamTest')
106 TEST_CASE_REGEX = re.compile(r'^\[\-+\] \d+ tests? from (\w+(/\w+)?)')
109 TEST_REGEX = re.compile(r'^\[\s*RUN\s*\].*\.(\w+(/\w+)?)')
/ndk/sources/cxx-stl/llvm-libc++/patches.android/
D0013-temp-collective-ndk-hackathon-fixes.patch28 test/re/re.alg/re.alg.match/basic.pass.cpp | 14 ++++++++
29 test/re/re.alg/re.alg.match/ecma.pass.cpp | 14 ++++++++
30 test/re/re.alg/re.alg.match/extended.pass.cpp | 14 ++++++++
31 test/re/re.alg/re.alg.search/awk.pass.cpp | 14 ++++++++
32 test/re/re.alg/re.alg.search/basic.pass.cpp | 14 ++++++++
33 test/re/re.alg/re.alg.search/ecma.pass.cpp | 14 ++++++++
34 test/re/re.alg/re.alg.search/extended.pass.cpp | 14 ++++++++
35 test/re/re.traits/lookup_collatename.pass.cpp | 6 ----
36 .../re.traits/lookup_collatename.xlocale.pass.cpp | 41 ++++++++++++++++++++++
37 test/re/re.traits/transform.pass.cpp | 14 ++++++++
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.search/
Dbackup.pass.cpp30 std::regex re{"\\ba"}; in main() local
31 std::sregex_iterator it{s.begin(), s.end(), re}; in main()
49 std::regex re{"\\ba"}; in main() local
50 std::regex_iterator<std::list<char>::iterator> it{l.begin(), l.end(), re}; in main()
Dbasic.fail.cpp34 std::regex re{"*"}; in main() local
35 std::regex_search(std::string("abcde"), m, re); in main()
Dno_update_pos.pass.cpp28 std::regex re{"^a"}; in main() local
29 std::cregex_iterator it{text, text+6, re}; in main()
/ndk/sources/third_party/googletest/googletest/src/
Dgtest-port.cc153 bool RE::FullMatch(const char* str, const RE& re) { in FullMatch() argument
154 if (!re.is_valid_) return false; in FullMatch()
157 return regexec(&re.full_regex_, str, 1, &match, 0) == 0; in FullMatch()
162 bool RE::PartialMatch(const char* str, const RE& re) { in PartialMatch() argument
163 if (!re.is_valid_) return false; in PartialMatch()
166 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0; in PartialMatch()
406 bool RE::FullMatch(const char* str, const RE& re) { in FullMatch() argument
407 return re.is_valid_ && MatchRegexAnywhere(re.full_pattern_, str); in FullMatch()
412 bool RE::PartialMatch(const char* str, const RE& re) { in PartialMatch() argument
413 return re.is_valid_ && MatchRegexAnywhere(re.pattern_, str); in PartialMatch()
/ndk/tests/device/test-libc++-static-full/jni/
DAndroid.mk3206 $(call gen-test, re/nothing_to_do)
3207 $(call gen-test, re/re.alg/nothing_to_do)
3208 $(call gen-test, re/re.alg/re.alg.match/awk)
3209 $(call gen-test, re/re.alg/re.alg.match/basic)
3210 $(call gen-test, re/re.alg/re.alg.match/ecma)
3211 $(call gen-test, re/re.alg/re.alg.match/egrep)
3212 $(call gen-test, re/re.alg/re.alg.match/extended)
3213 $(call gen-test, re/re.alg/re.alg.match/grep)
3214 $(call gen-test, re/re.alg/re.alg.match/lookahead_capture)
3215 $(call gen-test, re/re.alg/re.alg.match/parse_curly_brackets)
[all …]
/ndk/tests/device/test-libc++-shared-full/jni/
DAndroid.mk3215 $(call gen-test, re/nothing_to_do)
3216 $(call gen-test, re/re.alg/nothing_to_do)
3217 $(call gen-test, re/re.alg/re.alg.match/awk)
3218 $(call gen-test, re/re.alg/re.alg.match/basic)
3219 $(call gen-test, re/re.alg/re.alg.match/ecma)
3220 $(call gen-test, re/re.alg/re.alg.match/egrep)
3221 $(call gen-test, re/re.alg/re.alg.match/extended)
3222 $(call gen-test, re/re.alg/re.alg.match/grep)
3223 $(call gen-test, re/re.alg/re.alg.match/lookahead_capture)
3224 $(call gen-test, re/re.alg/re.alg.match/parse_curly_brackets)
[all …]
/ndk/sources/host-tools/make-3.81/tests/scripts/options/
Ddash-B38 # Test -B with the re-exec feature: we don't want to re-exec forever
53 # Test -B with the re-exec feature: we DO want -B in the "normal" part of the
/ndk/sources/host-tools/nawk-20071023/
Db.c140 if ((f->posns[0] = (int *) calloc(1, *(f->re[0].lfollow)*sizeof(int))) == NULL) in mkdfa()
158 k = *(f->re[0].lfollow); in makeinit()
163 (f->posns[2])[i] = (f->re[0].lfollow)[i]; in makeinit()
347 f->re[info(v)].ltype = type(v); in cfoll()
348 f->re[info(v)].lval.np = right(v); in cfoll()
362 f->re[info(v)].lfollow = p; in cfoll()
869 if ((k = f->re[p[i]].ltype) != FINAL) { in cgoto()
870 if ((k == CHAR && c == ptoi(f->re[p[i]].lval.np)) in cgoto()
874 || (k == CCL && member(c, (char *) f->re[p[i]].lval.up)) in cgoto()
875 || (k == NCCL && !member(c, (char *) f->re[p[i]].lval.up) && c != 0 && c != HAT)) { in cgoto()
[all …]
/ndk/sources/host-tools/make-3.81/tests/scripts/features/
Dreinvoke37 # the rule doesn't update it. Make shouldn't re-exec.
57 # Now try with the file we're not updating being the actual file we're
/ndk/docs/Programmers_Guide/html/
Ddynsections.js59 var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
60 return this.id.match(re);
/ndk/docs/Getting_Started/html/
Ddynsections.js59 var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
60 return this.id.match(re);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.construct/
Dbad_escape.pass.cpp24 std::regex re(pat); in error_escape_thrown() local
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/
Dgtest-port.h954 static bool FullMatch(const ::std::string& str, const RE& re) {
955 return FullMatch(str.c_str(), re);
957 static bool PartialMatch(const ::std::string& str, const RE& re) {
958 return PartialMatch(str.c_str(), re);
963 static bool FullMatch(const ::string& str, const RE& re) {
964 return FullMatch(str.c_str(), re);
966 static bool PartialMatch(const ::string& str, const RE& re) {
967 return PartialMatch(str.c_str(), re);
972 static bool FullMatch(const char* str, const RE& re);
973 static bool PartialMatch(const char* str, const RE& re);
/ndk/sources/cxx-stl/stlport/src/
Dcomplex.cpp168 _Tp re = z._M_re; in sqrtT() local
170 _Tp mag = ::hypot(re, im); in sqrtT()
175 } else if (re > 0.f) { in sqrtT()
176 result._M_re = ::sqrt(0.5f * (mag + re)); in sqrtT()
179 result._M_im = ::sqrt(0.5f * (mag - re)); in sqrtT()

1234