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

1 2 3 4 5 6 7 8 91011>>

  /external/webkit/Source/WebCore/ForwardingHeaders/runtime/
RegExp.h 3 #include <JavaScriptCore/RegExp.h>
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/
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...]
constructor-001.js 2 * File Name: RegExp/constructor-001.js
9 var SECTION = "RegExp/constructor-001";
11 var TITLE = "new RegExp()";
17 * - verify that [[Class]] property is RegExp
18 * - prototype property should be set to RegExp.prototype
26 RegExp.prototype.getClassProperty = Object.prototype.toString;
27 var re = new RegExp();
30 "new RegExp().__proto__",
31 RegExp.prototype,
36 "RegExp.prototype.getClassProperty = Object.prototype.toString; "
    [all...]
function-001.js 2 * File Name: RegExp/function-001.js
9 var SECTION = "RegExp/function-001";
11 var TITLE = "RegExp( pattern, flags )";
17 * - verify that [[Class]] property is RegExp
18 * - prototype property should be set to RegExp.prototype
26 RegExp.prototype.getClassProperty = Object.prototype.toString;
27 var re = new RegExp();
30 "new RegExp().__proto__",
31 RegExp.prototype,
36 "RegExp.prototype.getClassProperty = Object.prototype.toString; "
    [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-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...]
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...]
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...]
  /external/v8/test/mjsunit/
regexp-static.js 34 // Test that we do not throw exceptions once the static RegExp.input
36 RegExp.input = "a";
40 // Test the (deprecated as of JS 1.5) properties of the RegExp function.
46 assertEquals(s, RegExp.input);
47 assertEquals('123.456', RegExp.lastMatch);
48 assertEquals('456', RegExp.lastParen);
49 assertEquals('abc', RegExp.leftContext);
50 assertEquals('def', RegExp.rightContext);
52 assertEquals(s, RegExp['$_']);
53 assertEquals('123.456', RegExp['$&'])
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/
RegExp_input.js 33 var TITLE = 'RegExp: input';
41 RegExp.input = "abcd12357efg";
43 // RegExp.input = "abcd12357efg"; RegExp.input
44 RegExp.input = "abcd12357efg";
45 testcases[count++] = new TestCase ( SECTION, "RegExp.input = 'abcd12357efg'; RegExp.input",
46 "abcd12357efg", RegExp.input);
48 // RegExp.input = "abcd12357efg"; /\d+/.exec('2345')
49 RegExp.input = "abcd12357efg"
    [all...]
RegExp_input_as_array.js 33 var TITLE = 'RegExp: input';
41 RegExp['$_'] = "abcd12357efg";
43 // RegExp['$_'] = "abcd12357efg"; RegExp['$_']
44 RegExp['$_'] = "abcd12357efg";
45 testcases[count++] = new TestCase ( SECTION, "RegExp['$_'] = 'abcd12357efg'; RegExp['$_']",
46 "abcd12357efg", RegExp['$_']);
48 // RegExp['$_'] = "abcd12357efg"; /\d+/.exec('2345')
49 RegExp['$_'] = "abcd12357efg"
    [all...]
RegExp_lastParen.js 33 var TITLE = 'RegExp: lastParen';
41 // 'abcd'.match(/(abc)d/); RegExp.lastParen
43 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(/(abc)d/); RegExp.lastParen",
44 'abc', RegExp.lastParen);
46 // 'abcd'.match(new RegExp('(abc)d')); RegExp.lastParen
47 'abcd'.match(new RegExp('(abc)d'));
48 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(new RegExp('(abc)d')); RegExp.lastParen",
49 'abc', RegExp.lastParen)
    [all...]
RegExp_lastParen_as_array.js 33 var TITLE = 'RegExp: $+';
41 // 'abcd'.match(/(abc)d/); RegExp['$+']
43 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(/(abc)d/); RegExp['$+']",
44 'abc', RegExp['$+']);
46 // 'abcd'.match(/(bcd)e/); RegExp['$+']
48 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(/(bcd)e/); RegExp['$+']",
49 'abc', RegExp['$+']);
51 // 'abcdefg'.match(/(a(b(c(d)e)f)g)/); RegExp['$+']
53 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(/(a(b(c(d)e)f)g)/); RegExp['$+']",
54 'd', RegExp['$+'])
    [all...]
RegExp_leftContext.js 33 var TITLE = 'RegExp: leftContext';
41 // 'abc123xyz'.match(/123/); RegExp.leftContext
43 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/123/); RegExp.leftContext",
44 'abc', RegExp.leftContext);
46 // 'abc123xyz'.match(/456/); RegExp.leftContext
48 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/456/); RegExp.leftContext",
49 'abc', RegExp.leftContext);
51 // 'abc123xyz'.match(/abc123xyz/); RegExp.leftContext
53 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/abc123xyz/); RegExp.leftContext",
54 '', RegExp.leftContext)
    [all...]
