/external/chromium_org/v8/test/mjsunit/ |
lazy-load.js | 34 var re = /test/; variable
|
regexp-captures.js | 28 var re = /^(((N({)?)|(R)|(U)|(V)|(B)|(H)|(n((n)|(r)|(v)|(h))?)|(r(r)?)|(v)|(b((n)|(b))?)|(h))|((Y)|(A)|(E)|(o(u)?)|(p(u)?)|(q(u)?)|(s)|(t)|(u)|(w)|(x(u)?)|(y)|(z)|(a((T)|(A)|(L))?)|(c)|(e)|(f(u)?)|(g(u)?)|(i)|(j)|(l)|(m(u)?)))+/; variable 29 var r = new RegExp(re)
|
regexp-compile.js | 30 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"));
|
error-tostring-omit.js | 41 var re = /omitted/; variable 47 assertTrue(re.test(e.message)); 54 assertTrue(re.test(e.message));
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-45469.js | 30 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");
|
regress-58740.js | 30 var re = /.+/g; variable 31 re.exec(""); 32 re.exec("anystring"); 33 re=/.+/g; 34 re.exec(""); 35 assertEquals(0, re.lastIndex);
|
regress-219.js | 39 function assertFlags(re, global, multiline, ignoreCase) { 40 var name = re + " flag: "; 41 (global ? assertTrue : assertFalse)(re.global, name + "g"); 42 (multiline ? assertTrue : assertFalse)(re.multiline, name + "m"); 43 (ignoreCase ? assertTrue : assertFalse)(re.ignoreCase, name + "i"); 46 var re = /a/; variable 47 assertFlags(re, false, false, false) 49 re = /a/gim; 50 assertFlags(re, true, true, true) 52 re = RegExp("a","") 126 var re = \/a\/gmi; variable [all...] |
regress-227.js | 28 var re = /\u23a1|x/; variable 29 var res = re.exec("!"); 32 res = re.exec("!x");
|
regress-254.js | 31 var re = /x/g; variable 33 assertEquals(0, re.lastIndex, "Global, initial lastIndex"); 35 assertTrue(re.test("x"), "Global, test 1"); 36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1"); 37 assertFalse(re.test("x"), "Global, test 2"); 38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2"); 40 assertEquals(["x"], re.exec("x"), "Global, exec 1"); 41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1"); 42 assertEquals(null, re.exec("x"), "Global, exec 2"); 43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2") [all...] |
regress-52801.js | 39 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 = /a/g [all...] |
/external/chromium_org/v8/test/webkit/fast/regex/ |
constructor.js | 26 var re = /abc/; variable 28 shouldBeTrue("re === RegExp(re)"); 29 shouldBeTrue("re !== new RegExp(re)"); 30 shouldThrow("re === RegExp(re,'i')"); 31 shouldThrow("re !== new RegExp(re,'i')");
|
non-capturing-backtracking.js | 28 var re = /(?:a*)a/; variable 29 shouldBe("re.exec('a')", "['a']");
|
alternative-length-miscalculation.js | 28 var re = /b|[^b]/g; variable 29 re.lastIndex = 1; 30 shouldBe("re.exec('a')", "null");
|
/external/v8/test/mjsunit/ |
lazy-load.js | 34 var re = /test/; variable
|
regexp-captures.js | 28 var re = /^(((N({)?)|(R)|(U)|(V)|(B)|(H)|(n((n)|(r)|(v)|(h))?)|(r(r)?)|(v)|(b((n)|(b))?)|(h))|((Y)|(A)|(E)|(o(u)?)|(p(u)?)|(q(u)?)|(s)|(t)|(u)|(w)|(x(u)?)|(y)|(z)|(a((T)|(A)|(L))?)|(c)|(e)|(f(u)?)|(g(u)?)|(i)|(j)|(l)|(m(u)?)))+/; variable 29 var r = new RegExp(re)
|
regexp-compile.js | 30 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"));
|
/external/v8/test/mjsunit/regress/ |
regress-45469.js | 30 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");
|
regress-58740.js | 30 var re = /.+/g; variable 31 re.exec(""); 32 re.exec("anystring"); 33 re=/.+/g; 34 re.exec(""); 35 assertEquals(0, re.lastIndex);
|
regress-219.js | 39 function assertFlags(re, global, multiline, ignoreCase) { 40 var name = re + " flag: "; 41 (global ? assertTrue : assertFalse)(re.global, name + "g"); 42 (multiline ? assertTrue : assertFalse)(re.multiline, name + "m"); 43 (ignoreCase ? assertTrue : assertFalse)(re.ignoreCase, name + "i"); 46 var re = /a/; variable 47 assertFlags(re, false, false, false) 49 re = /a/gim; 50 assertFlags(re, true, true, true) 52 re = RegExp("a","") 126 var re = \/a\/gmi; variable [all...] |
regress-227.js | 28 var re = /\u23a1|x/; variable 29 var res = re.exec("!"); 32 res = re.exec("!x");
|
regress-254.js | 31 var re = /x/g; variable 33 assertEquals(0, re.lastIndex, "Global, initial lastIndex"); 35 assertTrue(re.test("x"), "Global, test 1"); 36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1"); 37 assertFalse(re.test("x"), "Global, test 2"); 38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2"); 40 assertEquals(["x"], re.exec("x"), "Global, exec 1"); 41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1"); 42 assertEquals(null, re.exec("x"), "Global, exec 2"); 43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2") [all...] |
regress-52801.js | 39 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 = /a/g [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
camel_case.py | 5 import re namespace 15 return re.sub('(?!^)([A-Z]+)', r'_\1', obj).lower()
|
/external/chromium_org/v8/test/webkit/ |
regexp-norepeat.js | 28 var re = /^b|^cd/; variable 30 shouldBe('re.test(str)', 'false');
|
/bionic/tests/ |
regex_test.cpp | 24 regex_t re; local 25 ASSERT_EQ(0, regcomp(&re, "ab*c", 0)); 26 ASSERT_EQ(0, regexec(&re, "abbbc", 0, NULL, 0)); 27 ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, NULL, 0)); 30 regerror(REG_NOMATCH, &re, buf, sizeof(buf)); 37 regfree(&re);
|