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

Unified Diff: src/parser.h

Issue 706263002: Implement ES6 unicode escapes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 6 years, 1 month 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
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index c815a4546257ef74b0ae3bb2b94778b3c0abc648..dccd0a49689d5c374e416d7a34f77aca60ace68e 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -240,6 +240,10 @@ class RegExpParser BASE_EMBEDDED {
// Checks whether the following is a length-digit hexadecimal number,
// and sets the value if it is.
bool ParseHexEscape(int length, uc32* value);
+ // Like ParseHexEscape, but the length of the number is unlimited; the value
+ // must be at most max_value.
+ bool ParseUnlimitedLengthHexEscape(int max_value, uc32* value);
+ bool ParseUnicodeEscape(uc32* value);
uc32 ParseOctalLiteral();
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698