diff options
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index d91bc41df3..f008dc55bb 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -240,3 +240,17 @@ std::vector<std::string> CommandLineToUtf8Argv(const wchar_t* command_line); #endif std::string GetEscapedHtml(std::string html); + +namespace Common +{ +inline char ToLower(char ch) +{ + return std::tolower(ch, std::locale::classic()); +} +inline char ToUpper(char ch) +{ + return std::toupper(ch, std::locale::classic()); +} +void ToLower(std::string* str); +void ToUpper(std::string* str); +} // namespace Common |
