| 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/objects.h" | 9 #include "src/objects.h" |
| 10 #include "unicode/uversion.h" | 10 #include "unicode/uversion.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 // Layout description. | 122 // Layout description. |
| 123 static const int kBreakIterator = JSObject::kHeaderSize; | 123 static const int kBreakIterator = JSObject::kHeaderSize; |
| 124 static const int kUnicodeString = kBreakIterator + kPointerSize; | 124 static const int kUnicodeString = kBreakIterator + kPointerSize; |
| 125 static const int kSize = kUnicodeString + kPointerSize; | 125 static const int kSize = kUnicodeString + kPointerSize; |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 V8BreakIterator(); | 128 V8BreakIterator(); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 const UChar* GetUCharBufferFromFlat(const String::FlatContent& flat, |
| 132 std::unique_ptr<uc16[]>* dest, |
| 133 int32_t length); |
| 134 MUST_USE_RESULT Object* LocaleConvertCase(Handle<String> s, Isolate* isolate, |
| 135 bool is_to_upper, const char* lang); |
| 136 MUST_USE_RESULT Object* ConvertToLower(Handle<String> s, Isolate* isolate); |
| 137 MUST_USE_RESULT Object* ConvertToUpper(Handle<String> s, Isolate* isolate); |
| 138 MUST_USE_RESULT Object* ConvertCase(Handle<String> s, bool is_upper, |
| 139 Isolate* isolate); |
| 140 |
| 131 } // namespace internal | 141 } // namespace internal |
| 132 } // namespace v8 | 142 } // namespace v8 |
| 133 | 143 |
| 134 #endif // V8_I18N_H_ | 144 #endif // V8_I18N_H_ |
| OLD | NEW |