| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,7 +173,7 @@ MaybeLocal<Object> TranscodeLatin1ToUcs2(Environment* env, | |||
| 173 | 173 | const char* source, | |
| 174 | 174 | const size_t source_length, | |
| 175 | 175 | UErrorCode* status) { | |
| 176 | - MaybeStackBuffer<UChar> destbuf(source_length); | ||
| 176 | + MaybeStackBuffer<char16_t> destbuf(source_length); | ||
| 177 | 177 | auto actual_length = | |
| 178 | 178 | simdutf::convert_latin1_to_utf16le(source, source_length, destbuf.out()); | |
| 179 | 179 | if (actual_length == 0) { | |
@@ -217,7 +217,7 @@ MaybeLocal<Object> TranscodeUcs2FromUtf8(Environment* env, | |||
| 217 | 217 | UErrorCode* status) { | |
| 218 | 218 | size_t expected_utf16_length = | |
| 219 | 219 | simdutf::utf16_length_from_utf8(source, source_length); | |
| 220 | - MaybeStackBuffer<UChar> destbuf(expected_utf16_length); | ||
| 220 | + MaybeStackBuffer<char16_t> destbuf(expected_utf16_length); | ||
| 221 | 221 | auto actual_length = | |
| 222 | 222 | simdutf::convert_utf8_to_utf16le(source, source_length, destbuf.out()); | |
| 223 | 223 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments