如何在虚幻引擎4中将char *转换为TCHAR?

问题描述 投票:0回答:1

例如,

const char* bytes = "somemultibytecharacter一些宽字符";
size_t n = strlen(bytes);

如何在虚幻引擎C ++代码中将bytes转换为FStringTCHAR*

我知道我可以用std::mbstowcsMultiByteToWideChar进行转换,但是我正在尝试找到UE4的替代方案。

c++ unreal-engine4
1个回答
0
投票

只需使用FString(int32 InCount, const CharType* InSrc)

© www.soinside.com 2019 - 2024. All rights reserved.