Home
last modified time | relevance | path

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

12345678910>>...21

/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/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/mesa3d/src/gtest/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/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/protobuf/gtest/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/protobuf/gtest/src/
Dgtest-port.cc143 void RE::Init(const char* regex) { in Init() argument
144 pattern_ = posix::StrDup(regex); in Init()
148 const size_t full_regex_len = strlen(regex) + 10; in Init()
151 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init()
162 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init()
166 << "Regular expression \"" << regex in Init()
223 String FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument
225 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError()
230 bool ValidateRegex(const char* regex) { in ValidateRegex() argument
231 if (regex == NULL) { in ValidateRegex()
[all …]
/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/mesa3d/src/gtest/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/libcxx/test/std/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()
/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/gtest/src/
Dgtest-port.cc171 void RE::Init(const char* regex) { in Init() argument
172 pattern_ = posix::StrDup(regex); in Init()
176 const size_t full_regex_len = strlen(regex) + 10; in Init()
179 snprintf(full_pattern, full_regex_len, "^(%s)$", regex); in Init()
190 const char* const partial_regex = (*regex == '\0') ? "()" : regex; in Init()
194 << "Regular expression \"" << regex in Init()
251 std::string FormatRegexSyntaxError(const char* regex, int index) { in FormatRegexSyntaxError() argument
253 << " in simple regular expression \"" << regex << "\": ").GetString(); in FormatRegexSyntaxError()
258 bool ValidateRegex(const char* regex) { in ValidateRegex() argument
259 if (regex == NULL) { in ValidateRegex()
[all …]
/external/v8/test/mjsunit/
Dcyrillic.js141 var regex = simple ? SIGMA : "[" + SIGMA + "]"; variable
143 assertFalse(new RegExp(regex).test(sigma), 31 + name);
144 assertFalse(new RegExp(regex).test(alternative_sigma), 32 + name);
145 assertTrue(new RegExp(regex).test(SIGMA), 33 + name);
147 assertTrue(new RegExp(regex, "i").test(sigma), 34 + name);
149 assertTrue(new RegExp(regex, "i").test(alternative_sigma), 35 + name);
150 assertTrue(new RegExp(regex, "i").test(SIGMA), 36 + name);
152 regex = simple ? sigma : "[" + sigma + "]";
154 assertTrue(new RegExp(regex).test(sigma), 41 + name);
155 assertFalse(new RegExp(regex).test(alternative_sigma), 42 + name);
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DFind.java19 import java.util.regex.Pattern;
27 private final String regex; field in Find
29 public Find(String regex) { in Find() argument
30 this.regex = regex; in Find()
35 && Pattern.compile(regex).matcher((String) actual).find(); in matches()
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")"); in appendTo()
DMatches.java26 private final String regex; field in Matches
28 public Matches(String regex) { in Matches() argument
29 this.regex = regex; in Matches()
33 return (actual instanceof String) && ((String) actual).matches(regex); in matches()
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\") in appendTo()
/external/mockito/src/org/mockito/internal/matchers/
DFind.java9 import java.util.regex.Pattern;
17 private final String regex; field in Find
19 public Find(String regex) { in Find() argument
20 this.regex = regex; in Find()
24 return actual != null && Pattern.compile(regex).matcher((String) actual).find(); in matches()
28 description.appendText("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")"); in describeTo()
DMatches.java17 private final String regex; field in Matches
19 public Matches(String regex) { in Matches() argument
20 this.regex = regex; in Matches()
24 return (actual instanceof String) && ((String) actual).matches(regex); in matches()
28 description.appendText("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\") in describeTo()
/external/jarjar/src/main/com/tonicsystems/jarjar/
DWildcard.java19 import java.util.regex.Matcher;
20 import java.util.regex.Pattern;
45 String regex = pattern; in Wildcard() local
46 regex = replaceAllLiteral(dstar, regex, "(.+?)"); in Wildcard()
47 regex = replaceAllLiteral(star, regex, "([^/]+)"); in Wildcard()
48 regex = replaceAllLiteral(estar, regex, "*)"); in Wildcard()
49 regex = replaceAllLiteral(dollar, regex, "\\$"); in Wildcard()
50 this.pattern = Pattern.compile("\\A" + regex + "\\Z"); in Wildcard()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUnicodeRegex.java24 import java.util.regex.Pattern;
80 public String transform(String regex) { in transform() argument
90 for (int i = 0; i < regex.length(); ++i) { in transform()
92 char ch = regex.charAt(i); in transform()
96 if (UnicodeSet.resemblesPattern(regex, i)) { in transform()
98 i = processSet(regex, i, result, temp, pos); in transform()
104 if (UnicodeSet.resemblesPattern(regex, i)) { in transform()
105 i = processSet(regex, i, result, temp, pos); in transform()
142 public static String fix(String regex) {
143 return STANDARD.transform(regex);
[all …]
/external/llvm/include/llvm/Support/
DRegex.h49 Regex &operator=(Regex regex) {
50 std::swap(preg, regex.preg);
51 std::swap(error, regex.error);
54 Regex(Regex &&regex) { in Regex() argument
55 preg = regex.preg; in Regex()
56 error = regex.error; in Regex()
57 regex.preg = nullptr; in Regex()
/external/libcxx/test/std/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.pass.cpp21 std::regex r1("(a([bc]))"); in main()
22 std::regex r2; in main()
24 assert(r2.flags() == std::regex::ECMAScript); in main()
29 try { r2.assign("(def", std::regex::extended); } in main()
32 assert(r2.flags() == std::regex::ECMAScript); in main()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DRegexCache.java21 import java.util.regex.Pattern;
35 public Pattern getPatternForRegex(String regex) { in getPatternForRegex() argument
36 Pattern pattern = cache.get(regex); in getPatternForRegex()
38 pattern = Pattern.compile(regex); in getPatternForRegex()
39 cache.put(regex, pattern); in getPatternForRegex()
45 boolean containsRegex(String regex) { in containsRegex() argument
46 return cache.containsKey(regex); in containsRegex()
/external/libcxx/test/std/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()
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()
/external/llvm/cmake/modules/
DChooseMSVCCRT.cmake13 # 2. Replace the flags in both variables with the new flag via a regex.
18 macro(make_crt_regex regex crts)
19 set(${regex} "")
23 set(${regex} "${${regex}}|(^| +)/${crt}($| +)")
25 string(REGEX REPLACE "^\\|" "" ${regex} "${${regex}}")
28 macro(get_current_crt crt_current regex flagsvar)
31 string(REGEX MATCH "${${regex}}" ${crt_current} "${${flagsvar}}")
38 macro(set_flag_in_var flagsvar regex flag)
39 string(REGEX MATCH "${${regex}}" current_flag "${${flagsvar}}")
43 string(REGEX REPLACE "${${regex}}" "${${flag}}" ${flagsvar} "${${flagsvar}}")

12345678910>>...21