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

Side by Side Diff: src/dateparser.h

Issue 1409343005: Version 4.6.85.28 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.6
Patch Set: Created 5 years, 2 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
« no previous file with comments | « include/v8-version.h ('k') | src/dateparser-inl.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_DATEPARSER_H_ 5 #ifndef V8_DATEPARSER_H_
6 #define V8_DATEPARSER_H_ 6 #define V8_DATEPARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/char-predicates.h" 9 #include "src/char-predicates.h"
10 #include "src/scanner.h" 10 #include "src/scanner.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 361
362 private: 362 private:
363 static const int kSize = 3; 363 static const int kSize = 3;
364 int comp_[kSize]; 364 int comp_[kSize];
365 int index_; 365 int index_;
366 int named_month_; 366 int named_month_;
367 // If set, ensures that data is always parsed in year-month-date order. 367 // If set, ensures that data is always parsed in year-month-date order.
368 bool is_iso_date_; 368 bool is_iso_date_;
369 }; 369 };
370 370
371 // Tries to parse an ES6 Date Time String. Returns the next token 371 // Tries to parse an ES5 Date Time String. Returns the next token
372 // to continue with in the legacy date string parser. If parsing is 372 // to continue with in the legacy date string parser. If parsing is
373 // complete, returns DateToken::EndOfInput(). If terminally unsuccessful, 373 // complete, returns DateToken::EndOfInput(). If terminally unsuccessful,
374 // returns DateToken::Invalid(). Otherwise parsing continues in the 374 // returns DateToken::Invalid(). Otherwise parsing continues in the
375 // legacy parser. 375 // legacy parser.
376 template <typename Char> 376 template <typename Char>
377 static DateParser::DateToken ParseES6DateTime( 377 static DateParser::DateToken ParseES5DateTime(
378 DateStringTokenizer<Char>* scanner, 378 DateStringTokenizer<Char>* scanner,
379 DayComposer* day, 379 DayComposer* day,
380 TimeComposer* time, 380 TimeComposer* time,
381 TimeZoneComposer* tz); 381 TimeZoneComposer* tz);
382 }; 382 };
383 383
384 384
385 } } // namespace v8::internal 385 } } // namespace v8::internal
386 386
387 #endif // V8_DATEPARSER_H_ 387 #endif // V8_DATEPARSER_H_
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/dateparser-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698