HomeSort by relevance Sort by last modified time
    Searched refs:regex (Results 1 - 25 of 442) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/
re_comp.h 22 /* This is only a wrapper around the <regex.h> file. XPG4.2 mentions
24 #include <regex.h>
  /external/chromium/testing/gtest/include/gtest/
gtest-death-test.h 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 # define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_
    [all...]
  /external/llvm/utils/unittest/googletest/include/gtest/
gtest-death-test.h 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_
    [all...]
  /external/protobuf/gtest/include/gtest/
gtest-death-test.h 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_
    [all...]
  /external/easymock/src/org/easymock/internal/matchers/
Matches.java 26 private final String regex; field in class:Matches
28 public Matches(String regex) {
29 this.regex = regex;
33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
Find.java 19 import java.util.regex.Pattern;
27 private final String regex; field in class:Find
29 public Find(String regex) {
30 this.regex = regex;
35 && Pattern.compile(regex).matcher((String) actual).find();
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
  /external/chromium/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/
contentscript.js 6 var regex = /sandwich/; variable
9 if (regex.test(document.body.innerText)) {
  /ndk/sources/host-tools/sed-4.2.1/testsuite/
bug-regex8.c 30 #include <regex.h>
36 struct re_pattern_buffer regex; local
40 memset (&regex, '\0', sizeof (regex));
42 s = re_compile_pattern ("xy$", 3, &regex);
49 match[0] = re_match_2(&regex,"xyz",3,NULL,0,0,NULL,2);
51 free (regex.buffer);
52 memset (&regex, '\0', sizeof (regex));
54 s = re_compile_pattern ("xy\\>", 4, &regex);
    [all...]
bug-regex10.c 28 #include <regex.h>
33 struct re_pattern_buffer regex; local
40 memset (&regex, '\0', sizeof (regex));
41 s = re_compile_pattern ("[abc]*d", 7, &regex);
49 match = re_match (&regex, "foacabdxy", 9, 2, &regs);
bug-regex7.c 30 #include <regex.h>
36 struct re_pattern_buffer regex; local
42 memset (&regex, '\0', sizeof (regex));
45 s = re_compile_pattern ("a", 1, &regex);
53 match = re_search (&regex, "baobab", 6, 0, 6, &regs);
67 free (regex.buffer);
68 memset (&regex, '\0', sizeof (regex));
70 s = re_compile_pattern ("\\(\\(\\(a\\)\\)\\)", 13, &regex);
    [all...]
bug-regex27.c 22 #include <regex.h>
28 const char *regex; member in struct:tests
49 if (regcomp (&r, tests[i].regex, tests[i].cflags))
  /external/chromium/sdch/open-vcdiff/src/gtest/
gtest-death-test.h 101 // that matches regex.
102 #define ASSERT_EXIT(statement, predicate, regex) \
103 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_FATAL_FAILURE)
107 #define EXPECT_EXIT(statement, predicate, regex) \
108 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_NONFATAL_FAILURE)
112 // signal, and emitting error output that matches regex.
113 #define ASSERT_DEATH(statement, regex) \
114 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
118 #define EXPECT_DEATH(statement, regex) \
119 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
    [all...]
  /external/gtest/include/gtest/
gtest-death-test.h 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library,
92 // which uses the POSIX extended regex syntax.
94 // On other platforms (e.g. Windows), we only support a simple regex
98 // or POSIX extended regex syntax. For example, we don't support
103 // subset of both PCRE and POSIX extended regex, so it's easy to
130 // If you accidentally use PCRE or POSIX extended regex features
136 // as a compiled regex library, but should perform well enough for a
156 // that matches regex.
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_
    [all...]
  /external/chromium/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/
contentscript.js 6 var regex = /sandwich/gi; variable
7 matches = document.body.innerText.match(regex);
  /external/gtest/src/
gtest-port.cc 104 void RE::Init(const char* regex) {
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, int index)
    [all...]
  /external/chromium/testing/gtest/src/
gtest-port.cc 117 // regfree'ing an invalid regex might crash because the content
118 // of the regex is undefined. Since the regex's are essentially
145 void RE::Init(const char* regex) {
146 pattern_ = posix::StrDup(regex);
150 const size_t full_regex_len = strlen(regex) + 10;
153 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
160 // Some implementation of POSIX regex (e.g. on at least some
162 // regex. We change it to an equivalent form "()" to be safe.
164 const char* const partial_regex = (*regex == '\0') ? "()" : regex
    [all...]
  /external/llvm/utils/unittest/googletest/
gtest-port.cc 115 // regfree'ing an invalid regex might crash because the content
116 // of the regex is undefined. Since the regex's are essentially
143 void RE::Init(const char* regex) {
144 pattern_ = posix::StrDup(regex);
148 const size_t full_regex_len = strlen(regex) + 10;
151 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
158 // Some implementation of POSIX regex (e.g. on at least some
160 // regex. We change it to an equivalent form "()" to be safe.
162 const char* const partial_regex = (*regex == '\0') ? "()" : regex
    [all...]
  /external/protobuf/gtest/src/
gtest-port.cc 135 void RE::Init(const char* regex) {
136 pattern_ = posix::StrDup(regex);
140 const size_t full_regex_len = strlen(regex) + 10;
143 snprintf(full_pattern, full_regex_len, "^(%s)$", regex);
150 // Some implementation of POSIX regex (e.g. on at least some
152 // regex. We change it to an equivalent form "()" to be safe.
153 const char* const partial_regex = (*regex == '\0') ? "()" : regex;
157 << "Regular expression \"" << regex
214 String FormatRegexSyntaxError(const char* regex, int index)
    [all...]
  /external/libphonenumber/java/src/com/android/i18n/phonenumbers/
RegexCache.java 21 import java.util.regex.Pattern;
35 public Pattern getPatternForRegex(String regex) {
36 Pattern pattern = cache.get(regex);
38 pattern = Pattern.compile(regex);
39 cache.put(regex, pattern);
45 boolean containsRegex(String regex) {
46 return cache.containsKey(regex);
  /external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/
PatternSyntaxExceptionTest.java 17 package org.apache.harmony.tests.java.util.regex;
21 import java.util.regex.Pattern;
22 import java.util.regex.PatternSyntaxException;
35 String regex = "("; local
37 Pattern.compile(regex);
46 assertEquals(regex, e.getPattern());
51 String regex = "[4-"; local
53 Pattern.compile(regex);
62 assertEquals(regex, e.getPattern());
  /libcore/luni/src/main/java/java/util/regex/
MatchResult.java 18 package java.util.regex;
  /external/chromium/webkit/glue/
regular_expression_unittest.cc 24 void testMatches(const WebRegularExpression& regex,
30 EXPECT_EQ(matches[i].matchPosition, regex.match(
46 WebRegularExpression regex("the quick brown fox", WebTextCaseSensitive);
47 EXPECT_EQ(0, regex.match("the quick brown fox"));
48 EXPECT_EQ(1, regex.match(" the quick brown fox"));
49 EXPECT_EQ(3, regex.match("foothe quick brown foxbar"));
51 EXPECT_EQ(-1, regex.match("The quick brown FOX"));
52 EXPECT_EQ(-1, regex.match("the quick brown fo"));
58 WebRegularExpression regex(WebString(pattern, arraysize(pattern)),
73 testMatches(regex, matches, arraysize(matches))
    [all...]
  /ndk/sources/host-tools/sed-4.2.1/sed/
regexp.c 49 struct regex *new_regex;
138 struct regex *
144 struct regex *new_regex;
156 new_regex = ck_malloc(sizeof (struct regex) + re_len - 1);
163 /* GNU regex does not process \t & co. */
210 match_regex(regex, buf, buflen, buf_start_offset, regarray, regsize)
211 struct regex *regex;
219 static struct regex *regex_last;
229 if (!regex)
    [all...]
  /external/oprofile/libregex/
demangle_symbol.cpp 59 static regular_expression_replace regex; local
61 setup_regex(regex, OP_DATADIR "/stl.pat");
66 regex.execute(result);
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
PatternErrorTest.java 17 package org.apache.harmony.regex.tests.java.util.regex;
19 import java.util.regex.Pattern;
23 * Test boundary and error conditions in java.util.regex.Pattern
28 // null regex string - should get NullPointerException
36 // empty regex string - no exception should be thrown
39 // note: invalid regex syntax checked in PatternSyntaxExceptionTest

Completed in 3925 milliseconds

1 2 3 4 5 6 7 8 91011>>