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