| OLD | NEW |
| 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-inl.h" | 9 #include "src/char-predicates.h" |
| 10 #include "src/scanner.h" |
| 10 | 11 |
| 11 namespace v8 { | 12 namespace v8 { |
| 12 namespace internal { | 13 namespace internal { |
| 13 | 14 |
| 14 class DateParser : public AllStatic { | 15 class DateParser : public AllStatic { |
| 15 public: | 16 public: |
| 16 // Parse the string as a date. If parsing succeeds, return true after | 17 // Parse the string as a date. If parsing succeeds, return true after |
| 17 // filling out the output array as follows (all integers are Smis): | 18 // filling out the output array as follows (all integers are Smis): |
| 18 // [0]: year | 19 // [0]: year |
| 19 // [1]: month (0 = Jan, 1 = Feb, ...) | 20 // [1]: month (0 = Jan, 1 = Feb, ...) |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 DateStringTokenizer<Char>* scanner, | 378 DateStringTokenizer<Char>* scanner, |
| 378 DayComposer* day, | 379 DayComposer* day, |
| 379 TimeComposer* time, | 380 TimeComposer* time, |
| 380 TimeZoneComposer* tz); | 381 TimeZoneComposer* tz); |
| 381 }; | 382 }; |
| 382 | 383 |
| 383 | 384 |
| 384 } } // namespace v8::internal | 385 } } // namespace v8::internal |
| 385 | 386 |
| 386 #endif // V8_DATEPARSER_H_ | 387 #endif // V8_DATEPARSER_H_ |
| OLD | NEW |