| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 // limitations under the License. | 4 // limitations under the License. |
| 5 | 5 |
| 6 #ifndef V8_I18N_H_ | 6 #ifndef V8_I18N_H_ |
| 7 #define V8_I18N_H_ | 7 #define V8_I18N_H_ |
| 8 | 8 |
| 9 #include "src/handles.h" | |
| 10 #include "src/objects.h" | 9 #include "src/objects.h" |
| 11 #include "unicode/uversion.h" | 10 #include "unicode/uversion.h" |
| 12 | 11 |
| 13 namespace U_ICU_NAMESPACE { | 12 namespace U_ICU_NAMESPACE { |
| 14 class BreakIterator; | 13 class BreakIterator; |
| 15 class Collator; | 14 class Collator; |
| 16 class DecimalFormat; | 15 class DecimalFormat; |
| 17 class SimpleDateFormat; | 16 class SimpleDateFormat; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace v8 { | 19 namespace v8 { |
| 21 namespace internal { | 20 namespace internal { |
| 22 | 21 |
| 22 template <typename T> |
| 23 class Handle; |
| 24 |
| 23 class DateFormat { | 25 class DateFormat { |
| 24 public: | 26 public: |
| 25 // Create a formatter for the specificied locale and options. Returns the | 27 // Create a formatter for the specificied locale and options. Returns the |
| 26 // resolved settings for the locale / options. | 28 // resolved settings for the locale / options. |
| 27 static icu::SimpleDateFormat* InitializeDateTimeFormat( | 29 static icu::SimpleDateFormat* InitializeDateTimeFormat( |
| 28 Isolate* isolate, | 30 Isolate* isolate, |
| 29 Handle<String> locale, | 31 Handle<String> locale, |
| 30 Handle<JSObject> options, | 32 Handle<JSObject> options, |
| 31 Handle<JSObject> resolved); | 33 Handle<JSObject> resolved); |
| 32 | 34 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 static const int kSize = kUnicodeString + kPointerSize; | 125 static const int kSize = kUnicodeString + kPointerSize; |
| 124 | 126 |
| 125 private: | 127 private: |
| 126 V8BreakIterator(); | 128 V8BreakIterator(); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace internal | 131 } // namespace internal |
| 130 } // namespace v8 | 132 } // namespace v8 |
| 131 | 133 |
| 132 #endif // V8_I18N_H_ | 134 #endif // V8_I18N_H_ |
| OLD | NEW |