/external/selinux/libselinux/src/ |
D | regex.c | 62 pcre2_code *regex; /* compiled regular expression */ member 71 int regex_prepare_data(struct regex_data **regex, char const *pattern_string, in regex_prepare_data() argument 76 *regex = regex_data_create(); in regex_prepare_data() 77 if (!(*regex)) in regex_prepare_data() 80 (*regex)->regex = pcre2_compile( in regex_prepare_data() 83 if (!(*regex)->regex) { in regex_prepare_data() 87 (*regex)->match_data = in regex_prepare_data() 88 pcre2_match_data_create_from_pattern((*regex)->regex, NULL); in regex_prepare_data() 89 if (!(*regex)->match_data) { in regex_prepare_data() 95 regex_data_free(*regex); in regex_prepare_data() [all …]
|
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/ |
D | gtest-death-test.h | 169 # define ASSERT_EXIT(statement, predicate, regex) \ argument 170 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 174 # define EXPECT_EXIT(statement, predicate, regex) \ argument 175 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 180 # define ASSERT_DEATH(statement, regex) \ argument 181 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 185 # define EXPECT_DEATH(statement, regex) \ argument 186 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 260 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 261 GTEST_EXECUTE_STATEMENT_(statement, regex) [all …]
|
/external/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) 259 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 260 GTEST_EXECUTE_STATEMENT_(statement, regex) [all …]
|
/external/mesa3d/src/gtest/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/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 …]
|
/external/libaom/libaom/third_party/googletest/src/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 …]
|
/external/google-breakpad/src/testing/gtest/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 …]
|
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/ |
D | gtest-death-test.h | 157 # define ASSERT_EXIT(statement, predicate, regex) \ argument 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 162 # define EXPECT_EXIT(statement, predicate, regex) \ argument 163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 168 # define ASSERT_DEATH(statement, regex) \ argument 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 173 # define EXPECT_DEATH(statement, regex) \ argument 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 250 # define ASSERT_DEBUG_DEATH(statement, regex) \ argument [all …]
|
/external/llvm/utils/unittest/googletest/include/gtest/ |
D | gtest-death-test.h | 157 # define ASSERT_EXIT(statement, predicate, regex) \ argument 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 162 # define EXPECT_EXIT(statement, predicate, regex) \ argument 163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 168 # define ASSERT_DEATH(statement, regex) \ argument 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 173 # define EXPECT_DEATH(statement, regex) \ argument 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument 250 # define ASSERT_DEBUG_DEATH(statement, regex) \ argument [all …]
|
/external/libcxx/test/std/re/re.alg/re.alg.match/ |
D | inverted_character_classes.pass.cpp | 20 assert(std::regex_match("X", std::regex("[X]"))); in main() 21 assert(std::regex_match("X", std::regex("[XY]"))); in main() 22 assert(!std::regex_match("X", std::regex("[^X]"))); in main() 23 assert(!std::regex_match("X", std::regex("[^XY]"))); in main() 25 assert(std::regex_match("X", std::regex("[\\S]"))); in main() 26 assert(!std::regex_match("X", std::regex("[^\\S]"))); in main() 28 assert(!std::regex_match("X", std::regex("[\\s]"))); in main() 29 assert(std::regex_match("X", std::regex("[^\\s]"))); in main() 31 assert(std::regex_match("X", std::regex("[\\s\\S]"))); in main() 32 assert(std::regex_match("X", std::regex("[^Y\\s]"))); in main() [all …]
|
D | parse_curly_brackets.pass.cpp | 31 std::regex regex(re); in test1() local 33 assert((std::regex_match(target, smatch, regex))); in test1() 41 std::regex regex(re, std::regex::extended); in test2() local 43 assert((std::regex_match(target, smatch, regex))); in test2() 51 std::regex regex(re, std::regex::awk); in test3() local 53 assert((std::regex_match(target, smatch, regex))); in test3() 61 std::regex regex(re, std::regex::egrep); in test4() local 63 assert((std::regex_match(target, smatch, regex))); in test4()
|
D | exponential.pass.cpp | 28 {std::regex::ECMAScript, std::regex::extended, std::regex::egrep, in main() 29 std::regex::awk}) { in main() 33 std::regex( in main() 43 {std::regex::ECMAScript, std::regex::extended, std::regex::egrep, in main() 44 std::regex::awk}) { in main() 45 assert(std::regex_match(s, std::regex("a*", op))); in main()
|
/external/llvm/utils/unittest/googletest/src/ |
D | gtest-port.cc | 145 void RE::Init(const char* regex) { in Init() argument 146 pattern_ = posix::StrDup(regex); in Init() 150 const size_t full_regex_len = strlen(regex) + 10; in Init() 153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 164 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 168 << "Regular expression \"" << regex in Init() 225 String FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 227 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 232 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 233 if (regex == NULL) { in ValidateRegex() [all …]
|
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/ |
D | gtest-port.cc | 145 void RE::Init(const char* regex) { in Init() argument 146 pattern_ = posix::StrDup(regex); in Init() 150 const size_t full_regex_len = strlen(regex) + 10; in Init() 153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 164 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 168 << "Regular expression \"" << regex in Init() 225 String FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 227 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 232 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 233 if (regex == NULL) { in ValidateRegex() [all …]
|
/external/google-breakpad/src/testing/gtest/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 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 …]
|
/external/guice/extensions/persist/lib/ |
D | oro-2.0.8.jar | ... text/
org/apache/oro/text/regex/
org/apache/oro/text/awk |
/external/libcxx/test/std/re/re.const/re.matchflag/ |
D | match_not_null.pass.cpp | 24 assert(!std::regex_search("a", m, std::regex("b*"), in main() 26 assert(std::regex_search("aa", m, std::regex("a*?"), in main() 29 assert(!std::regex_search("a", m, std::regex("b*", std::regex::extended), in main() 33 std::regex("b*", std::regex::extended | std::regex_constants::nosubs), in main() 36 assert(!std::regex_match("", m, std::regex("a*"), in main() 38 assert(!std::regex_match("", m, std::regex("a*", std::regex::extended), in main() 42 std::regex("a*", std::regex::extended | std::regex_constants::nosubs), in main()
|
/external/libcxx/test/std/re/re.alg/re.alg.search/ |
D | exponential.pass.cpp | 28 {std::regex::ECMAScript, std::regex::extended, std::regex::egrep, in main() 29 std::regex::awk}) { in main() 33 std::regex( in main() 43 {std::regex::ECMAScript, std::regex::extended, std::regex::egrep, in main() 44 std::regex::awk}) { in main() 45 assert(std::regex_search(s, std::regex("a*", op))); in main()
|
/external/mesa3d/src/gtest/src/ |
D | gtest-port.cc | 594 void RE::Init(const char* regex) { in Init() argument 595 pattern_ = posix::StrDup(regex); in Init() 599 const size_t full_regex_len = strlen(regex) + 10; in Init() 602 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 613 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 617 << "Regular expression \"" << regex in Init() 674 std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 676 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 681 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 682 if (regex == NULL) { in ValidateRegex() [all …]
|
/external/libvpx/libvpx/third_party/googletest/src/src/ |
D | gtest-port.cc | 651 void RE::Init(const char* regex) { in Init() argument 652 pattern_ = posix::StrDup(regex); in Init() 656 const size_t full_regex_len = strlen(regex) + 10; in Init() 659 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 670 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 674 << "Regular expression \"" << regex in Init() 731 static std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 733 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 738 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 739 if (regex == NULL) { in ValidateRegex() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/ |
D | gtest-port.cc | 594 void RE::Init(const char* regex) { in Init() argument 595 pattern_ = posix::StrDup(regex); in Init() 599 const size_t full_regex_len = strlen(regex) + 10; in Init() 602 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 613 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 617 << "Regular expression \"" << regex in Init() 674 std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 676 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 681 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 682 if (regex == NULL) { in ValidateRegex() [all …]
|
/external/libaom/libaom/third_party/googletest/src/googletest/src/ |
D | gtest-port.cc | 594 void RE::Init(const char* regex) { in Init() argument 595 pattern_ = posix::StrDup(regex); in Init() 599 const size_t full_regex_len = strlen(regex) + 10; in Init() 602 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 613 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 617 << "Regular expression \"" << regex in Init() 674 std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 676 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 681 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 682 if (regex == NULL) { in ValidateRegex() [all …]
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/ |
D | WildcardMatcher.java | 14 import java.util.regex.Pattern; 33 final StringBuilder regex = new StringBuilder(expression.length() * 2); in WildcardMatcher() local 37 regex.append('|'); in WildcardMatcher() 39 regex.append('(').append(toRegex(part)).append(')'); in WildcardMatcher() 42 pattern = Pattern.compile(regex.toString()); in WildcardMatcher() 46 final StringBuilder regex = new StringBuilder(expression.length() * 2); in toRegex() local 50 regex.append(".?"); in toRegex() 53 regex.append(".*"); in toRegex() 56 regex.append(Pattern.quote(String.valueOf(c))); in toRegex() 60 return regex; in toRegex()
|
/external/googletest/googletest/src/ |
D | gtest-port.cc | 734 void RE::Init(const char* regex) { in Init() argument 735 pattern_ = posix::StrDup(regex); in Init() 739 const size_t full_regex_len = strlen(regex) + 10; in Init() 742 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init() 753 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init() 757 << "Regular expression \"" << regex in Init() 814 static std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument 816 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError() 821 bool ValidateRegex(const char* regex) { in ValidateRegex() argument 822 if (regex == nullptr) { in ValidateRegex() [all …]
|
/external/u-boot/env/ |
D | attr.c | 115 char *regex; member 124 char regex[strlen(name) + 3]; in regex_callback() local 127 sprintf(regex, "^%s$", name); in regex_callback() 128 if (slre_compile(&slre, regex)) { in regex_callback() 133 free(cbp->regex); in regex_callback() 138 cbp->regex = malloc(strlen(regex) + 1); in regex_callback() 139 if (cbp->regex) { in regex_callback() 140 strcpy(cbp->regex, regex); in regex_callback() 152 free(cbp->regex); in regex_callback() 153 cbp->regex = NULL; in regex_callback() [all …]
|