Home
last modified time | relevance | path

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

12345678910>>...20

/external/chromium_org/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/chromium_org/third_party/icu/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/
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/chromium_org/third_party/icu/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/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/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()
/external/chromium_org/third_party/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()
/external/chromium_org/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 …]
/external/oprofile/libregex/
Dop_regex.cpp26 string op_regerror(int err, regex_t const & regexp) in op_regerror() argument
28 size_t needed_size = regerror(err, &regexp, 0, 0); in op_regerror()
30 regerror(err, &regexp, buffer, needed_size); in op_regerror()
36 void op_regcomp(regex_t & regexp, string const & pattern) in op_regcomp() argument
38 int err = regcomp(&regexp, pattern.c_str(), REG_EXTENDED); in op_regcomp()
40 throw bad_regex("regcomp error: " + op_regerror(err, regexp) in op_regcomp()
53 void op_regfree(regex_t & regexp) in op_regfree() argument
55 regfree(&regexp); in op_regfree()
92 op_regfree(regex_replace[i].regexp); in ~regular_expression_replace()
108 regex_t regexp; in add_pattern() local
[all …]
/external/chromium_org/build/ios/
Dchrome_ios.croc15 'regexp' : '.*',
23 'regexp' : '.*/$',
29 'regexp' : '.*/ios/.*',
36 'regexp' : '.*_ios\\.(c|cc|m|mm)$',
43 'regexp' : '.*_ios_unittest\\.(c|cc|m|mm)$',
51 'regexp' : '.*\\.(h|hpp)$',
57 'regexp' : '.*perftest\\.(c|cc|m|mm)$',
63 'regexp' : '.*\\.m$',
67 'regexp' : '.*\\.mm$',
/external/chromium_org/third_party/sqlite/src/tool/
Dshell4.test57 list [regexp {stats: off} $res]
62 list [regexp {stats: on} $res]
68 list [regexp {stats: on} $res]
73 list [regexp {stats: off} $res]
94 list [regexp {stats: off} $res]
101 list [regexp {stats: on} $res]
108 list [regexp {stats: off} $res]
114 list [regexp {Memory Used} $res] \
115 [regexp {Heap Usage} $res] \
116 [regexp {Autoindex Inserts} $res]
[all …]
/external/smack/src/org/xbill/DNS/
DNAPTRRecord.java19 private byte [] flags, service, regexp; field in NAPTRRecord
44 String flags, String service, String regexp, Name replacement) in NAPTRRecord() argument
52 this.regexp = byteArrayFromString(regexp); in NAPTRRecord()
66 regexp = in.readCountedString(); in rrFromWire()
77 regexp = byteArrayFromString(st.getString()); in rdataFromString()
97 sb.append(byteArrayToString(regexp, true)); in rrToString()
130 return byteArrayToString(regexp, false); in getRegexp()
145 out.writeCountedString(regexp); in rrToWire()
/external/chromium_org/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_org/third_party/libxml/src/
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/chromium_org/build/
Dcommon.croc23 'regexp' : '.*\\.(h|hpp)$',
29 'regexp' : '',
33 'regexp' : '.*_(test|unittest|uitest|browsertest)\\.',
39 'regexp' : '.*\\.(c|h)$',
43 'regexp' : '.*\\.(cc|cpp|hpp)$',
50 …'regexp' : '^CHROMIUM/(base|media|net|printing|remoting|chrome|content|webkit/glue|native_client)/…
55 'regexp' : '.*/(\\.svn|\\.hg)/',
60 'regexp' : '.*/(Debug|Release|out|xcodebuild)/',
65 'regexp' : '.*/third_party/',
70 'regexp' : '.*/v8/',
/external/chromium_org/build/mac/
Dchrome_mac.croc11 'regexp' : '.*(_|/)(chromeos|linux|win|views)(\\.|_)',
16 'regexp' : '.*/chromeos/',
22 'regexp' : '.*_test_mac\\.',
28 'regexp' : '.*\\.m$',
32 'regexp' : '.*\\.mm$',

12345678910>>...20