/ndk/sources/third_party/googletest/googletest/include/gtest/ |
D | gtest-death-test.h | 168 # define ASSERT_EXIT(statement, predicate, regex) \ argument 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 173 # define EXPECT_EXIT(statement, predicate, regex) \ argument 174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 179 # define ASSERT_DEATH(statement, regex) \ argument 180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 184 # define EXPECT_DEATH(statement, regex) \ argument 185 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 258 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 259 GTEST_EXECUTE_STATEMENT_(statement, regex) [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.match/ |
D | parse_curly_brackets.pass.cpp | 30 std::regex regex{re}; in test1() local 32 assert((std::regex_match(target, smatch, regex))); in test1() 40 std::regex regex{re, std::regex::extended}; in test2() local 42 assert((std::regex_match(target, smatch, regex))); in test2() 50 std::regex regex{re, std::regex::awk}; in test3() local 52 assert((std::regex_match(target, smatch, regex))); in test3() 60 std::regex regex{re, std::regex::egrep}; in test4() local 62 assert((std::regex_match(target, smatch, regex))); in test4()
|
D | lookahead_capture.pass.cpp | 30 std::regex re{"^(?=(.))a$"}; in main() 42 std::regex re{"^(a)(?=(.))(b)$"}; in main() 56 std::regex re{"^(.)(?=(.)(?=.(.)))(...)$"}; in main() 71 std::regex re{"^(a)(?!([^b]))(.c)$"}; in main() 85 std::regex re{"^(?!((b)))(?=(.))(?!(abc)).b$"}; in main()
|
/ndk/sources/third_party/googletest/googletest/src/ |
D | gtest-port.cc | 170 void RE::Init(const char* regex) { in Init() argument 171 pattern_ = posix::StrDup(regex); in Init() 175 const size_t full_regex_len = strlen(regex) + 10; in Init() 178 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 189 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 193 << "Regular expression \"" << regex in Init() 250 std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 252 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 257 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 258 if (regex == NULL) { in ValidateRegex() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.assign/ |
D | assign_iter_iter_flag.pass.cpp | 29 std::regex r2; in main() 32 assert(r2.flags() == std::regex::ECMAScript); in main() 35 r2.assign(I(s4.begin()), I(s4.end()), std::regex::extended); in main() 36 assert(r2.flags() == std::regex::extended); in main() 40 assert(r2.flags() == std::regex::ECMAScript); in main() 43 r2.assign(F(s4.begin()), F(s4.end()), std::regex::extended); in main() 44 assert(r2.flags() == std::regex::extended); in main()
|
D | assign_ptr_flag.pass.cpp | 21 std::regex r2; in main() 23 assert(r2.flags() == std::regex::ECMAScript); in main() 26 r2.assign("(a([bc]))", std::regex::extended); in main() 27 assert(r2.flags() == std::regex::extended); in main()
|
D | assign.il.pass.cpp | 24 std::regex r2; in main() 26 assert(r2.flags() == std::regex::ECMAScript); in main() 29 r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended); in main() 30 assert(r2.flags() == std::regex::extended); in main()
|
D | assign_string_flag.pass.cpp | 23 std::regex r2; in main() 25 assert(r2.flags() == std::regex::ECMAScript); in main() 28 r2.assign(std::string("(a([bc]))"), std::regex::extended); in main() 29 assert(r2.flags() == std::regex::extended); in main()
|
D | copy.pass.cpp | 21 std::regex r1("(a([bc]))"); in main() 22 std::regex r2; in main() 24 assert(r2.flags() == std::regex::ECMAScript); in main()
|
D | assign_ptr_size_flag.pass.cpp | 21 std::regex r2; in main() 22 r2.assign("(a([bc]))", 9, std::regex::extended); in main() 23 assert(r2.flags() == std::regex::extended); in main()
|
D | assign.pass.cpp | 21 std::regex r1("(a([bc]))"); in main() 22 std::regex r2; in main() 24 assert(r2.flags() == std::regex::ECMAScript); in main()
|
D | ptr.pass.cpp | 21 std::regex r2; in main() 23 assert(r2.flags() == std::regex::ECMAScript); in main()
|
D | il.pass.cpp | 22 std::regex r2; in main() 24 assert(r2.flags() == std::regex::ECMAScript); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.swap/ |
D | swap.pass.cpp | 21 std::regex r1("(a([bc]))"); in main() 22 std::regex r2; in main() 24 assert(r1.flags() == std::regex::ECMAScript); in main() 26 assert(r2.flags() == std::regex::ECMAScript); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.nonmemb/re.regex.nmswap/ |
D | swap.pass.cpp | 22 std::regex r1("(a([bc]))"); in main() 23 std::regex r2; in main() 25 assert(r1.flags() == std::regex::ECMAScript); in main() 27 assert(r2.flags() == std::regex::ECMAScript); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.regex/re.regex.construct/ |
D | awk_oct.pass.cpp | 24 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()
|
D | copy.pass.cpp | 21 std::regex r1("(a([bc]))"); in main() 22 std::regex r2 = r1; in main() 23 assert(r2.flags() == std::regex::ECMAScript); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.replace/ |
D | test6.pass.cpp | 26 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 33 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 41 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 49 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 57 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 65 std::regex phone_numbers("\\d{3}-\\d{4}"); in main()
|
D | test4.pass.cpp | 25 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 32 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 40 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 48 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 56 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 64 std::regex phone_numbers("\\d{3}-\\d{4}"); in main()
|
D | test5.pass.cpp | 26 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 33 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 41 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 49 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 57 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 65 std::regex phone_numbers("\\d{3}-\\d{4}"); in main()
|
D | test3.pass.cpp | 26 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 33 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 41 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 49 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 57 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 65 std::regex phone_numbers("\\d{3}-\\d{4}"); in main()
|
D | test2.pass.cpp | 30 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 42 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 55 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 68 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 81 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 94 std::regex phone_numbers("\\d{3}-\\d{4}"); in main()
|
D | test1.pass.cpp | 30 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 42 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 55 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 68 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 81 std::regex phone_numbers("\\d{3}-\\d{4}"); in main() 94 std::regex phone_numbers("\\d{3}-\\d{4}"); in main()
|
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/ |
D | gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \ argument 188 const ::testing::internal::RE& gtest_regex = (regex); \ 224 # define GTEST_EXECUTE_STATEMENT_(statement, regex) \ argument 301 # define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \ argument 308 ::testing::internal::RE::PartialMatch(".*", (regex)); \
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.search/ |
D | lookahead.pass.cpp | 26 assert(!std::regex_search("ab", std::regex("(?=^)b"))); in main() 27 assert(!std::regex_search("ab", std::regex("a(?=^)b"))); in main()
|