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

Side by Side Diff: src/dateparser.h

Issue 141323007: Fix inconsistencies wrt whitespaces. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: new license header Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/conversions-inl.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // The skip methods return whether they actually skipped something. 115 // The skip methods return whether they actually skipped something.
116 bool Skip(uint32_t c) { 116 bool Skip(uint32_t c) {
117 if (ch_ == c) { 117 if (ch_ == c) {
118 Next(); 118 Next();
119 return true; 119 return true;
120 } 120 }
121 return false; 121 return false;
122 } 122 }
123 123
124 bool SkipWhiteSpace() { 124 bool SkipWhiteSpace() {
125 if (unicode_cache_->IsWhiteSpace(ch_)) { 125 if (unicode_cache_->IsWhiteSpaceOrLineTerminator(ch_)) {
126 Next(); 126 Next();
127 return true; 127 return true;
128 } 128 }
129 return false; 129 return false;
130 } 130 }
131 131
132 bool SkipParentheses() { 132 bool SkipParentheses() {
133 if (ch_ != '(') return false; 133 if (ch_ != '(') return false;
134 int balance = 0; 134 int balance = 0;
135 do { 135 do {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 DateStringTokenizer<Char>* scanner, 400 DateStringTokenizer<Char>* scanner,
401 DayComposer* day, 401 DayComposer* day,
402 TimeComposer* time, 402 TimeComposer* time,
403 TimeZoneComposer* tz); 403 TimeZoneComposer* tz);
404 }; 404 };
405 405
406 406
407 } } // namespace v8::internal 407 } } // namespace v8::internal
408 408
409 #endif // V8_DATEPARSER_H_ 409 #endif // V8_DATEPARSER_H_
OLDNEW
« no previous file with comments | « src/conversions-inl.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698