Searched defs:regex (Results 1 - 13 of 13) sorted by relevance

/external/gtest/test/
H A Dgtest-port_test.cc83 const char regex[] = local
91 EXPECT_DEATH(GTEST_CHECK_(a_false_condition) << "Extra info", regex);
H A Dgtest-death-test_test.cc306 // TODO(wan@google.com): <regex.h> doesn't support matching strings
449 const testing::internal::RE regex(regex_c_str);
450 EXPECT_DEATH(GlobalFunction(), regex); local
541 const char* regex = "DieIf"; local
542 const char* regex_save = regex;
543 EXPECT_DEATH(DieIfLessThan(3, 4), regex++);
544 EXPECT_EQ(regex_save + 1, regex);
721 const ::testing::internal::RE* regex,
836 const ::testing::internal::RE* regex,
835 Create(const char* statement, const ::testing::internal::RE* regex, const char* file, int line, DeathTest** test) argument
/external/easymock/src/org/easymock/internal/matchers/
H A DFind.java19 import java.util.regex.Pattern;
27 private final String regex; field in class:Find
29 public Find(String regex) { argument
30 this.regex = regex;
35 && Pattern.compile(regex).matcher((String) actual).find();
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
H A DMatches.java26 private final String regex; field in class:Matches
28 public Matches(String regex) { argument
29 this.regex = regex;
33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
/external/webkit/WebCore/inspector/front-end/
H A DSourceFrame.js196 var regex = ""; variable
201 regex += "[" + char + "]";
203 var regexObject = new RegExp(regex, "i");
206 // Then try regex search if user knows the / / hint.
/external/icu4c/i18n/
H A Drepattrn.cpp15 #include "unicode/regex.h"
240 RegexPattern::compile(const UnicodeString &regex, argument
277 compiler.compile(regex, pe, status);
291 RegexPattern::compile(const UnicodeString &regex, argument
295 return compile(regex, 0, pe, err);
304 RegexPattern::compile( const UnicodeString &regex, argument
309 return compile(regex, flags, pe, err);
383 UBool U_EXPORT2 RegexPattern::matches(const UnicodeString &regex, argument
394 pat = RegexPattern::compile(regex, 0, pe, status);
/external/easymock/src/org/easymock/
H A DEasyMock.java1315 * @param regex
1319 public static String find(String regex) { argument
1320 reportMatcher(new Find(regex));
1328 * @param regex
1332 public static String matches(String regex) { argument
1333 reportMatcher(new Matches(regex));
/external/gtest/src/
H A Dgtest-port.cc104 void RE::Init(const char* regex) { argument
105 pattern_ = strdup(regex);
109 const size_t full_regex_len = strlen(regex) + 10;
112 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
119 // Some implementation of POSIX regex (e.g. on at least some
121 // regex. We change it to an equivalent form "()" to be safe.
122 const char* const partial_regex = (*regex == '\0') ? "()" : regex;
126 << "Regular expression \"" << regex
183 String FormatRegexSyntaxError(const char* regex, in argument
190 ValidateRegex(const char* regex) argument
253 MatchRepetitionAndRegexAtHead( bool escaped, char c, char repeat, const char* regex, const char* str) argument
280 MatchRegexAtHead(const char* regex, const char* str) argument
316 MatchRegexAnywhere(const char* regex, const char* str) argument
350 Init(const char* regex) argument
[all...]
H A Dgtest-death-test.cc312 bool DeathTest::Create(const char* statement, const RE* regex, argument
315 statement, regex, file, line, test);
333 DeathTestImpl(const char* statement, const RE* regex) argument
335 regex_(regex),
343 const RE* regex() const { return regex_; } function in class:testing::internal::DeathTestImpl
400 const RE* regex,
403 : DeathTestImpl(statement, regex), file_(file), line_(line) {}
641 ForkingDeathTest(const char* statement, const RE* regex);
661 ForkingDeathTest::ForkingDeathTest(const char* statement, const RE* regex) argument
662 : DeathTestImpl(statement, regex),
399 WindowsDeathTest(const char* statement, const RE* regex, const char* file, int line) argument
872 NoExecDeathTest(const char* statement, const RE* regex) argument
923 ExecDeathTest(const char* statement, const RE* regex, const char* file, int line) argument
1131 Create(const char* statement, const RE* regex, const char* file, int line, DeathTest** test) argument
[all...]
/external/bluetooth/glib/tests/
H A Dregex-test.c99 GRegex *regex; local
103 regex = g_regex_new (pattern, compile_opts, match_opts, NULL);
104 if (regex == NULL)
111 if (!streq (g_regex_get_pattern (regex), pattern))
115 g_regex_unref (regex);
119 g_regex_unref (regex);
138 GRegex *regex; local
143 regex = g_regex_new (pattern, compile_opts, 0, &error);
145 if (regex != NULL)
149 g_regex_unref (regex);
216 GRegex *regex; local
288 GRegex *regex; local
444 GRegex *regex; local
483 GRegex *regex; local
537 GRegex *regex; local
595 GRegex *regex; local
658 GRegex *regex; local
863 GRegex *regex; local
934 GRegex *regex; local
1107 GRegex *regex = NULL; local
1156 GRegex *regex; local
1194 GRegex *regex; local
1231 GRegex *regex; local
1300 GRegex *regex; local
1408 GRegex *regex; local
[all...]
/external/gtest/include/gtest/internal/
H A Dgtest-port.h94 // GTEST_USES_POSIX_RE - enhanced POSIX regex is used.
95 // GTEST_USES_SIMPLE_RE - our own simple regex is used;
193 // On some platforms, <regex.h> needs someone to define size_t, and
197 #include <regex.h> // NOLINT
202 // <regex.h> may not be available on this platform. Use our own
203 // simple regex implementation instead.
526 // A simple C++ wrapper for <regex.h>. It uses the POSIX Enxtended
532 RE(const ::std::string& regex) { Init(regex.c_str()); } // NOLINT argument
536 RE(const ::string& regex) { Ini argument
539 RE(const char* regex) argument
[all...]
/external/webkit/JavaScriptCore/yarr/
H A DRegexInterpreter.cpp1145 // We should never backtrack back into an alternative of the main body of the regex.
1621 int interpretRegex(BytecodePattern* regex, const UChar* input, unsigned start, unsigned length, int* output) argument
1623 return Interpreter(regex, output, input, start, length).interpret();
/external/jdiff/
H A Dxerces.jar ... org/apache/xerces/impl/xpath/ org/apache/xerces/impl/xpath/regex/ org/apache/xerces/impl/xs/ org/apache/xerces/impl/xs ...

Completed in 129 milliseconds