Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common/StringUtil: Use internal linkage for codepage conversion functions. #12467

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/Core/Common/StringUtil.cpp
Expand Up @@ -426,7 +426,7 @@ size_t StringUTF8CodePointCount(std::string_view str)

#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 =
MultiByteToWideChar(code_page, 0, input.data(), static_cast<int>(input.size()), nullptr, 0);
Expand All @@ -444,7 +444,7 @@ std::wstring CPToUTF16(u32 code_page, std::string_view input)
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())
return {};
Expand Down