Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(856)

Unified Diff: src/regexp/regexp-parser.h

Issue 1599303002: [regexp] implement case-insensitive unicode regexps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@unicodeclass
Patch Set: fixes Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/regexp/regexp-parser.h
diff --git a/src/regexp/regexp-parser.h b/src/regexp/regexp-parser.h
index dc0d943f86eeb9860d4819c503b4cf3d3b1e2d6d..3b53d4e770158c43b3959c545bae60f288cd7720 100644
--- a/src/regexp/regexp-parser.h
+++ b/src/regexp/regexp-parser.h
@@ -106,6 +106,7 @@ class RegExpBuilder : public ZoneObject {
// following quantifier
void AddEmpty();
void AddCharacterClass(RegExpCharacterClass* cc);
+ void AddCharacterClass(uc32 c);
void AddAtom(RegExpTree* tree);
void AddTerm(RegExpTree* tree);
void AddAssertion(RegExpTree* tree);
@@ -122,8 +123,11 @@ class RegExpBuilder : public ZoneObject {
void FlushCharacters();
void FlushText();
void FlushTerms();
+ bool NeedsDesugaringForUnicode(RegExpCharacterClass* cc);
+ bool NeedsDesugaringForIgnoreCase(uc32 c);
Zone* zone() const { return zone_; }
bool unicode() const { return (flags_ & JSRegExp::kUnicode) != 0; }
+ bool ignore_case() const { return (flags_ & JSRegExp::kIgnoreCase) != 0; }
Zone* zone_;
bool pending_empty_;

Powered by Google App Engine
This is Rietveld 408576698