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