HomeSort by relevance Sort by last modified time
    Searched refs:RegExp (Results 1 - 25 of 263) sorted by null

1 2 3 4 5 6 7 8 91011

  /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:__anon16425
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...]
  /external/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...]
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...]
  /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;
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/
coffeescript.js 9 return new RegExp("^((" + words.join(")|(") + "))\\b");
12 var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\?]");
13 var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\},:`=;\\.]');
14 var doubleOperators = new RegExp("^((\->)|(\=>)|(\\+\\+)|(\\+\\=)|(\\-\\-)|(\\-\\=)|(\\*\\*)|(\\*\\=)|(\\/\\/)|(\\/\\=)|(==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//))");
15 var doubleDelimiters = new RegExp("^((\\.\\.)|(\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");
16 var tripleDelimiters = new RegExp("^((\\.\\.\\.)|(//=)|(>>=)|(<<=)|(\\*\\*=))");
17 var identifiers = new RegExp("^[_A-Za-z$][_A-Za-z$0-9]*");
18 var properties = new RegExp("^(@|this\.)[_A-Za-z$][_A-Za-z$0-9]*");
34 var stringPrefixes = new RegExp("^('{3}|\"{3}|['\"])");
35 var regexPrefixes = new RegExp("^(/{3}|/)")
    [all...]
  /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...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/text/
RegularExpression.h 52 ScopedPersistent<v8::RegExp> m_regex;
RegularExpression.cpp 49 unsigned flags = v8::RegExp::kNone;
51 flags |= v8::RegExp::kIgnoreCase;
53 flags |= v8::RegExp::kMultiline;
56 v8::Local<v8::RegExp> regex = v8::RegExp::New(v8String(pattern, context->GetIsolate()), static_cast<v8::RegExp::Flags>(flags));
83 v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate);
89 // RegExp#exec returns null if there's no match, otherwise it returns an
94 // 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/src/
regexp.js 33 var $RegExp = global.RegExp;
40 // RegExp : Called as constructor; see ECMA-262, section 15.10.4.
94 // RegExp : Called as function; see ECMA-262, section 15.10.3.1.
98 return new $RegExp(pattern, flags);
102 // Deprecated RegExp.prototype.compile method. We behave like the constructor
103 // were called again. In SpiderMonkey, this method returns the regexp object.
111 // RegExp.prototype.compile and in the constructor, where they are
114 if (this == $RegExp.prototype) {
115 // We don't allow recompiling RegExp.prototype
    [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/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/v8/src/
regexp.js 31 var $RegExp = global.RegExp;
36 // RegExp : Called as constructor; see ECMA-262, section 15.10.4.
90 // RegExp : Called as function; see ECMA-262, section 15.10.3.1.
94 return new $RegExp(pattern, flags);
98 // Deprecated RegExp.prototype.compile method. We behave like the constructor
99 // were called again. In SpiderMonkey, this method returns the regexp object.
107 // RegExp.prototype.compile and in the constructor, where they are
110 if (this == $RegExp.prototype) {
111 // 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;

Completed in 228 milliseconds

1 2 3 4 5 6 7 8 91011