Home
last modified time | relevance | path

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

12345678910>>...53

/external/selinux/libselinux/src/
Dregex.c62 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/libaom/libaom/third_party/googletest/src/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)
261 #define EXPECT_DEBUG_DEATH(statement, regex) \ argument
262 GTEST_EXECUTE_STATEMENT_(statement, regex)
[all …]
/external/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)
259 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
260 GTEST_EXECUTE_STATEMENT_(statement, regex)
[all …]
/external/mesa3d/src/gtest/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)
259 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
260 GTEST_EXECUTE_STATEMENT_(statement, regex)
[all …]
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/
Dgtest-death-test.h169 # 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/google-breakpad/src/testing/gtest/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/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 …]
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-death-test.h157 # 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/
Dinverted_character_classes.pass.cpp20 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 …]
Dparse_curly_brackets.pass.cpp31 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()
Dexponential.pass.cpp28 {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/
Dgtest-port.cc145 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/
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 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/tensorflow/tensorflow/python/keras/mixed_precision/experimental/
Ddevice_compatibility_check_test.py63 regex = re.compile(
68 self._test_compat_check(device_attrs_list, False, regex)
70 self._test_compat_check(device_attrs_list, False, regex)
78 regex = re.compile(
82 self._test_compat_check(device_attrs_list, False, regex)
88 regex = re.compile(
93 self._test_compat_check(device_attrs_list, True, regex)
95 self._test_compat_check(device_attrs_list, True, regex)
100 regex = re.compile(
105 self._test_compat_check(device_attrs_list, True, regex)
[all …]
/external/libcxx/test/std/re/re.alg/re.alg.search/
Dexponential.pass.cpp28 {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/libcxx/test/std/re/re.const/re.matchflag/
Dmatch_not_null.pass.cpp24 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/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/
DWildcardMatcher.java14 import java.util.regex.Pattern;
34 final StringBuilder regex = new StringBuilder(expression.length() * 2); in WildcardMatcher() local
38 regex.append('|'); in WildcardMatcher()
40 regex.append('(').append(toRegex(part)).append(')'); in WildcardMatcher()
43 pattern = Pattern.compile(regex.toString()); in WildcardMatcher()
47 final StringBuilder regex = new StringBuilder(expression.length() * 2); in toRegex() local
51 regex.append("."); in toRegex()
54 regex.append(".*"); in toRegex()
57 regex.append(Pattern.quote(String.valueOf(c))); in toRegex()
61 return regex; in toRegex()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-port.cc594 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/
Dgtest-port.cc651 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/mesa3d/src/gtest/src/
Dgtest-port.cc736 void RE::Init(const char* regex) { in Init() argument
737 pattern_ = posix::StrDup(regex); in Init()
741 const size_t full_regex_len = strlen(regex) + 10; in Init()
744 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init()
755 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init()
759 << "Regular expression \"" << regex in Init()
816 static std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument
818 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError()
823 bool ValidateRegex(const char* regex) { in ValidateRegex() argument
824 if (regex == nullptr) { in ValidateRegex()
[all …]
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-port.cc707 void RE::Init(const char *regex) { in Init() argument
708 pattern_ = posix::StrDup(regex); in Init()
712 const size_t full_regex_len = strlen(regex) + 10; in Init()
715 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init()
726 const char *const partial_regex = (*regex == '\0') ? "()" : regex; in Init()
730 << "Regular expression \"" << regex in Init()
787 static std::string FormatRegexSyntaxError(const char *regex, int index) { in FormatRegexSyntaxError() argument
789 << " in simple regular expression \"" << regex << "\": ") in FormatRegexSyntaxError()
795 bool ValidateRegex(const char *regex) { in ValidateRegex() argument
796 if (regex == nullptr) { in ValidateRegex()
[all …]
/external/googletest/googletest/src/
Dgtest-port.cc740 void RE::Init(const char* regex) { in Init() argument
741 pattern_ = posix::StrDup(regex); in Init()
745 const size_t full_regex_len = strlen(regex) + 10; in Init()
748 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init()
759 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init()
763 << "Regular expression \"" << regex in Init()
820 static std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument
822 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError()
827 bool ValidateRegex(const char* regex) { in ValidateRegex() argument
828 if (regex == nullptr) { in ValidateRegex()
[all …]
/external/libcxx/test/std/re/re.grammar/
Dexcessive_brace_count.pass.cpp22 {std::regex::basic, std::regex::grep}) { in main()
24 TEST_IGNORE_NODISCARD std::regex("a\\{100000000000000000\\}", op); in main() member in main::std
31 {std::regex::ECMAScript, std::regex::extended, std::regex::egrep, in main()
32 std::regex::awk}) { in main()
34 TEST_IGNORE_NODISCARD std::regex("a{100000000000000000}", op); in main() member in main::std
/external/u-boot/env/
Dattr.c115 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 …]
/external/mockito/src/main/java/org/mockito/internal/matchers/
DFind.java9 import java.util.regex.Pattern;
15 private final String regex; field in Find
17 public Find(String regex) { in Find() argument
18 this.regex = regex; in Find()
22 return actual != null && Pattern.compile(regex).matcher(actual).find(); in matches()
26 return "find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")"; in toString()

12345678910>>...53