summaryrefslogtreecommitdiff
path: root/Source/Core/Common/StringUtil.h
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-17 11:43:50 +0100
committerGitHub <noreply@github.com>2022-01-17 11:43:50 +0100
commitb7e55e2d52e181b2943a337c8ddc7e6021819935 (patch)
treec55774af52802324951f27b5b1eea616303fb95a /Source/Core/Common/StringUtil.h
parente62771856092cd9bbc25c8c94c433ed0e55a9f3f (diff)
parent43e146a1d5c327d49fdacddb7a5a7e7f0307fab8 (diff)
Merge pull request #10368 from Pokechu22/gamelist-lowercase-extension
GameList: Convert file extensions to lowercase
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
-rw-r--r--Source/Core/Common/StringUtil.h14
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