Home
last modified time | relevance | path

Searched refs:regexp (Results 1 – 25 of 252) sorted by relevance

1234567891011

/external/icu/icu4c/source/i18n/
Duregex.cpp324 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_pattern() local
326 if (validateRE(regexp, FALSE, status) == FALSE) { in uregex_pattern()
330 *patLength = regexp->fPatStringLen; in uregex_pattern()
332 return regexp->fPatString; in uregex_pattern()
344 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_patternUText() local
345 return regexp->fPat->patternText(*status); in uregex_patternUText()
356 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_flags() local
357 if (validateRE(regexp, FALSE, status) == FALSE) { in uregex_flags()
360 int32_t flags = regexp->fPat->flags(); in uregex_flags()
375 RegularExpression *regexp = (RegularExpression*)regexp2; in uregex_setText() local
[all …]
/external/icu/icu4c/source/i18n/unicode/
Duregex.h209 uregex_close(URegularExpression *regexp);
249 uregex_clone(const URegularExpression *regexp, UErrorCode *status);
269 uregex_pattern(const URegularExpression *regexp,
285 uregex_patternUText(const URegularExpression *regexp,
297 uregex_flags(const URegularExpression *regexp,
322 uregex_setText(URegularExpression *regexp,
345 uregex_setUText(URegularExpression *regexp,
370 uregex_getText(URegularExpression *regexp,
391 uregex_getUText(URegularExpression *regexp,
421 uregex_refreshUText(URegularExpression *regexp,
[all …]
/external/v8/test/webkit/fast/regex/
Dmalformed-escapes.js28 var regexp; variable
30 regexp = /\ug/gm;
31 debug("\nTesting regexp: " + regexp);
35 regexp = /\xg/gm;
36 debug("\nTesting regexp: " + regexp);
40 regexp = /\c_/gm;
41 debug("\nTesting regexp: " + regexp);
45 regexp = /[\B]/gm;
46 debug("\nTesting regexp: " + regexp);
50 regexp = /[\b]/gm;
[all …]
Dmalformed-escapes-expected.txt30 Testing regexp: /\ug/gm
31 PASS regexp.test('ug') is true
32 PASS regexp.lastIndex is 2
34 Testing regexp: /\xg/gm
35 PASS regexp.test('xg') is true
36 PASS regexp.lastIndex is 2
38 Testing regexp: /\c_/gm
39 PASS regexp.test('\\c_') is true
40 PASS regexp.lastIndex is 3
42 Testing regexp: /[\B]/gm
[all …]
Dquantified-assertions.js28 var regexp; variable
30 regexp = /(?=a){0}/gm;
31 debug("\nTesting regexp: " + regexp);
35 regexp = /(?=a){1}/gm;
36 debug("\nTesting regexp: " + regexp);
40 regexp = /(?!a){0}/gm;
41 debug("\nTesting regexp: " + regexp);
45 regexp = /(?!a){1}/gm;
46 debug("\nTesting regexp: " + regexp);
Dquantified-assertions-expected.txt30 Testing regexp: /(?=a){0}/gm
31 PASS regexp.test('a') is true
32 PASS regexp.lastIndex is 0
34 Testing regexp: /(?=a){1}/gm
35 PASS regexp.test('a') is true
36 PASS regexp.lastIndex is 0
38 Testing regexp: /(?!a){0}/gm
39 PASS regexp.test('b') is true
40 PASS regexp.lastIndex is 0
42 Testing regexp: /(?!a){1}/gm
[all …]
/external/strace/tests/
Duid.awk30 regexp = "^getx?uid" suffix "\\(\\)[[:space:]]+= " r_uint "$"
35 regexp == "" {
41 if (match($0, regexp, a)) {
45 regexp = "^setuid" suffix "\\(" uid "\\)[[:space:]]+= 0$"
48regexp = "^getresuid" suffix "\\(\\[" uid "\\], \\[" uid "\\], \\[" uid "\\]\\)[[:space:]]+= 0$"
51 regexp = "^setreuid" suffix "\\(-1, -1\\)[[:space:]]+= 0$"
54 regexp = "^setresuid" suffix "\\(" uid ", -1, -1\\)[[:space:]]+= 0$"
57 regexp = "^fchown" suffix "\\(1, -1, -1\\)[[:space:]]+= 0$"
60 regexp = "^getgroups" suffix "\\(0, NULL\\)[[:space:]]+= " r_uint "$"
70 regexp = "^getgroups" suffix "\\(" ngroups ", \\[" list "\\]\\)[[:space:]]+= " ngroups "$"
[all …]
/external/regex-re2/re2/testing/
Dregexp_benchmark.cc42 const char* regexp = "(\\d+)-(\\d+)-(\\d+)"; in MemoryUsage() local
46 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in MemoryUsage()
69 PCRE re(regexp, PCRE::UTF8); in MemoryUsage()
78 PCRE* re = new PCRE(regexp, PCRE::UTF8); in MemoryUsage()
88 RE2 re(regexp); in MemoryUsage()
105 typedef void SearchImpl(int iters, const char* regexp, const StringPiece& text,
113 typedef void ParseImpl(int iters, const char* regexp, const StringPiece& text);
150 void Search(int iters, int nbytes, const char* regexp, SearchImpl* search) { in Search() argument
156 search(iters, regexp, s, Prog::kUnanchored, false); in Search()
243 string regexp = "^" + s + ".*$"; in SearchBigFixed() local
[all …]
Dpossible_match_test.cc24 const char* regexp; member
109 LOG(INFO) << "Checking regexp=" << CEscape(t.regexp); in TEST()
110 Regexp* re = Regexp::Parse(t.regexp, Regexp::LikePerl, NULL); in TEST()
115 << " " << t.regexp; in TEST()
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen)); in TEST()
121 EXPECT_EQ(t.min, min) << t.regexp; in TEST()
122 EXPECT_EQ(t.max, max) << t.regexp; in TEST()
181 void HandleRegexp(const string& regexp);
194 void PossibleMatchTester::HandleRegexp(const string& regexp) { in HandleRegexp() argument
197 VLOG(3) << CEscape(regexp); in HandleRegexp()
[all …]
Dsimplify_test.cc15 const char* regexp; member
144 VLOG(1) << "Testing " << tests[i].regexp; in TEST()
145 Regexp* re = Regexp::Parse(tests[i].regexp, in TEST()
149 CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text(); in TEST()
154 if (strcmp(tests[i].regexp, tests[i].simplified) == 0) { in TEST()
155 CHECK(re == sre) << " " << tests[i].regexp in TEST()
160 << " " << tests[i].regexp << " " << sre->Dump(); in TEST()
Drequired_prefix_test.cc11 const char* regexp; member
46 Regexp* re = Regexp::Parse(t.regexp, flags, NULL); in TEST()
47 CHECK(re) << " " << t.regexp; in TEST()
52 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf") << " " << re->Dump(); in TEST()
55 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf"); in TEST()
57 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf"); in TEST()
59 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf"); in TEST()
Dexhaustive_tester.cc79 string regexp = const_regexp; in HandleRegexp() local
81 regexp = StringPrintf(topwrapper_.c_str(), regexp.c_str()); in HandleRegexp()
84 printf("\r%s", regexp.c_str()); in HandleRegexp()
100 printf("%s\n", escape(regexp)); in HandleRegexp()
102 RE2 re(regexp); in HandleRegexp()
105 RE2 relongest(regexp, longest); in HandleRegexp()
125 Tester tester(regexp); in HandleRegexp()
Dparse_test.cc17 const char* regexp; member
210 re[i] = Regexp::Parse(tests[i].regexp, f, &status); in TestParse()
211 CHECK(re[i] != NULL) << " " << tests[i].regexp << " " in TestParse()
214 EXPECT_EQ(string(tests[i].parse), s) << "Regexp: " << tests[i].regexp in TestParse()
222 << "Regexp: " << tests[i].regexp << " " << tests[j].regexp; in TestParse()
388 Regexp* re = Regexp::Parse(tests[i].regexp, f, &status); in TEST()
389 CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text(); in TEST()
391 …EXPECT_EQ(string(tests[i].parse), s) << " " << tests[i].regexp << " " << string(tests[i].parse) <<… in TEST()
393 if (t != tests[i].regexp) { in TEST()
408 LOG(INFO) << "ToString(" << tests[i].regexp << ") = " << t; in TEST()
Dcompile_test.cc24 const char* regexp; member
108 Regexp* re = Regexp::Parse(t.regexp, Regexp::PerlX|Regexp::Latin1, NULL); in TEST()
110 LOG(ERROR) << "Cannot parse: " << t.regexp; in TEST()
116 LOG(ERROR) << "Cannot compile: " << t.regexp; in TEST()
124 LOG(ERROR) << "Incorrect compiled code for: " << t.regexp; in TEST()
Dmimics_pcre_test.cc12 const char* regexp; member
66 Regexp* re = Regexp::Parse(t.regexp, flags, NULL); in TEST()
67 CHECK(re) << " " << t.regexp; in TEST()
69 << " " << t.regexp << " " in TEST()
/external/v8/test/mjsunit/es6/
Dregexp-tolength.js9 let regexp = /x/g; variable
11 regexp.lastIndex = -1;
13 assertTrue(regexp.test("axb"));
14 assertEquals(2, regexp.lastIndex);
16 regexp.lastIndex = -1;
18 assertEquals("x", regexp.exec("axb")[0]);
19 assertEquals(2, regexp.lastIndex);
/external/v8/src/js/
Dregexp.js124 function DoRegExpExec(regexp, string, index) { argument
125 return %_RegExpExec(regexp, string, index, RegExpLastMatchInfo);
155 function RegExpExecNoTests(regexp, string, start) { argument
157 var matchInfo = %_RegExpExec(regexp, string, start, RegExpLastMatchInfo);
160 if (REGEXP_STICKY(regexp)) regexp.lastIndex = matchInfo[CAPTURE1];
163 regexp.lastIndex = 0;
246 var regexp = this;
247 var source = REGEXP_SOURCE(regexp);
248 if (regexp.length >= 3 &&
249 %_StringCharCodeAt(regexp, 0) == 46 && // '.'
[all …]
Dmacros.py149 macro REGEXP_GLOBAL(regexp) = (%_RegExpFlags(regexp) & 1);
150 macro REGEXP_IGNORE_CASE(regexp) = (%_RegExpFlags(regexp) & 2);
151 macro REGEXP_MULTILINE(regexp) = (%_RegExpFlags(regexp) & 4);
152 macro REGEXP_STICKY(regexp) = (%_RegExpFlags(regexp) & 8);
153 macro REGEXP_UNICODE(regexp) = (%_RegExpFlags(regexp) & 16);
154 macro REGEXP_SOURCE(regexp) = (%_RegExpSource(regexp));
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/resolver/
DResolverTuple.java24 private final Pattern regexp; field in ResolverTuple
26 public ResolverTuple(Tag tag, Pattern regexp) { in ResolverTuple() argument
28 this.regexp = regexp; in ResolverTuple()
36 return regexp; in getRegexp()
41 return "Tuple tag=" + tag + " regexp=" + regexp; in toString()
DResolver.java76 public void addImplicitResolver(Tag tag, Pattern regexp, String first) { in addImplicitResolver() argument
83 curr.add(new ResolverTuple(tag, regexp)); in addImplicitResolver()
97 curr.add(new ResolverTuple(tag, regexp)); in addImplicitResolver()
113 Pattern regexp = v.getRegexp(); in resolve() local
114 if (regexp.matcher(value).matches()) { in resolve()
122 Pattern regexp = v.getRegexp(); in resolve() local
123 if (regexp.matcher(value).matches()) { in resolve()
/external/libxml2/
DtestAutomata.c38 xmlRegexpPtr regexp = NULL; in testRegexpFile() local
171 regexp = xmlAutomataCompile(am); in testRegexpFile()
174 if (regexp == NULL) { in testRegexpFile()
180 if (regexp == NULL) { in testRegexpFile()
184 exec = xmlRegNewExecCtxt(regexp, NULL, NULL); in testRegexpFile()
198 } else if (regexp != NULL) { in testRegexpFile()
200 exec = xmlRegNewExecCtxt(regexp, NULL, NULL); in testRegexpFile()
209 if (regexp != NULL) in testRegexpFile()
210 xmlRegFreeRegexp(regexp); in testRegexpFile()
225 xmlRegexpPtr regexp; in main() local
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
Dant-apache-regexp.jar ... .tools.ant.BuildException org.apache.regexp.RE reg org.apache.regexp.RESyntaxException ...
/external/v8/test/webkit/
Dregexp-many-brackets.js30 var regexp = ""; variable
32 regexp += "(";
33 regexp += "hello";
35 regexp += ")";
41 var manyBracketsRegExp = new RegExp(regexp);
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/IN/
DNAPTR.py50 regexp, replacement): argument
56 self.regexp = regexp
65 dns.rdata._escapify(self.regexp),
73 regexp = tok.get_string()
78 regexp, replacement)
87 _write_string(file, self.regexp)
129 v = cmp(self.regexp, other.regexp)
/external/v8/src/runtime/
Druntime-regexp.cc470 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithString() argument
475 int capture_count = regexp->CaptureCount(); in StringReplaceGlobalRegExpWithString()
485 if (regexp->TypeTag() == JSRegExp::ATOM && simple_replace) { in StringReplaceGlobalRegExpWithString()
488 isolate, subject, regexp, replacement, last_match_info); in StringReplaceGlobalRegExpWithString()
491 isolate, subject, regexp, replacement, last_match_info); in StringReplaceGlobalRegExpWithString()
495 RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate); in StringReplaceGlobalRegExpWithString()
555 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithEmptyString() argument
560 if (regexp->TypeTag() == JSRegExp::ATOM) { in StringReplaceGlobalRegExpWithEmptyString()
564 isolate, subject, regexp, empty_string, last_match_info); in StringReplaceGlobalRegExpWithEmptyString()
567 isolate, subject, regexp, empty_string, last_match_info); in StringReplaceGlobalRegExpWithEmptyString()
[all …]

1234567891011