mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-29 07:37:03 +00:00
Replace basic_string<> of betype with std::vector (#1601)
This commit is contained in:
parent
2f02fda9ea
commit
c8ffff8f41
6 changed files with 25 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue