diff options
| author | JosJuice <josjuice@gmail.com> | 2023-12-30 12:13:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-30 12:13:53 +0100 |
| commit | 26760cf8a8117dc5cd48000047a1be5bb36e5ba8 (patch) | |
| tree | de870ef6bcf3e67dfb3d94a793318ff64795f5de /Source/Core/Common/StringUtil.cpp | |
| parent | 2beaaf608d1bd083b9b0f7806dcaccc100d0f010 (diff) | |
| parent | 4f04ac5858052fe32598c4650b58e3e26b292c0e (diff) | |
Merge pull request #12467 from AdmiralCurtiss/codepage-convert-linkage
Common/StringUtil: Use internal linkage for codepage conversion functions.
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index c9100ff11a..f960d6fcc6 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -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); @@ -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 {}; |