RegExp_leftContext_as_array.js 33 var TITLE = 'RegExp: $`';
41 // 'abc123xyz'.match(/123/); RegExp['$`']
43 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/123/); RegExp['$`']",
44 'abc', RegExp['$`']);
46 // 'abc123xyz'.match(/456/); RegExp['$`']
48 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/456/); RegExp['$`']",
49 'abc', RegExp['$`']);
51 // 'abc123xyz'.match(/abc123xyz/); RegExp['$`']
53 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/abc123xyz/); RegExp['$`']",
54 '', RegExp['$`'])
    [all...]
RegExp_rightContext.js 33 var TITLE = 'RegExp: rightContext';
41 // 'abc123xyz'.match(/123/); RegExp.rightContext
43 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/123/); RegExp.rightContext",
44 'xyz', RegExp.rightContext);
46 // 'abc123xyz'.match(/456/); RegExp.rightContext
48 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/456/); RegExp.rightContext",
49 'xyz', RegExp.rightContext);
51 // 'abc123xyz'.match(/abc123xyz/); RegExp.rightContext
53 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/abc123xyz/); RegExp.rightContext",
54 '', RegExp.rightContext)
    [all...]
RegExp_rightContext_as_array.js 33 var TITLE = 'RegExp: $\'';
41 // 'abc123xyz'.match(/123/); RegExp['$\'']
43 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/123/); RegExp['$\'']",
44 'xyz', RegExp['$\'']);
46 // 'abc123xyz'.match(/456/); RegExp['$\'']
48 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/456/); RegExp['$\'']",
49 'xyz', RegExp['$\'']);
51 // 'abc123xyz'.match(/abc123xyz/); RegExp['$\'']
53 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/abc123xyz/); RegExp['$\'']",
54 '', RegExp['$\''])
    [all...]
RegExp_dollar_number.js 33 var TITLE = 'RegExp: $1, ..., $9';
42 // 'abcdefghi'.match(/(a(b(c(d(e)f)g)h)i)/); RegExp.$1
44 testcases[count++] = new TestCase ( SECTION, "'abcdefghi'.match(/(a(b(c(d(e)f)g)h)i)/); RegExp.$1",
45 'abcdefghi', RegExp.$1);
47 // 'abcdefghi'.match(/(a(b(c(d(e)f)g)h)i)/); RegExp.$2
48 testcases[count++] = new TestCase ( SECTION, "'abcdefghi'.match(/(a(b(c(d(e)f)g)h)i)/); RegExp.$2",
49 'bcdefgh', RegExp.$2);
51 // 'abcdefghi'.match(/(a(b(c(d(e)f)g)h)i)/); RegExp.$3
52 testcases[count++] = new TestCase ( SECTION, "'abcdefghi'.match(/(a(b(c(d(e)f)g)h)i)/); RegExp.$3",
53 'cdefg', RegExp.$3)
    [all...]
interval.js 33 var TITLE = 'RegExp: {}';
41 // 'aaabbbbcccddeeeefffff'.match(new RegExp('b{2}c'))
42 testcases[count++] = new TestCase ( SECTION, "'aaabbbbcccddeeeefffff'.match(new RegExp('b{2}c'))",
43 String(["bbc"]), String('aaabbbbcccddeeeefffff'.match(new RegExp('b{2}c'))));
45 // 'aaabbbbcccddeeeefffff'.match(new RegExp('b{8}'))
46 testcases[count++] = new TestCase ( SECTION, "'aaabbbbcccddeeeefffff'.match(new RegExp('b{8}'))",
47 null, 'aaabbbbcccddeeeefffff'.match(new RegExp('b{8}')));
49 // 'aaabbbbcccddeeeefffff'.match(new RegExp('b{2,}c'))
50 testcases[count++] = new TestCase ( SECTION, "'aaabbbbcccddeeeefffff'.match(new RegExp('b{2,}c'))",
51 String(["bbbbc"]), String('aaabbbbcccddeeeefffff'.match(new RegExp('b{2,}c'))))
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/
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...]
split-003.js 12 * are already tests for regular expressions in the js1_2/regexp folder.
15 * our implementation of RegExp conforms to the ECMA specification, but
22 * String.split where separator is a RegExp are in
23 * js1_2/regexp/string_split.js
29 var TITLE = "String.prototype.split( regexp, [,limit] )";
33 // separartor is a regexp
34 // separator regexp value global setting is set
39 AddSplitCases( "hello", new RegExp, "new RegExp", ["h","e","l","l","o"] );
51 AddSplitCases( "hello", new RegExp, "new RegExp", ["h","e","l","l","o"] )
    [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...]
  /external/chromium/build/mac/
chrome_mac.croc 11 'regexp' : '.*(_|/)(chromeos|linux|win|views)(\\.|_)',
16 'regexp' : '.*/chromeos/',
22 'regexp' : '.*_test_mac\\.',
28 'regexp' : '.*\\.m$',
32 'regexp' : '.*\\.mm$',
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/LexicalConventions/
regexp-literals-002.js 2 * File Name: LexicalConventions/regexp-literals-002.js
9 var SECTION = "LexicalConventions/regexp-literals-002.js";
15 // A regular expression literal represents an object of type RegExp.
18 "// A regular expression literal represents an object of type RegExp.",
20 (/x*/ instanceof RegExp).toString() );

Completed in 514 milliseconds

1 2 3 4 5 6 7 8 91011>>