Searched defs:re (Results 1 - 25 of 1081) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/
H A Dlazy-load.js34 var re = /test/; variable
H A Dregexp-captures.js28 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)
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-not-sticky-yet.js40 var re = /foo.bar/; variable
41 assertEquals("/foo.bar/", "" + re);
45 re.compile("foo.bar");
46 assertEquals(void 0, re.sticky);
53 assertEquals(void 0, re.sticky);
54 re.sticky = true; // Has no effect on the regexp, just sets a property.
55 assertTrue(re.sticky);
57 assertTrue(re.test("..foo.bar"));
59 re.lastIndex = -1; // Ignored for non-global, non-sticky.
60 assertTrue(re
[all...]
H A Dregexp-static.js29 var re = /((\d+)\.(\d+))/; variable
32 re.exec(s);
61 s.match(re);
80 s.replace(re, 'whocares');
99 re.test(s);
120 re = /(.)/g;
122 assertEquals('abcd', 'abcd'.replace(re, f));
139 var re = new RegExp(re_text);
140 assertTrue(re.test(haystack), "$" + i + " setup");
/external/chromium_org/v8/test/mjsunit/regress/
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");
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-219.js39 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
126 var re = /a/gmi; variable
[all...]
H A Dregress-227.js28 var re = /\u23a1|x/; variable
29 var res = re.exec("!");
32 res = re.exec("!x");
H A Dregress-254.js31 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
[all...]
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-231.js32 var re = /Ggcy\b[^D]*D((?:(?=([^G]+))\2|G(?!gcy\b[^D]*D))*?)GIgcyD/; variable
91 var res = re.test(str);
/external/chromium_org/v8/test/webkit/fast/regex/
H A Dconstructor.js26 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')");
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/tools/telemetry/telemetry/core/
H A Dcamel_case.py5 import re namespace
15 return re.sub('(?!^)([A-Z]+)', r'_\1', obj).lower()
/external/chromium_org/v8/test/webkit/
H A Dregexp-norepeat.js28 var re = /^b|^cd/; variable
30 shouldBe('re.test(str)', 'false');
/external/chromium_org/native_client_sdk/src/tools/lib/
H A Dquote.py6 import re namespace
22 return re.sub(r'(' + r'|'.join(specials)+r'|'+escape + r')',
24 return re.sub(r'(' + escape + r')', escape + r'\1', input_str)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/
H A Drepaint_overlay.py5 import re namespace
10 re.search('"repaintRects": \[$', text, re.MULTILINE) != None or
41 minimum_repaint_match = re.search('Minimum repaint:\n(\[.*\n\])', actual_text, re.DOTALL)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/
H A Dgrammar.py30 import re namespace
35 if re.search("h$", noun):
/external/chromium_org/third_party/skia/tools/
H A Dmisc_utils.py10 import re namespace
32 pattern: (string) to be passed to re.compile
38 pattern_object = re.compile(pattern)
51 pattern: (string) to be passed to re.compile
57 match = re.search(pattern, input_string)
/external/chromium_org/tools/binary_size/
H A Dbinary_size_utils.py9 import re namespace
26 sym_re = re.compile(r'^[0-9a-f]{8,} ' # address (8+ hex digits)
32 addr_re = re.compile(r'^[0-9a-f]{8,} (.) ([^\t]+)(?:\t.*)?$')
34 noaddr_re = re.compile(r'^ {8,} (.) (.*)$')
36 addr_only_re = re.compile(r'^[0-9a-f]{8,} (.)$')
/external/chromium_org/tools/gyp/test/msvs/filters/
H A Dgyptest-filters-2008.py11 import re namespace
16 return re.sub('^ +', '', str, flags=re.M).replace('\n', '')
/external/chromium_org/tools/resources/
H A Dfind_used_resources.py7 import re namespace
34 unknown_pragma_warning_pattern = re.compile(
/external/chromium_org/tools/traceline/traceline/scripts/
H A Dfilter_short.py14 import re namespace
25 print '%s,' % re.sub('([0-9])L\\b', '\\1', str(e))

Completed in 503 milliseconds

1234567891011>>