diff options
| author | JosJuice <josjuice@gmail.com> | 2023-05-17 09:13:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-17 09:13:36 +0200 |
| commit | 11768e3dd3e998bb874c919b96ae775826d6bd86 (patch) | |
| tree | 97e72c6de727056e1cb2d5842890f0dd28af2f4e /Source/Core/Common/StringUtil.cpp | |
| parent | fede2ab9a993a1bc0baa2a9f42f6446e10dfee2d (diff) | |
| parent | 1a2b48c2047c367a2bbf3ca0dc73207053fb523b (diff) | |
Merge pull request #11829 from lioncash/strutil
Common/StringUtil: Move some utilities into the Common namespace
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index af81e2b84b..ba07db1206 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -77,7 +77,7 @@ std::string HexDump(const u8* data, size_t size) if (row_start + i < size) { char c = static_cast<char>(data[row_start + i]); - out += IsPrintableCharacter(c) ? c : '.'; + out += Common::IsPrintableCharacter(c) ? c : '.'; } } out += "\n"; @@ -656,6 +656,8 @@ std::string PathToString(const std::filesystem::path& path) #endif } +namespace Common +{ #ifdef _WIN32 std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line) { @@ -693,8 +695,6 @@ std::string GetEscapedHtml(std::string html) return html; } -namespace Common -{ void ToLower(std::string* str) { std::transform(str->begin(), str->end(), str->begin(), [](char c) { return Common::ToLower(c); }); |
