You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I saw this project a few days ago and it looked very interesting to me. So, I wanted to make some type of port of this for personal use for the Android Platform, but I cannot find an alternative to the narrow function. I have no access to the WideCharToMultiByte function so I don't know how to implement this for Android. Any resources that could help me adapt the narrow function would help greatly, thank you.
The text was updated successfully, but these errors were encountered:
That function just converts from utf-16 to utf-8 style strings. You can use any cross platform library to achieve the same (see: https://github.com/nemtrif/utfcpp/utf8::utf16to8).
That function just converts from utf-16 to utf-8 style strings. You can use any cross platform library to achieve the same (see: https://github.com/nemtrif/utfcpp/utf8::utf16to8).
Thank you so much for the library I was able to make it work like this
std::string NarrowString(const FString& Str)
{
auto CharArray = Str.GetCharArray();
// Check if array is validif (CharArray.Num() <= 0)
{
return { "" };
}
// Get pointer to array entryauto Data = CharArray.GetData();
// Make a new unicode string
std::u16string U16Str { Data };
returnutf8::utf16to8(U16Str);
}
, but I have some issues with the GetPrefixCpp method
It's in a few spots, I'm using 4.27.2 source here Class.h
But calling this will crash the game immediately, and I think it's because the full definition of this function is in Class.cpp
Hello, I saw this project a few days ago and it looked very interesting to me. So, I wanted to make some type of port of this for personal use for the Android Platform, but I cannot find an alternative to the narrow function. I have no access to the WideCharToMultiByte function so I don't know how to implement this for Android. Any resources that could help me adapt the narrow function would help greatly, thank you.
The text was updated successfully, but these errors were encountered: