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

1234567891011>>

/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/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-crbug-548580.js8 var re = /(?=[d#.])/;
9 re.a = v;
10 return 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/
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-stack-overflow.js7 var re = /\w/; variable
8 re.test("a"); // Trigger regexp compile.
14 return re.test("b");
H A Dregexp-not-sticky-yet.js41 var re = /foo.bar/; variable
42 assertEquals("/foo.bar/", "" + re);
46 re.compile("foo.bar");
47 assertEquals(void 0, re.sticky);
54 assertEquals(void 0, re.sticky);
55 re.sticky = true; // Has no effect on the regexp, just sets a property.
56 assertTrue(re.sticky);
58 assertTrue(re.test("..foo.bar"));
60 re.lastIndex = -1; // Ignored for non-global, non-sticky.
61 assertTrue(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...]
H A Dlazy-load.js34 var re = /test/; variable
/external/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/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/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/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/libxml2/python/tests/
H A Dregexp.py7 re = libxml2.regexpCompile("a|b") variable
8 if re.regexpExec("a") != 1:
11 if re.regexpExec("b") != 1:
14 if re.regexpExec("ab") != 0:
17 if re.regexpExec("") != 0:
20 if re.regexpIsDeterminist() != 1:
23 del re
/external/pcre/dist/
H A Dpcre_refcount.c82 REAL_PCRE *re = (REAL_PCRE *)argument_re; local
83 if (re == NULL) return PCRE_ERROR_NULL;
84 if (re->magic_number != MAGIC_NUMBER) return PCRE_ERROR_BADMAGIC;
85 if ((re->flags & PCRE_MODE) == 0) return PCRE_ERROR_BADMODE;
86 re->ref_count = (-adjust > re->ref_count)? 0 :
87 (adjust + re->ref_count > 65535)? 65535 :
88 re->ref_count + adjust;
89 return re->ref_count;
/external/libcxx/test/std/re/re.const/re.matchflag/
H A Dmatch_not_bol.pass.cpp25 std::regex re("^foo");
26 assert( std::regex_match(target, re));
27 assert(!std::regex_match(target, re, std::regex_constants::match_not_bol));
32 std::regex re("foo");
33 assert( std::regex_match(target, re));
34 assert( std::regex_match(target, re, std::regex_constants::match_not_bol));
39 std::regex re("^foo");
40 assert( std::regex_search(target, re));
41 assert(!std::regex_search(target, re, std::regex_constants::match_not_bol));
46 std::regex re("fo
[all...]
H A Dmatch_not_eol.pass.cpp25 std::regex re("foo$");
26 assert( std::regex_match(target, re));
27 assert(!std::regex_match(target, re, std::regex_constants::match_not_eol));
32 std::regex re("foo");
33 assert( std::regex_match(target, re));
34 assert( std::regex_match(target, re, std::regex_constants::match_not_eol));
39 std::regex re("foo$");
40 assert( std::regex_search(target, re));
41 assert(!std::regex_search(target, re, std::regex_constants::match_not_eol));
46 std::regex re("fo
[all...]
/external/regex-re2/re2/testing/
H A Ddump.cc57 static void DumpRegexpAppending(Regexp* re, string* s) { argument
58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) {
59 StringAppendF(s, "op%d", re->op());
61 switch (re->op()) {
68 if (re->parse_flags() & Regexp::NonGreedy)
72 s->append(kOpcodeNames[re->op()]);
73 if (re->op() == kRegexpLiteral && (re->parse_flags() & Regexp::FoldCase)) {
74 Rune r = re
[all...]
/external/antlr/antlr-3.4/runtime/Python/tests/
H A Dt060leftrecursion.py2 import re namespace
23 # def recover(self, input, re):
44 # build_ast = re.search(r'output\s*=\s*AST', grammar)
/external/protobuf/vsprojects/
H A Dconvert2008to2005.sh11 sed -i -re 's/Format Version 10.00/Format Version 9.00/g;
17 sed -i -re 's/Version="9.00"/Version="8.00"/g;' $file

Completed in 599 milliseconds

1234567891011>>