mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
sys_fs: Improved sys_fs_fcntl(0xc0000015&0xc000001c)
This commit is contained in:
parent
e0fe7989e9
commit
d2dc57585c
10 changed files with 36 additions and 104 deletions
|
@ -37,6 +37,12 @@ std::string utf16_to_utf8(std::u16string_view src)
|
|||
return converter.to_bytes(src.data());
|
||||
}
|
||||
|
||||
std::u16string utf8_to_utf16(std::string_view src)
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> converter{};
|
||||
return converter.from_bytes(src.data());
|
||||
}
|
||||
|
||||
std::wstring utf8_to_wchar(std::string_view src)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue