From 6e5f4125e32f545a61e611720fd30c051b691d62 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 16 Jan 2022 16:38:11 -0800 Subject: Use Common::ToLower and Common::ToUpper --- Source/Core/DiscIO/FileSystemGCWii.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp') diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index ed4c11d9a8..4090a9882d 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -146,13 +146,9 @@ bool FileInfoGCWii::NameCaseInsensitiveEquals(std::string_view other) const // other is in UTF-8 and this is in Shift-JIS, so we convert so that we can compare correctly const std::string this_utf8 = SHIFTJISToUTF8(this_ptr); return std::equal(this_utf8.cbegin(), this_utf8.cend(), other.cbegin() + i, other.cend(), - [](char a, char b) { - return std::tolower(a, std::locale::classic()) == - std::tolower(b, std::locale::classic()); - }); + [](char a, char b) { return Common::ToLower(a) == Common::ToLower(b); }); } - else if (std::tolower(*this_ptr, std::locale::classic()) != - std::tolower(*other_ptr, std::locale::classic())) + else if (Common::ToLower(*this_ptr) != Common::ToLower(*other_ptr)) { return false; } -- cgit v1.2.3