Index: src/char-predicates-inl.h |
diff --git a/src/char-predicates-inl.h b/src/char-predicates-inl.h |
index 1a89ef3b11bca76b34c84ae563e0d9adda64ca22..dee9ccd3815e78897d98995ca11ad5c15c76f0b9 100644 |
--- a/src/char-predicates-inl.h |
+++ b/src/char-predicates-inl.h |
@@ -71,6 +71,18 @@ inline bool IsHexDigit(uc32 c) { |
} |
+inline bool IsOctalDigit(uc32 c) { |
+ // ECMA-262, 6th, 7.8.3 |
+ return IsInRange(c, '0', '7'); |
+} |
+ |
+ |
+inline bool IsBinaryDigit(uc32 c) { |
+ // ECMA-262, 6th, 7.8.3 |
+ return c == '0' || c == '1'; |
+} |
+ |
+ |
inline bool IsRegExpWord(uc16 c) { |
return IsInRange(AsciiAlphaToLower(c), 'a', 'z') |
|| IsDecimalDigit(c) |