/external/webkit/Source/WebCore/ForwardingHeaders/runtime/ |
RegExp.h | 3 #include <JavaScriptCore/RegExp.h>
|
/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/ |
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/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...] |
/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...] |
/cts/tests/tests/webkitsecurity/assets/ |
regexp-extended-characters-crash.js | 7 shouldBe('new RegExp("[\u00c0-\u1f4d]").toString()', '/[\u00c0-\u1f4d]/.toString()'); 8 shouldBe('new RegExp("[\u3041-\u3094]").toString()', '/[\u3041-\u3094]/.toString()'); 9 shouldBe('new RegExp("[\u4d00-\u4db5]").toString()', '/[\u4d00-\u4db5]/.toString()'); 10 shouldBe('new RegExp("[\u4e00-\u9fa5]").toString()', '/[\u4e00-\u9fa5]/.toString()'); 13 shouldBe('new RegExp("[\u0001-\u1f4d]").toString()', '/[\u0001-\u1f4d]/.toString()');
|
/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() );
|