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 | 4 |
5 #ifndef V8_INTL_SUPPORT | 5 #ifndef V8_INTL_SUPPORT |
6 #error Internationalization is expected to be enabled. | 6 #error Internationalization is expected to be enabled. |
7 #endif // V8_INTL_SUPPORT | 7 #endif // V8_INTL_SUPPORT |
8 | 8 |
9 #ifndef V8_INTL_H_ | 9 #ifndef V8_INTL_H_ |
10 #define V8_INTL_H_ | 10 #define V8_INTL_H_ |
(...skipping 12 matching lines...) Expand all Loading... |
23 const UChar* GetUCharBufferFromFlat(const String::FlatContent& flat, | 23 const UChar* GetUCharBufferFromFlat(const String::FlatContent& flat, |
24 std::unique_ptr<uc16[]>* dest, | 24 std::unique_ptr<uc16[]>* dest, |
25 int32_t length); | 25 int32_t length); |
26 MUST_USE_RESULT Object* LocaleConvertCase(Handle<String> s, Isolate* isolate, | 26 MUST_USE_RESULT Object* LocaleConvertCase(Handle<String> s, Isolate* isolate, |
27 bool is_to_upper, const char* lang); | 27 bool is_to_upper, const char* lang); |
28 MUST_USE_RESULT Object* ConvertToLower(Handle<String> s, Isolate* isolate); | 28 MUST_USE_RESULT Object* ConvertToLower(Handle<String> s, Isolate* isolate); |
29 MUST_USE_RESULT Object* ConvertToUpper(Handle<String> s, Isolate* isolate); | 29 MUST_USE_RESULT Object* ConvertToUpper(Handle<String> s, Isolate* isolate); |
30 MUST_USE_RESULT Object* ConvertCase(Handle<String> s, bool is_upper, | 30 MUST_USE_RESULT Object* ConvertCase(Handle<String> s, bool is_upper, |
31 Isolate* isolate); | 31 Isolate* isolate); |
32 | 32 |
| 33 MUST_USE_RESULT Object* ConvertOneByteToLower(String* src, String* dst, |
| 34 Isolate* isolate); |
| 35 |
| 36 const uint8_t* ToLatin1LowerTable(); |
| 37 |
33 // ICUTimezoneCache calls out to ICU for TimezoneCache | 38 // ICUTimezoneCache calls out to ICU for TimezoneCache |
34 // functionality in a straightforward way. | 39 // functionality in a straightforward way. |
35 class ICUTimezoneCache : public base::TimezoneCache { | 40 class ICUTimezoneCache : public base::TimezoneCache { |
36 public: | 41 public: |
37 ICUTimezoneCache(); | 42 ICUTimezoneCache(); |
38 | 43 |
39 ~ICUTimezoneCache() override; | 44 ~ICUTimezoneCache() override; |
40 | 45 |
41 const char* LocalTimezone(double time_ms) override; | 46 const char* LocalTimezone(double time_ms) override; |
42 | 47 |
(...skipping 12 matching lines...) Expand all Loading... |
55 | 60 |
56 static const int32_t kMaxTimezoneChars = 100; | 61 static const int32_t kMaxTimezoneChars = 100; |
57 char timezone_name_[kMaxTimezoneChars]; | 62 char timezone_name_[kMaxTimezoneChars]; |
58 char dst_timezone_name_[kMaxTimezoneChars]; | 63 char dst_timezone_name_[kMaxTimezoneChars]; |
59 }; | 64 }; |
60 | 65 |
61 } // namespace internal | 66 } // namespace internal |
62 } // namespace v8 | 67 } // namespace v8 |
63 | 68 |
64 #endif // V8_INTL_H_ | 69 #endif // V8_INTL_H_ |
OLD | NEW |