mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-14 08:05:52 +00:00
Add Char16ToWide helper function
This commit is contained in:
parent
b8abd466dd
commit
c840625080
@ -53,6 +53,7 @@ extern logvisor::Module LogModule;
|
|||||||
|
|
||||||
std::string WideToUTF8(const std::wstring& src);
|
std::string WideToUTF8(const std::wstring& src);
|
||||||
std::string Char16ToUTF8(const std::u16string& src);
|
std::string Char16ToUTF8(const std::u16string& src);
|
||||||
|
std::wstring Char16ToWide(const std::u16string& src);
|
||||||
std::wstring UTF8ToWide(const std::string& src);
|
std::wstring UTF8ToWide(const std::string& src);
|
||||||
std::u16string UTF8ToChar16(const std::string& src);
|
std::u16string UTF8ToChar16(const std::string& src);
|
||||||
|
|
||||||
|
@ -640,4 +640,9 @@ std::vector<std::pair<hecl::SystemString, std::string>> GetSystemLocations()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::wstring Char16ToWide(const std::u16string& src)
|
||||||
|
{
|
||||||
|
return std::wstring(src.begin(), src.end());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user