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

1 2 3 4 5 6 7

  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/
match-004.js 11 * String.match( regexp )
13 * If regexp is not an object of type RegExp, it is replaced with result
14 * of the expression new RegExp(regexp). Let string denote the result of
15 * converting the this value to a string. If regexp.global is false,
16 * return the result obtained by invoking RegExp.prototype.exec (see
17 * section 15.7.5.3) on regexp with string as parameter.
19 * Otherwise, set the regexp.lastIndex property to 0 and invoke
20 * RegExp.prototype.exec repeatedly until there is no match. If there is
    [all...]
match-002.js 11 * String.match( regexp )
13 * If regexp is not an object of type RegExp, it is replaced with result
14 * of the expression new RegExp(regexp). Let string denote the result of
15 * converting the this value to a string. If regexp.global is false,
16 * return the result obtained by invoking RegExp.prototype.exec (see
17 * section 15.7.5.3) on regexp with string as parameter.
19 * Otherwise, set the regexp.lastIndex property to 0 and invoke
20 * RegExp.prototype.exec repeatedly until there is no match. If there is
    [all...]
match-001.js 11 * String.match( regexp )
13 * If regexp is not an object of type RegExp, it is replaced with result
14 * of the expression new RegExp(regexp). Let string denote the result of
15 * converting the this value to a string. If regexp.global is false,
16 * return the result obtained by invoking RegExp.prototype.exec (see
17 * section 15.7.5.3) on regexp with string as parameter.
19 * Otherwise, set the regexp.lastIndex property to 0 and invoke
20 * RegExp.prototype.exec repeatedly until there is no match. If there is
    [all...]
match-003.js 11 * String.match( regexp )
13 * If regexp is not an object of type RegExp, it is replaced with result
14 * of the expression new RegExp(regexp). Let string denote the result of
15 * converting the this value to a string. If regexp.global is false,
16 * return the result obtained by invoking RegExp.prototype.exec (see
17 * section 15.7.5.3) on regexp with string as parameter.
19 * Otherwise, set the regexp.lastIndex property to 0 and invoke
20 * RegExp.prototype.exec repeatedly until there is no match. If there is
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/
octal-001.js 2 * File Name: RegExp/octal-001.js
9 var SECTION = "RegExp/octal-001.js";
11 var TITLE = "RegExp patterns that contain OctalEscapeSequences";
29 regexp, str_regexp, pattern, str_pattern, index, matches_array ) {
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 )
    [all...]
octal-002.js 2 * File Name: RegExp/octal-002.js
9 var SECTION = "RegExp/octal-002.js";
11 var TITLE = "RegExp patterns that contain OctalEscapeSequences";
44 regexp, str_regexp, pattern, str_pattern, index, matches_array ) {
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 )
    [all...]
regress-001.js 2 * File Name: RegExp/regress-001.js
5 * JS regexp anchoring on empty match bug
11 var SECTION = "RegExp/hex-001.js";
13 var TITLE = "JS regexp anchoring on empty match bug";
25 function AddRegExpCases( regexp, str_regexp, length, matches_array ) {
29 regexp.length,
30 regexp.length );
37 regexp[matches] );
exec-002.js 2 * File Name: RegExp/exec-002.js
11 var SECTION = "RegExp/exec-002";
13 var TITLE = "RegExp.prototype.exec(string)";
139 regexp, pattern, index, matches_array ) {
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"
    [all...]
multiline-001.js 2 * File Name: RegExp/multiline-001.js
9 var SECTION = "RegExp/multiline-001";
11 var TITLE = "RegExp: multiline flag";
27 ( regexp, pattern, index, matches_array ) {
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"
    [all...]
octal-003.js 2 * File Name: RegExp/octal-003.js
12 * WHY: the original test expected the regexp /.\011/
17 * regexp should be parsed as a single token: it is the octal escape sequence
20 * So the regexp consists of 2 characters: <any-character>, <'\t'>.
21 * There is no match between the regexp and the string.
23 * See the testcase ecma_3/RegExp/octal-002.js for an elaboration.
26 var SECTION = "RegExp/octal-003.js";
28 var TITLE = "RegExp patterns that contain OctalEscapeSequences";
38 regexp, str_regexp, pattern, str_pattern, index, matches_array ) {
42 if ( regexp.exec(pattern) == null || matches_array == null )
    [all...]
unicode-001.js 2 * File Name: RegExp/unicode-001.js
5 * Positive test cases for constructing a RegExp object
9 var SECTION = "RegExp/unicode-001.js";
11 var TITLE = "new RegExp( pattern, flags )";
30 regexp, str_regexp, pattern, str_pattern, length, index, matches_array ) {
35 regexp.exec(pattern).length );
40 regexp.exec(pattern).index );
45 regexp.exec(pattern).input );
51 regexp.exec(pattern)[matches] );
hex-001.js 2 * File Name: RegExp/hex-001.js
5 * Positive test cases for constructing a RegExp object
9 var SECTION = "RegExp/hex-001";
11 var TITLE = "RegExp patterns that contain HexicdecimalEscapeSequences";
17 AddRegExpCases( new RegExp("\x41"), "new RegExp('\\x41')", "A", "A", 1, 0, ["A"] );
18 AddRegExpCases( new RegExp("\x412"),"new RegExp('\\x412')", "A2", "A2", 1, 0, ["A2"] );
19 AddRegExpCases( new RegExp("\x1g"), "new RegExp('\\x1g')", "x1g","x1g", 1, 0, ["x1g"] )
    [all...]
  /external/icu4c/i18n/unicode/
