/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/ |
re.h | 80 typedef struct RegExp { 88 struct RegExp *exp; 89 struct RegExp *ctx; 97 struct RegExp *exp1, *exp2; 100 struct RegExp *exp; 103 struct RegExp *exp; 108 } RegExp; 110 static RegExp * 111 RegExp_isA(RegExp *r, RegExpType t) 116 void RegExp_split(RegExp*, CharSet*) [all...] |
parser.c | 10 static RegExp *parse_expr(void); 11 static RegExp *parse_diff(void); 12 static RegExp *parse_term(void); 13 static RegExp *parse_factor(void); 14 static RegExp *parse_primary(void); 17 static RegExp *spec; 40 RegExp *re, *look; 56 Scanner_fatal(in, "missing `;' after regexp"); 77 Scanner_fatal(in, "missing code after regexp"); 85 static RegExp * [all...] |
parser.h | 25 RegExp *regexp; member in union:__anon88
|
parse.h | 11 RegExp *re;
|
actions.c | 58 AltOp_fixedLength(RegExp *r) 69 CatOp_fixedLength(RegExp *r) 79 RegExp_fixedLength(RegExp *r) 97 RegExp_calcSize(RegExp *re, Char *rep) 147 MatchOp_compile(RegExp *re, Char *rep, Ins *i) 170 AltOp_compile(RegExp *re, Char *rep, Ins *i){ 183 RegExp_compile(RegExp *re, Char *rep, Ins *i) 241 MatchOp_split(RegExp *re, CharSet *s) 273 RegExp_split(RegExp *re, CharSet *s) 301 RegExp_display(RegExp *re, FILE *o [all...] |
/external/chromium_org/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...] |
regexp-capture-3.js | 30 assertEquals("abcd", RegExp.input); 31 assertEquals("a", RegExp.leftContext); 32 assertEquals("b", RegExp.lastMatch); 33 assertEquals("", RegExp.lastParen); 34 assertEquals(undefined, RegExp.lastIndex); 35 assertEquals(undefined, RegExp.index); 36 assertEquals("cd", RegExp.rightContext); 38 assertEquals("", RegExp['$' + i]); 46 assertEquals("abcdabcd", RegExp.input); 47 assertEquals("abcda", RegExp.leftContext) [all...] |
string-match.js | 33 function testMatch(name, input, regexp, result, captures, from, to) { 34 var matchResult = input.match(regexp); 42 if (regexp.global) { 55 assertEquals(match, RegExp["$&"], name + "-$&"); 56 assertEquals(match, RegExp.lastMatch, name + "-lastMatch"); 58 assertEquals(undefined, RegExp.$0, name + "-nocapture-10"); 61 assertEquals(captures[i - 1], RegExp["$" + i], name + "-capture-" + i); 63 assertEquals("", RegExp["$" + i], name + "-nocapture-" + i); 66 assertEquals(undefined, RegExp.$10, name + "-nocapture-10"); 68 assertEquals(input, RegExp.input, name + "-input") [all...] |
regexp-multiline.js | 29 * @fileoverview Check that various regexp constructs work as intended. 83 var a = new RegExp("^" + lc + "$"); 85 a = new RegExp("^" + lc + "$", "i"); 88 var A = new RegExp("^" + uc + "$"); 90 A = new RegExp("^" + uc + "$", "i"); 93 a = new RegExp("^[" + lc + "]$"); 95 a = new RegExp("^[" + lc + "]$", "i"); 98 A = new RegExp("^[" + uc + "]$"); 100 A = new RegExp("^[" + uc + "]$", "i"); 112 assertThrows("a = new RegExp('[z-a]');") [all...] |
cyrillic.js | 60 return new RegExp("[" + from + "-" + to + "]", flags); 143 assertFalse(new RegExp(regex).test(sigma), 31 + name); 144 assertFalse(new RegExp(regex).test(alternative_sigma), 32 + name); 145 assertTrue(new RegExp(regex).test(SIGMA), 33 + name); 147 assertTrue(new RegExp(regex, "i").test(sigma), 34 + name); 149 assertTrue(new RegExp(regex, "i").test(alternative_sigma), 35 + name); 150 assertTrue(new RegExp(regex, "i").test(SIGMA), 36 + name); 154 assertTrue(new RegExp(regex).test(sigma), 41 + name); 155 assertFalse(new RegExp(regex).test(alternative_sigma), 42 + name); 156 assertFalse(new RegExp(regex).test(SIGMA), 43 + name) [all...] |
regexp-string-methods.js | 28 // Regexp shouldn't use String.prototype.slice() 35 // Regexp shouldn't use String.prototype.charAt() 36 var f1 = new RegExp("f", "i"); 41 var f2 = new RegExp("[g]", "i"); 47 // We match other browsers in using the original value of RegExp.prototype.exec. 48 // I.e., RegExp.prototype.test shouldn't use the current value of 49 // RegExp.prototype.exec. 50 RegExp.prototype.exec = function(string) { return 'x'; };
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
regexp_cache.h | 17 // RegExpCache is a simple wrapper around hash_map<> to store RegExp objects. 19 // To get a cached RegExp object for a regexp pattern string, call the 21 // a RegExp object corresponding to the pattern string doesn't already exist, it 25 // const RegExp& regexp = cache.GetRegExp("\d"); 49 class RegExp; 54 typedef std::tr1::unordered_map<string, const RegExp*> CacheImpl; 56 typedef std::map<string, const RegExp*> CacheImpl; 64 const RegExp& GetRegExp(const string& pattern) [all...] |
regexp_adapter_icu.h | 27 // ICU regexp factory that lets the user instantiate the underlying 28 // implementation of RegExp and RegExpInput classes based on the ICU regexp 35 virtual RegExp* CreateRegExp(const string& utf8_regexp) const;
|
regexp_adapter_re2.h | 27 // RE2 regexp factory that lets the user instantiate the underlying 28 // implementation of RegExp and RegExpInput classes based on RE2. 34 virtual RegExp* CreateRegExp(const string& utf8_regexp) const;
|
regexp_cache.cc | 49 const RegExp& RegExpCache::GetRegExp(const string& pattern) { 54 const RegExp* regexp = regexp_factory_.CreateRegExp(pattern); local 55 cache_impl_->insert(make_pair(pattern, regexp)); 56 return *regexp;
|
regexp_adapter.h | 18 // RegExp adapter to allow a pluggable regexp engine. It has been introduced 37 // Consume() method of RegExp which may differ depending on its various 50 class RegExp { 52 virtual ~RegExp() {} 151 // implementing RegExp and RegExpInput. 160 // Creates a new instance of RegExp. The deletion of the returned instance is 162 virtual RegExp* CreateRegExp(const string& utf8_regexp) const = 0;
|
/external/chromium_org/v8/test/webkit/fast/js/kde/ |
RegExp.js | 25 shouldBe("(new RegExp()).source", "'(?:)'"); 26 shouldBe("Boolean(new RegExp())", "true"); 27 shouldBeTrue("isNaN(Number(new RegExp()))"); 29 // RegExp constructor called as a function 30 shouldBe("RegExp(/x/).source", "'x'"); 31 //shouldBe("RegExp(/x/, 'g').source", "'/x/'"); // can't supply flags when constructing one RegExp from another, says mozilla 32 shouldBe("RegExp('x', 'g').global", "true"); 33 shouldBe("RegExp('x').source", "'x'"); 35 // RegExp constructo [all...] |
/external/chromium_org/v8/test/webkit/fast/regex/ |
toString.js | 24 description("This page tests toString conversion of RegExp objects, particularly wrt to '/' characters and RegExp.prototype."); 30 re1 = new RegExp(pattern); 38 re1 = new RegExp(pattern); 43 shouldBe("RegExp('/').source", '"\\\\/"'); 44 shouldBe("RegExp('').source", '"(?:)"'); 45 shouldBe("RegExp.prototype.source", '"(?:)"'); 47 shouldBe("RegExp('/').toString()", '"/\\\\//"'); 48 shouldBe("RegExp('').toString()", '"/(?:)/"'); 49 shouldBe("RegExp.prototype.toString()", '"/(?:)/"') [all...] |
constructor.js | 24 description("This test checks use of the regexp constructor."); 28 shouldBeTrue("re === RegExp(re)"); 29 shouldBeTrue("re !== new RegExp(re)"); 30 shouldThrow("re === RegExp(re,'i')"); 31 shouldThrow("re !== new RegExp(re,'i')");
|
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
ScriptRegexp.h | 52 ScopedPersistent<v8::RegExp> m_regex;
|
ScriptRegexp.cpp | 46 unsigned flags = v8::RegExp::kNone; 48 flags |= v8::RegExp::kIgnoreCase; 50 flags |= v8::RegExp::kMultiline; 52 v8::Local<v8::RegExp> regex = v8::RegExp::New(v8String(isolate, pattern), static_cast<v8::RegExp::Flags>(flags)); 78 v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate); 86 // RegExp#exec returns null if there's no match, otherwise it returns an 91 // https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/exec
|
/external/chromium_org/v8/test/webkit/ |
regexp-zero-length-alternatives.js | 38 var re1 = new RegExp(/(?:|a|z)*/); 45 var re2 = new RegExp(/(?:a||z)*/); 52 var re3 = new RegExp(/(?:a|z|)*/); 59 var re4 = new RegExp(/(|a|z)*/); 66 var re5 = new RegExp(/(a||z)*/); 73 var re6 = new RegExp(/(a|z|)*/); 80 var re7 = new RegExp(/(?:|a|z){2,5}/); 87 var re8 = new RegExp(/(?:a||z){2,5}/); 94 var re9 = new RegExp(/(?:a|z|){2,5}/); 101 var re10 = new RegExp(/(?:|a|z)*?/) [all...] |
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-219.js | 52 re = RegExp("a",""); 55 re = RegExp("a", "gim"); 74 assertThrows(function(){ return RegExp("a", "ii"); }) 76 assertThrows(function(){ return RegExp("a", "gii"); }) 78 assertThrows(function(){ return RegExp("a", "igi"); }) 80 assertThrows(function(){ return RegExp("a", "iig"); }) 82 assertThrows(function(){ return RegExp("a", "gimi"); }) 84 assertThrows(function(){ return RegExp("a", "giim"); }) 86 assertThrows(function(){ return RegExp("a", "igim"); }) 102 assertThrows(function(){ return RegExp("a", "iii"); } [all...] |
/external/chromium_org/v8/src/ |
regexp.js | 10 var $RegExp = global.RegExp; 17 // RegExp : Called as constructor; see ECMA-262, section 15.10.4. 80 // RegExp : Called as function; see ECMA-262, section 15.10.3.1. 84 return new $RegExp(pattern, flags); 88 // Deprecated RegExp.prototype.compile method. We behave like the constructor 89 // were called again. In SpiderMonkey, this method returns the regexp object. 97 // RegExp.prototype.compile and in the constructor, where they are 100 if (this == $RegExp.prototype) { 101 // We don't allow recompiling RegExp.prototype [all...] |
/external/chromium_org/v8/test/webkit/fast/js/ |
toString-overrides.js | 34 var backupRegExpToString = RegExp.prototype.toString; 35 var backupRegExpToLocaleString = RegExp.prototype.toLocaleString; 40 RegExp.prototype.toString = function() { return "toString2"; } 41 RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; } 50 RegExp.prototype.toLocaleString = "invalid"; 64 RegExp.prototype.toString = backupRegExpToString; 65 RegExp.prototype.toLocaleString = backupRegExpToLocaleString;
|