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

Unified Diff: src/dateparser.h

Issue 1287893006: Separate UnicodeCache out into an own file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/conversions-inl.h ('k') | src/dateparser-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/dateparser.h
diff --git a/src/dateparser.h b/src/dateparser.h
index a9db8685d90466d887544557cefdf1c14b8a32d5..d40e38482a83ffb412ae9719e45da830c646f150 100644
--- a/src/dateparser.h
+++ b/src/dateparser.h
@@ -99,24 +99,8 @@ class DateParser : public AllStatic {
return false;
}
- bool SkipWhiteSpace() {
- if (unicode_cache_->IsWhiteSpaceOrLineTerminator(ch_)) {
- Next();
- return true;
- }
- return false;
- }
-
- bool SkipParentheses() {
- if (ch_ != '(') return false;
- int balance = 0;
- do {
- if (ch_ == ')') --balance;
- else if (ch_ == '(') ++balance;
- Next();
- } while (balance > 0 && ch_);
- return true;
- }
+ inline bool SkipWhiteSpace();
+ inline bool SkipParentheses();
// Character testing/classification. Non-ASCII digits are not supported.
bool Is(uint32_t c) const { return ch_ == c; }
« no previous file with comments | « src/conversions-inl.h ('k') | src/dateparser-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698