mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
Common/StringUtil: Use internal linkage for codepage conversion functions.
This commit is contained in:
parent
bf0ac9de0c
commit
4f04ac5858
@ -426,7 +426,7 @@ size_t StringUTF8CodePointCount(std::string_view str)
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
std::wstring CPToUTF16(u32 code_page, std::string_view input)
|
static std::wstring CPToUTF16(u32 code_page, std::string_view input)
|
||||||
{
|
{
|
||||||
auto const size =
|
auto const size =
|
||||||
MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
|
MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
|
||||||
@ -444,7 +444,7 @@ std::wstring CPToUTF16(u32 code_page, std::string_view input)
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string UTF16ToCP(u32 code_page, std::wstring_view input)
|
static std::string UTF16ToCP(u32 code_page, std::wstring_view input)
|
||||||
{
|
{
|
||||||
if (input.empty())
|
if (input.empty())
|
||||||
return {};
|
return {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user