[英]How do I convert a UE4 FString into a string?
TextLine2
needs to be a regular string however I receive the error no instance of constructor matches the argument list.
TextLine2
需要是一个常规字符串,但是我收到错误no instance of constructor matches the argument list.
void AAH_Ver1_2::GetEachTextFromLine(FString TextLine1)
{
string TextLine2 = TextLine1;
istringstream iss(TextLine2);
}
You can convert an FString
to an std::string
with the TCHAR_TO_UTF8
macro:您可以使用TCHAR_TO_UTF8
宏将FString
转换为std::string
:
std::string const s = TCHAR_TO_UTF8(*fstring);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.