Home
last modified time | relevance | path

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

123456789

/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/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/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/strace/tests/
Duid.awk3 regexp = "^getuid" suffix "\\(\\)[[:space:]]+= " r_uint "$"
8 regexp == "" {
14 if (match($0, regexp, a)) {
18 regexp = "^setuid" suffix "\\(" uid "\\)[[:space:]]+= 0$"
21regexp = "^getresuid" suffix "\\(\\[" uid "\\], \\[" uid "\\], \\[" uid "\\]\\)[[:space:]]+= 0$"
24 regexp = "^setreuid" suffix "\\(-1, -1\\)[[:space:]]+= 0$"
27 regexp = "^setresuid" suffix "\\(" uid ", -1, -1\\)[[:space:]]+= 0$"
30 regexp = "^fchown" suffix "\\(1, -1, -1\\)[[:space:]]+= 0$"
33 regexp = "^getgroups" suffix "\\(0, NULL\\)[[:space:]]+= " r_uint "$"
43 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()
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()
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()
Dsearch_test.cc16 const char* regexp; member
309 if (!TestRegexpOnText(t.regexp, t.text)) in TEST()
316 atom.push_back(StringPiece(t.regexp).as_string()); in TEST()
/external/v8/src/
Dregexp.js113 function DoRegExpExec(regexp, string, index) { argument
114 var result = %_RegExpExec(regexp, string, index, lastMatchInfo);
146 function RegExpExecNoTests(regexp, string, start) { argument
148 var matchInfo = %_RegExpExec(regexp, string, start, lastMatchInfo);
153 regexp.lastIndex = 0;
238 var regexp = this;
239 if (regexp.source.length >= 3 &&
240 %_StringCharCodeAt(regexp.source, 0) == 46 && // '.'
241 %_StringCharCodeAt(regexp.source, 1) == 42 && // '*'
242 %_StringCharCodeAt(regexp.source, 2) != 63) { // '?'
[all …]
Dstring.js141 function StringMatchJS(regexp) { argument
145 if (IS_REGEXP(regexp)) {
148 var lastIndex = regexp.lastIndex;
150 if (!regexp.global) return RegExpExecNoTests(regexp, subject, 0);
152 var result = %StringMatch(subject, regexp, lastMatchInfo);
154 regexp.lastIndex = 0;
158 regexp = new $RegExp(regexp);
159 return RegExpExecNoTests(regexp, subject, 0);
408 function StringReplaceGlobalRegExpWithFunction(subject, regexp, replace) { argument
419 var res = %RegExpExecMultiple(regexp,
[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/libvncserver/x11vnc/
Dtkx11vnc1691 if {[regexp {^Options:} $line]} {
1696 if {[regexp {^These options} $line]} {
1706 if {[regexp {^-([0-9A-z_][0-9A-z_]*)} $line match name]} {
1719 if {[regexp {^no} $name]} {
1773 if {[regexp {^The following -remote/-R commands} $line]} {
1778 if {[regexp {^The vncconnect.*command} $line]} {
1785 if {[regexp {^([0-9A-z_][0-9A-z_:]*)} $line match name]} {
1805 if {[regexp {^no} $popt]} {
1826 if {! $sawans && [regexp {^ *ans=} $line]} {
1833 if {[regexp {^ *aro=} $line]} {
[all …]
/external/v8/test/mjsunit/
Dregexp-call-as-function.js32 var regexp = /a(b)(c)/; variable
35 assertEquals(expected, String(regexp.exec(subject)));
36 assertThrows(function(){ regexp(subject); });
/external/strace/maint/
Dioctls_hex.sh42 regexp='[[:space:]]*#[[:space:]]*define[[:space:]]\+\([A-Z][A-Z0-9_]*\)[[:space:]]\+\(0x'"$type"'..…
45 grep "^$regexp" "$f" "uapi/$f" 2>/dev/null ||:;
48 sed -n 's/^\([^:]*\):'"$regexp"'.*/{ "\1", "\2", 0, \3, 0 },/p' |
/external/lldb/utils/misc/
Dgrep-svn-log.py45 def grep(regexp): argument
72 if regexp.search(line):
80 regexp = re.compile(sys.argv[1])
81 grep(regexp)
/external/google-breakpad/src/tools/mac/upload_system_symbols/
Dupload_system_symbols.go86 blacklistRegexps = []*regexp.Regexp{
87 regexp.MustCompile(`/System/Library/Frameworks/Python\.framework/`),
88 regexp.MustCompile(`/System/Library/Frameworks/Ruby\.framework/`),
89 regexp.MustCompile(`_profile\.dylib$`),
90 regexp.MustCompile(`_debug\.dylib$`),
91 regexp.MustCompile(`\.a$`),
92 regexp.MustCompile(`\.dat$`),

123456789