Replace basic_string<> of betype with std::vector (#1601)

This commit is contained in:
oltolm 2025-06-18 10:34:06 +02:00 committed by GitHub
parent 2f02fda9ea
commit c8ffff8f41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 17 deletions

View file

@ -111,9 +111,9 @@ namespace StringHelpers
}
// convert utf8 string to Wii U big-endian wchar_t string
static std::basic_string<uint16be> FromUtf8(std::string_view str)
static std::vector<uint16be> FromUtf8(std::string_view str)
{
std::basic_string<uint16be> tmpStr;
std::vector<uint16be> tmpStr;
std::wstring w = boost::nowide::widen(str.data(), str.size());
for (auto& c : w)
tmpStr.push_back((uint16)c);