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

1 2 3 4 5 6 7 8 9

  /external/webkit/Source/WebCore/ForwardingHeaders/runtime/
RegExp.h 3 #include <JavaScriptCore/RegExp.h>
  /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_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_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...]
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...]
character_class.js 33 var TITLE = 'RegExp: []';
41 // 'abcde'.match(new RegExp('ab[ercst]de'))
42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab[ercst]de'))",
43 String(["abcde"]), String('abcde'.match(new RegExp('ab[ercst]de'))));
45 // 'abcde'.match(new RegExp('ab[erst]de'))
46 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab[erst]de'))",
47 null, 'abcde'.match(new RegExp('ab[erst]de')));
49 // 'abcdefghijkl'.match(new RegExp('[d-h]+'))
50 testcases[count++] = new TestCase ( SECTION, "'abcdefghijkl'.match(new RegExp('[d-h]+'))",
51 String(["defgh"]), String('abcdefghijkl'.match(new RegExp('[d-h]+'))))
    [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_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...]
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...]
parentheses.js 33 var TITLE = 'RegExp: ()';
41 // 'abc'.match(new RegExp('(abc)'))
42 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('(abc)'))",
43 String(["abc","abc"]), String('abc'.match(new RegExp('(abc)'))));
45 // 'abcdefg'.match(new RegExp('a(bc)d(ef)g'))
46 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('a(bc)d(ef)g'))",
47 String(["abcdefg","bc","ef"]), String('abcdefg'.match(new RegExp('a(bc)d(ef)g'))));
49 // 'abcdefg'.match(new RegExp('(.{3})(.{4})'))
50 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('(.{3})(.{4})'))",
51 String(["abcdefg","abc","defg"]), String('abcdefg'.match(new RegExp('(.{3})(.{4})'))))
    [all...]
dot.js 33 var TITLE = 'RegExp: .';
41 // 'abcde'.match(new RegExp('ab.de'))
42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab.de'))",
43 String(["abcde"]), String('abcde'.match(new RegExp('ab.de'))));
45 // 'line 1\nline 2'.match(new RegExp('.+'))
46 testcases[count++] = new TestCase ( SECTION, "'line 1\nline 2'.match(new RegExp('.+'))",
47 String(["line 1"]), String('line 1\nline 2'.match(new RegExp('.+'))));
49 // 'this is a test'.match(new RegExp('.*a.*'))
50 testcases[count++] = new TestCase ( SECTION, "'this is a test'.match(new RegExp('.*a.*'))",
51 String(["this is a test"]), String('this is a test'.match(new RegExp('.*a.*'))))
    [all...]
RegExp_lastMatch.js 33 var TITLE = 'RegExp: lastMatch';
41 // 'foo'.match(/foo/); RegExp.lastMatch
43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp.lastMatch",
44 'foo', RegExp.lastMatch);
46 // 'foo'.match(new RegExp('foo')); RegExp.lastMatch
47 'foo'.match(new RegExp('foo'));
48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp.lastMatch",
49 'foo', RegExp.lastMatch)
    [all...]
RegExp_lastMatch_as_array.js 33 var TITLE = 'RegExp: $&';
41 // 'foo'.match(/foo/); RegExp['$&']
43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp['$&']",
44 'foo', RegExp['$&']);
46 // 'foo'.match(new RegExp('foo')); RegExp['$&']
47 'foo'.match(new RegExp('foo'));
48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp['$&']",
49 'foo', RegExp['$&'])
    [all...]
question_mark.js 33 var TITLE = 'RegExp: ?';
41 // 'abcdef'.match(new RegExp('cd?e'))
42 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(new RegExp('cd?e'))",
43 String(["cde"]), String('abcdef'.match(new RegExp('cd?e'))));
45 // 'abcdef'.match(new RegExp('cdx?e'))
46 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(new RegExp('cdx?e'))",
47 String(["cde"]), String('abcdef'.match(new RegExp('cdx?e'))));
49 // 'pqrstuvw'.match(new RegExp('o?pqrst'))
50 testcases[count++] = new TestCase ( SECTION, "'pqrstuvw'.match(new RegExp('o?pqrst'))",
51 String(["pqrst"]), String('pqrstuvw'.match(new RegExp('o?pqrst'))))
    [all...]
asterisk.js 33 var TITLE = 'RegExp: *';
41 // 'abcddddefg'.match(new RegExp('d*'))
42 testcases[count++] = new TestCase ( SECTION, "'abcddddefg'.match(new RegExp('d*'))",
43 String([""]), String('abcddddefg'.match(new RegExp('d*'))));
45 // 'abcddddefg'.match(new RegExp('cd*'))
46 testcases[count++] = new TestCase ( SECTION, "'abcddddefg'.match(new RegExp('cd*'))",
47 String(["cdddd"]), String('abcddddefg'.match(new RegExp('cd*'))));
49 // 'abcdefg'.match(new RegExp('cx*d'))
50 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('cx*d'))",
51 String(["cd"]), String('abcdefg'.match(new RegExp('cx*d'))))
    [all...]
  /external/v8/test/mjsunit/
regexp-static.js 28 // Test the (deprecated as of JS 1.5) properties of the RegExp function.
34 assertEquals(s, RegExp.input);
35 assertEquals('123.456', RegExp.lastMatch);
36 assertEquals('456', RegExp.lastParen);
37 assertEquals('abc', RegExp.leftContext);
38 assertEquals('def', RegExp.rightContext);
40 assertEquals(s, RegExp['$_']);
41 assertEquals('123.456', RegExp['$&']);
42 assertEquals('456', RegExp['$+']);
43 assertEquals('abc', RegExp['$`'])
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/
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...]
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/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() );
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/
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...]
  /external/webkit/Source/JavaScriptCore/runtime/
RegExpCache.h 28 #include "RegExp.h"
41 typedef HashMap<RegExpKey, RefPtr<RegExp> > RegExpCacheMap;
44 PassRefPtr<RegExp> lookupOrCreate(const UString& patternString, RegExpFlags);
45 PassRefPtr<RegExp> create(const UString& patternString, RegExpFlags, RegExpCacheMap::iterator);

Completed in 270 milliseconds

1 2 3 4 5 6 7 8 9