Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 25 of 94) sorted by relevance

1234

/ndk/sources/third_party/googletest/googletest/include/gtest/
Dgtest-death-test.h168 # 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/
Dparse_curly_brackets.pass.cpp30 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()
Dlookahead_capture.pass.cpp30 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/
Dgtest-port.cc170 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/
Dassign_iter_iter_flag.pass.cpp29 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()
Dassign_ptr_flag.pass.cpp21 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()
Dassign.il.pass.cpp24 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()
Dassign_string_flag.pass.cpp23 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()
Dcopy.pass.cpp21 std::regex r1("(a([bc]))"); in main()
22 std::regex r2; in main()
24 assert(r2.flags() == std::regex::ECMAScript); in main()
Dassign_ptr_size_flag.pass.cpp21 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()
Dassign.pass.cpp21 std::regex r1("(a([bc]))"); in main()
22 std::regex r2; in main()
24 assert(r2.flags() == std::regex::ECMAScript); in main()
Dptr.pass.cpp21 std::regex r2; in main()
23 assert(r2.flags() == std::regex::ECMAScript); in main()
Dil.pass.cpp22 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/
Dswap.pass.cpp21 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/
Dswap.pass.cpp22 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/
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()
Dcopy.pass.cpp21 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/
Dtest6.pass.cpp26 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()
Dtest4.pass.cpp25 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()
Dtest5.pass.cpp26 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()
Dtest3.pass.cpp26 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()
Dtest2.pass.cpp30 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()
Dtest1.pass.cpp30 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/
Dgtest-death-test-internal.h79 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/
Dlookahead.pass.cpp26 assert(!std::regex_search("ab", std::regex("(?=^)b"))); in main()
27 assert(!std::regex_search("ab", std::regex("a(?=^)b"))); in main()

1234