Coder UTF16 (emxArray_char16_T) support

์กฐํšŒ ์ˆ˜: 3 (์ตœ๊ทผ 30์ผ)
Mehmet Ali Yildirim
Mehmet Ali Yildirim 2024๋…„ 6์›” 11์ผ
๋‹ต๋ณ€: Karan Singh 2024๋…„ 6์›” 17์ผ
Hello
I am trying to convert a matlab code using coder GUI. My code takes char array input of sizes (:infx32) which may include some UTF16 characters like ๐ˆ๐Œด๐‚๐Œฐ๐Œน. Hence I need matlab to convert this variable into emxArray_char16_T. I tried to give these kind of UTF16 inputs in test code to make the coder understands I need char16_t. However it still converts the variable into emxArray_char_T datatype in C++ code. It gives errors when I give UTF16 input in C++. I also tried to give the input as uint16 and inside the function I converted this uint16 input to char array. However this did not work too.
So does Matlab supports emxArray_char16_T? If yes how?
Thanks,

๋‹ต๋ณ€ (1๊ฐœ)

Karan Singh
Karan Singh 2024๋…„ 6์›” 17์ผ
Hi Mehmet,
As of the latest R2024a update, I don't believe MATLAB Coder supports generating code for handling UTF-16 characters. You can follow the documentation link below for more information on this topic:
Thanks,
Karan Singh

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ MATLAB Coder์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ


๋ฆด๋ฆฌ์Šค

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by