Searched refs:re (Results 1 - 25 of 1222) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/preparser/
H A Dstrict-octal-indirect-regexp.js32 var re = RegExp("Hello\\040World");
33 return re;
H A Dstrict-octal-regexp.js32 var re = /hello\040world/;
33 return re;
/external/v8/test/preparser/
H A Dstrict-octal-indirect-regexp.js32 var re = RegExp("Hello\\040World");
33 return re;
H A Dstrict-octal-regexp.js32 var re = /hello\040world/;
33 return re;
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-58740.js30 var re = /.+/g; variable
31 re.exec("");
32 re.exec("anystring");
33 re=/.+/g;
34 re.exec("");
35 assertEquals(0, re.lastIndex);
H A Dregress-52801.js39 var re = /a/g; variable
45 re.test(str);
46 assertEquals(5, re.lastIndex);
48 re.lastIndex = 0;
49 re.test(str);
50 assertEquals(5, re.lastIndex); // Fails if caching.
52 re.lastIndex = 0;
53 re.test(str);
54 assertEquals(5, re.lastIndex); // Fails if caching.
58 re
[all...]
H A Dregress-227.js28 var re = /\u23a1|x/; variable
29 var res = re.exec("!");
32 res = re.exec("!x");
H A Dregress-2438.js28 function testSideEffects(subject, re) {
31 re.lastIndex = side_effect_object;
32 re.exec(subject);
35 re.lastIndex = side_effect_object;
36 re.test(subject);
39 re.lastIndex = side_effect_object;
40 subject.match(re);
43 re.lastIndex = side_effect_object;
44 subject.replace(re, "");
H A Dregress-45469.js30 var re = /x/g; variable
33 assertEquals(i % 3, re.lastIndex, "preindex" + i);
34 var res = re.exec("xx");
38 re = /x/g;
41 assertEquals(i % 3, re.lastIndex, "testpreindex" + i);
42 var res = re.test("xx");
/external/v8/test/mjsunit/regress/
H A Dregress-58740.js30 var re = /.+/g; variable
31 re.exec("");
32 re.exec("anystring");
33 re=/.+/g;
34 re.exec("");
35 assertEquals(0, re.lastIndex);
H A Dregress-52801.js39 var re = /a/g; variable
45 re.test(str);
46 assertEquals(5, re.lastIndex);
48 re.lastIndex = 0;
49 re.test(str);
50 assertEquals(5, re.lastIndex); // Fails if caching.
52 re.lastIndex = 0;
53 re.test(str);
54 assertEquals(5, re.lastIndex); // Fails if caching.
58 re
[all...]
H A Dregress-227.js28 var re = /\u23a1|x/; variable
29 var res = re.exec("!");
32 res = re.exec("!x");
H A Dregress-45469.js30 var re = /x/g; variable
33 assertEquals(i % 3, re.lastIndex, "preindex" + i);
34 var res = re.exec("xx");
38 re = /x/g;
41 assertEquals(i % 3, re.lastIndex, "testpreindex" + i);
42 var res = re.test("xx");
/external/chromium_org/v8/test/mjsunit/
H A Dregexp-compile.js30 var re = /x/; variable
31 assertEquals("a.yb", "axyb".replace(re, "."));
33 re.compile("y");
34 assertEquals("ax.b", "axyb".replace(re, "."));
36 re.compile("(x)");
38 assertEquals(["x", "x"], re.exec("axyb"));
40 re.compile("(y)");
42 assertEquals(["y", "y"], re.exec("axyb"));
H A Dregexp-lookahead.js35 function testRE(re, input, expected_result) {
36 var testName = re + ".test(" + stringEscape(input) +")";
38 assertTrue(re.test(input), testName);
40 assertFalse(re.test(input), testName);
44 function execRE(re, input, expected_result) {
45 var testName = re + ".exec('" + stringEscape(input) +"')";
46 assertEquals(expected_result, re.exec(input), testName);
51 var re = /^(?=a)/;
52 testRE(re, "a", true);
53 testRE(re, "
[all...]
H A Dregexp.js39 var re = new RegExp(s);
40 assertEquals(s.match(re).length, 1);
41 assertEquals(s.match(re)[0], String.fromCharCode(0));
45 re = /^./gm; // any non-newline character at the beginning of a line
46 var result = s.match(re);
55 re = /.$/gm; // any non-newline character at the end of a line
56 result = s.match(re);
65 re = /^[^]/gm; // *any* character at the beginning of a line
66 result = s.match(re);
76 re
[all...]
/external/v8/test/mjsunit/
H A Dregexp-compile.js30 var re = /x/; variable
31 assertEquals("a.yb", "axyb".replace(re, "."));
33 re.compile("y");
34 assertEquals("ax.b", "axyb".replace(re, "."));
36 re.compile("(x)");
38 assertEquals(["x", "x"], re.exec("axyb"));
40 re.compile("(y)");
42 assertEquals(["y", "y"], re.exec("axyb"));
H A Dregexp-lookahead.js35 function testRE(re, input, expected_result) {
36 var testName = re + ".test(" + stringEscape(input) +")";
38 assertTrue(re.test(input), testName);
40 assertFalse(re.test(input), testName);
44 function execRE(re, input, expected_result) {
45 var testName = re + ".exec('" + stringEscape(input) +"')";
46 assertEquals(expected_result, re.exec(input), testName);
51 var re = /^(?=a)/;
52 testRE(re, "a", true);
53 testRE(re, "
[all...]
/external/chromium_org/v8/test/webkit/
H A Dregexp-compile.js28 re = new RegExp("a", "i");
29 shouldBe("re.toString()", "'/a/i'");
31 re.compile("a");
32 shouldBe("re.multiline", "false");
33 shouldBe("re.ignoreCase", "false");
34 shouldBe("re.global", "false");
35 shouldBe("re.test('A')", "false");
36 shouldBe("re.toString()", "'/a/'");
38 re.compile("b", "g");
39 shouldBe("re
[all...]
/external/chromium_org/v8/test/mjsunit/bugs/
H A Dbug-617.js38 var re = /foo/; variable
40 re.exec = make_sure_we_dont_get_here;
42 re("foo");
/external/v8/test/mjsunit/bugs/
H A Dbug-617.js38 var re = /foo/; variable
40 re.exec = make_sure_we_dont_get_here;
42 re("foo");
/external/chromium_org/v8/test/webkit/fast/regex/
H A Dnon-capturing-backtracking.js28 var re = /(?:a*)a/; variable
29 shouldBe("re.exec('a')", "['a']");
H A Dalternative-length-miscalculation.js28 var re = /b|[^b]/g; variable
29 re.lastIndex = 1;
30 shouldBe("re.exec('a')", "null");
/external/chromium_org/v8/test/webkit/fast/js/
H A Dregexp-lastindex.js28 var re = new RegExp("[^\\s$]+", "g");
31 shouldBe('while (match = re.exec(" abcdefg")) accumulate += match + "; "; accumulate', '"abcdefg; "');
33 var re = new RegExp(/\d/g);
35 shouldBe('while (match = re.exec("123456789")) accumulate += match + "; "; accumulate', '"1; 2; 3; 4; 5; 6; 7; 8; 9; "');
/external/chromium_org/third_party/WebKit/Source/core/scripts/
H A Dlist_idl_files_with_partial_interface.py31 import re namespace
34 partial_interface_regex = re.compile(r'partial\s+interface\s+(\w+).+\]', re.M | re.S)
41 match = re.search(partial_interface_regex, f.read())

Completed in 380 milliseconds

1234567891011>>