Home
last modified time | relevance | path

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

12345678

/external/icu4c/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/icu4c/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/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/
Dmatch-004.js98 regexp, str_regexp, string, str_string, index, matches_array ) { argument
102 if ( regexp.exec(string) == null || matches_array == null ) {
104 string + ".match(" + regexp +")",
106 string.match(regexp) );
114 string.match(regexp).length );
119 string.match(regexp).index );
124 string.match(regexp).input );
126 var limit = matches_array.length > string.match(regexp).length ?
128 string.match(regexp).length;
134 string.match(regexp)[matches] );
[all …]
Dmatch-002.js99 regexp, str_regexp, string, index, matches_array ) { argument
103 if ( regexp.exec(string) == null || matches_array == null ) {
105 string + ".match(" + regexp +")",
107 string.match(regexp) );
115 string.match(regexp).length );
120 string.match(regexp).index );
125 string.match(regexp).input );
127 var limit = matches_array.length > string.match(regexp).length ?
129 string.match(regexp).length;
135 string.match(regexp)[matches] );
[all …]
Dmatch-001.js61 regexp, str_regexp, string, length, index, matches_array ) { argument
66 string.match(regexp).length );
71 string.match(regexp).index );
76 string.match(regexp).input );
82 string.match(regexp)[matches] );
87 regexp, str_regexp, string, length, matches_array ) { argument
92 string.match(regexp).length );
98 string.match(regexp)[matches] );
Dmatch-003.js98 regexp, str_regexp, string, matches_array ) { argument
102 if ( string.match(regexp) == null || matches_array == null ) {
106 string.match(regexp) );
114 string.match(regexp).length );
116 var limit = matches_array.length > string.match(regexp).length ?
118 string.match(regexp).length;
124 string.match(regexp)[matches] );
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/
Dmultiline-001.js27 ( regexp, pattern, index, matches_array ) { argument
31 if ( regexp.exec(pattern) == null || matches_array == null ) {
33 regexp + ".exec(" + pattern +")",
35 regexp.exec(pattern) );
41 regexp.toString() + ".exec(" + pattern +").length",
43 regexp.exec(pattern).length );
46 regexp.toString() + ".exec(" + pattern +").index",
48 regexp.exec(pattern).index );
51 regexp + ".exec(" + pattern +").input",
53 regexp.exec(pattern).input );
[all …]
Dexec-002.js139 regexp, pattern, index, matches_array ) { argument
143 if ( regexp.exec(pattern) == null || matches_array == null ) {
145 regexp + ".exec(" + pattern +")",
147 regexp.exec(pattern) );
152 regexp + ".exec(" + pattern +").length",
154 regexp.exec(pattern).length );
157 regexp + ".exec(" + pattern +").index",
159 regexp.exec(pattern).index );
162 regexp + ".exec(" + pattern +").input",
164 regexp.exec(pattern).input );
[all …]
Doctal-003.js38 regexp, str_regexp, pattern, str_pattern, index, matches_array ) { argument
42 if ( regexp.exec(pattern) == null || matches_array == null ) {
44 regexp + ".exec(" + str_pattern +")",
46 regexp.exec(pattern) );
53 regexp.exec(pattern).length );
58 regexp.exec(pattern).index );
63 escape(regexp.exec(pattern).input) );
68 escape(regexp.exec(pattern).toString()) );
70 var limit = matches_array.length > regexp.exec(pattern).length
72 : regexp.exec(pattern).length;
[all …]
Doctal-001.js29 regexp, str_regexp, pattern, str_pattern, index, matches_array ) { argument
33 if ( regexp.exec(pattern) == null || matches_array == null ) {
35 regexp + ".exec(" + str_pattern +")",
37 regexp.exec(pattern) );
44 regexp.exec(pattern).length );
49 regexp.exec(pattern).index );
54 regexp.exec(pattern).input );
59 regexp.exec(pattern).toString() );
Doctal-002.js44 regexp, str_regexp, pattern, str_pattern, index, matches_array ) { argument
48 if ( regexp.exec(pattern) == null || matches_array == null ) {
50 regexp + ".exec(" + str_pattern +")",
52 regexp.exec(pattern) );
59 regexp.exec(pattern).length );
64 regexp.exec(pattern).index );
69 regexp.exec(pattern).input );
74 regexp.exec(pattern).toString() );
Dhex-001.js29 regexp, str_regexp, pattern, str_pattern, length, index, matches_array ) { argument
33 if ( regexp.exec(pattern) == null || matches_array == null ) {
37 regexp.exec(pattern) );
45 regexp.exec(pattern).length );
50 regexp.exec(pattern).index );
55 regexp.exec(pattern).input );
61 regexp.exec(pattern)[matches] );
Dunicode-001.js30 regexp, str_regexp, pattern, str_pattern, length, index, matches_array ) { argument
35 regexp.exec(pattern).length );
40 regexp.exec(pattern).index );
45 regexp.exec(pattern).input );
51 regexp.exec(pattern)[matches] );
Dregress-001.js25 function AddRegExpCases( regexp, str_regexp, length, matches_array ) { argument
29 regexp.length,
30 regexp.length );
37 regexp[matches] );
/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()
/external/v8/src/
Dregexp.js123 function DoRegExpExec(regexp, string, index) { argument
124 var result = %_RegExpExec(regexp, string, index, lastMatchInfo);
160 function RegExpExecNoTests(regexp, string, start) { argument
162 var matchInfo = %_RegExpExec(regexp, string, start, lastMatchInfo);
253 var regexp = this;
254 if (%_StringCharCodeAt(regexp.source, 0) == 46 && // '.'
255 %_StringCharCodeAt(regexp.source, 1) == 42 && // '*'
256 %_StringCharCodeAt(regexp.source, 2) != 63) { // '?'
257 regexp = TrimRegExp(regexp);
259 %_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [regexp, string, lastIndex]);
[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/libvpx/libvpx/examples/
Dgen_example_doxy.php45 $regexp = '/\[\[(.*?)\]\]/'; // Double square bracket delimiters variable
46 $page_body = preg_replace_callback($regexp, 'ASCIIMathPHPCallback', $page_body);
60 $regexp = '|<pre><code>(.*?)<\/code><\/pre>|si'; variable
61 while (preg_match($regexp, $page_body, $matches) > 0)
64 $page_body = preg_replace($regexp, $tmp_token, $page_body, 1);
73 $regexp = '|<div class="codeblock">(.*?)<\/div>|si'; variable
76 while (preg_match($regexp, $page_body, $matches))
85 $page_body = preg_replace($regexp, $block_new, $page_body, 1);
/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/build/
Dcommon.croc23 'regexp' : '.*\\.(h|hpp)$',
29 'regexp' : '',
33 'regexp' : '.*_(test|unittest)\\.',
39 'regexp' : '.*\\.(c|h)$',
43 'regexp' : '.*\\.(cc|cpp|hpp)$',
50 'regexp' : '^CHROMIUM/(base|media|net|printing|remoting|chrome|webkit/glue|native_client)/',
55 'regexp' : '.*/(\\.svn|\\.hg)/',
60 'regexp' : '.*/(Debug|Release|sconsbuild|out|xcodebuild)/',
65 'regexp' : '.*/third_party/',
70 'regexp' : '.*/v8/',
/external/chromium/build/mac/
Dchrome_mac.croc11 'regexp' : '.*(_|/)(chromeos|linux|win|views)(\\.|_)',
16 'regexp' : '.*/chromeos/',
22 'regexp' : '.*_test_mac\\.',
28 'regexp' : '.*\\.m$',
32 'regexp' : '.*\\.mm$',

12345678