uregex.h 205 * @param regexp The regular expression to be closed.
209 uregex_close(URegularExpression *regexp);
243 * @param regexp The compiled regular expression to be cloned.
249 uregex_clone(const URegularExpression *regexp, UErrorCode *status);
255 * @param regexp The compiled regular expression.
269 uregex_pattern(const URegularExpression *regexp,
277 * @param regexp The compiled regular expression.
285 uregex_patternUText(const URegularExpression *regexp,
291 * @param regexp The compiled regular expression.
297 uregex_flags(const URegularExpression *regexp,
    [all...]
  /external/regex-re2/re2/testing/
mimics_pcre_test.cc 7 #include "re2/regexp.h"
12 const char* regexp; member in struct:re2::PCRETest
63 Regexp::ParseFlags flags = Regexp::LikePerl;
65 flags = flags | Regexp::Latin1;
66 Regexp* re = Regexp::Parse(t.regexp, flags, NULL);
67 CHECK(re) << " " << t.regexp;
69 << " " << t.regexp << " "
    [all...]
required_prefix_test.cc 6 #include "re2/regexp.h"
11 const char* regexp; member in struct:re2::PrefixTest
19 // If the regexp is missing a ^, there's no required prefix.
24 // If the regexp immediately goes into
43 Regexp::ParseFlags flags = Regexp::LikePerl;
45 flags = flags | Regexp::Latin1;
46 Regexp* re = Regexp::Parse(t.regexp, flags, NULL)
    [all...]
simplify_test.cc 10 #include "re2/regexp.h"
15 const char* regexp; member in struct:re2::Test
144 VLOG(1) << "Testing " << tests[i].regexp;
145 Regexp* re = Regexp::Parse(tests[i].regexp,
146 Regexp::MatchNL | (Regexp::LikePerl &
147 ~Regexp::OneLine),
149 CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text()
    [all...]
search_test.cc 9 #include "re2/regexp.h"
16 const char* regexp; member in struct:re2::RegexpTest
305 TEST(Regexp, SearchTests) {
309 if (!TestRegexpOnText(t.regexp, t.text))
316 atom.push_back(StringPiece(t.regexp).as_string());
possible_match_test.cc 9 #include "re2/regexp.h"
24 const char* regexp; member in struct:re2::PrefixTest
109 LOG(INFO) << "Checking regexp=" << CEscape(t.regexp);
110 Regexp* re = Regexp::Parse(t.regexp, Regexp::LikePerl, NULL);
115 << " " << t.regexp;
119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen))
    [all...]
regexp_benchmark.cc 10 #include "re2/regexp.h"
24 Regexp* re = Regexp::Parse("(\\d+)-(\\d+)-(\\d+)", Regexp::LikePerl, NULL);
42 const char* regexp = "(\\d+)-(\\d+)-(\\d+)"; local
46 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
50 fprintf(stderr, "Regexp: %7lld bytes (peak=%lld)\n", mc.HeapGrowth(), mc.PeakHeapGrowth())
243 string regexp = "^" + s + ".*$"; local
    [all...]
  /external/icu4c/i18n/
uregex.cpp 324 RegularExpression *regexp = (RegularExpression*)regexp2; local
326 if (validateRE(regexp, FALSE, status) == FALSE) {
330 *patLength = regexp->fPatStringLen;
332 return regexp->fPatString;
344 RegularExpression *regexp = (RegularExpression*)regexp2; local
345 return regexp->fPat->patternText(*status);
356 RegularExpression *regexp = (RegularExpression*)regexp2; local
357 if (validateRE(regexp, FALSE, status) == FALSE) {
360 int32_t flags = regexp->fPat->flags();
375 RegularExpression *regexp = (RegularExpression*)regexp2 local
408 RegularExpression *regexp = (RegularExpression*)regexp2; local
438 RegularExpression *regexp = (RegularExpression*)regexp2; local
478 RegularExpression *regexp = (RegularExpression*)regexp2; local
495 RegularExpression *regexp = (RegularExpression*)regexp2; local
519 RegularExpression *regexp = (RegularExpression*)regexp2; local
549 RegularExpression *regexp = (RegularExpression*)regexp2; local
580 RegularExpression *regexp = (RegularExpression*)regexp2; local
603 RegularExpression *regexp = (RegularExpression*)regexp2; local
619 RegularExpression *regexp = (RegularExpression*)regexp2; local
639 RegularExpression *regexp = (RegularExpression*)regexp2; local
702 RegularExpression *regexp = (RegularExpression*)regexp2; local
721 RegularExpression *regexp = (RegularExpression*)regexp2; local
770 RegularExpression *regexp = (RegularExpression*)regexp2; local
794 RegularExpression *regexp = (RegularExpression*)regexp2; local
818 RegularExpression *regexp = (RegularExpression*)regexp2; local
844 RegularExpression *regexp = (RegularExpression*)regexp2; local
863 RegularExpression *regexp = (RegularExpression*)regexp2; local
884 RegularExpression *regexp = (RegularExpression*)regexp2; local
906 RegularExpression *regexp = (RegularExpression*)regexp2; local
922 RegularExpression *regexp = (RegularExpression*)regexp2; local
939 RegularExpression *regexp = (RegularExpression*)regexp2; local
955 RegularExpression *regexp = (RegularExpression*)regexp2; local
972 RegularExpression *regexp = (RegularExpression*)regexp2; local
988 RegularExpression *regexp = (RegularExpression*)regexp2; local
1004 RegularExpression *regexp = (RegularExpression*)regexp2; local
1021 RegularExpression *regexp = (RegularExpression*)regexp2; local
1038 RegularExpression *regexp = (RegularExpression*)regexp2; local
1056 RegularExpression *regexp = (RegularExpression*)regexp2; local
1073 RegularExpression *regexp = (RegularExpression*)regexp2; local
1091 RegularExpression *regexp = (RegularExpression*)regexp2; local
1108 RegularExpression *regexp = (RegularExpression*)regexp2; local
1125 RegularExpression *regexp = (RegularExpression*)regexp2; local
1142 RegularExpression *regexp = (RegularExpression*)regexp2; local
1161 RegularExpression *regexp = (RegularExpression*)regexp2; local
1209 RegularExpression *regexp = (RegularExpression*)regexp2; local
1235 RegularExpression *regexp = (RegularExpression*)regexp2; local
1270 RegularExpression *regexp = (RegularExpression*)regexp2; local
1562 RegularExpression *regexp = (RegularExpression*)regexp2; local
1575 RegularExpression *regexp = (RegularExpression*)regexp2; local
1715 RegularExpression *regexp = (RegularExpression*)regexp2; local
1727 RegularExpression *regexp = (RegularExpression*)regexp2; local
1918 RegularExpression *regexp = (RegularExpression*)regexp2; local
1942 RegularExpression *regexp = (RegularExpression*)regexp2; local
    [all...]
  /external/libvpx/libvpx/examples/
gen_example_doxy.php 45 $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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
ant-apache-regexp.jar 
  /external/smack/src/org/xbill/DNS/
NAPTRRecord.java 19 private byte [] flags, service, regexp; field in class:NAPTRRecord
37 * @param regexp The regular/substitution expression.
44 String flags, String service, String regexp, Name replacement)
52 this.regexp = byteArrayFromString(regexp);
66 regexp = in.readCountedString();
77 regexp = byteArrayFromString(st.getString());
97 sb.append(byteArrayToString(regexp, true));
127 /** Returns regexp */
130 return byteArrayToString(regexp, false)
    [all...]
  /external/libvpx/libvpx/examples/includes/
vp8_doc_tools.php 145 $regexp = '|' . $open . '(.*?)' . $close . '|si'; variable
146 echo $regexp . "\n\n";
148 while (preg_match($regexp, $blob, $matches))
157 $blob = preg_replace($regexp, $blob_new, $blob, 1);
182 $regexp = '/~{3,}/'; variable
184 while (preg_match($regexp, $page_body))
188 $regexp = '/:\s*~{3,}\s*\n/'; variable
189 $page_body = preg_replace($regexp, ': <pre><code>', $page_body, 1);
194 $regexp = '/\n\s*~{3,}/'; variable
195 $page_body = preg_replace($regexp, '</code></pre>', $page_body, 1)
201 $regexp = '\/\\n\\s*~{3,}\/'; variable
    [all...]
  /external/oprofile/libregex/
op_regex.cpp 26 string op_regerror(int err, regex_t const & regexp)
28 size_t needed_size = regerror(err, &regexp, 0, 0);
30 regerror(err, &regexp, buffer, needed_size);
36 void op_regcomp(regex_t & regexp, string const & pattern)
38 int err = regcomp(&regexp, pattern.c_str(), REG_EXTENDED);
40 throw bad_regex("regcomp error: " + op_regerror(err, regexp)
53 void op_regfree(regex_t & regexp)
55 regfree(&regexp);
92 op_regfree(regex_replace[i].regexp);
108 regex_t regexp; local
    [all...]

Completed in 495 milliseconds

1 2 3 4 5 6 7