Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: src/i18n.h

Issue 2728763006: Migrate some case conversion functions from JS to CPP builtins (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins-intl.cc ('k') | src/i18n.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/builtins/builtins-intl.cc ('k') | src/i18n.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698