例如,
const char* bytes = "somemultibytecharacter一些宽字符"; size_t n = strlen(bytes);
如何在虚幻引擎C ++代码中将bytes转换为FString或TCHAR*?
bytes
FString
TCHAR*
我知道我可以用std::mbstowcs或MultiByteToWideChar进行转换,但是我正在尝试找到UE4的替代方案。
只需使用FString(int32 InCount, const CharType* InSrc)。
FString(int32 InCount, const CharType* InSrc)