diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-08-22 21:23:58 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-12-15 19:50:34 -0800 |
| commit | 826e2bbf98ca5c6088c3d19968272b29fc335972 (patch) | |
| tree | bcc910466200f8ce6b8f2fc16a10bd385c2c8be2 /Source/Core/DiscIO/DiscUtils.cpp | |
| parent | b4a196731056e458a45f99ea2bb10f0eda19c774 (diff) | |
StringUtil: More Wrappers For <cctype>
`Common::IsLower(char)` was omitted as nothing needed it.
Diffstat (limited to 'Source/Core/DiscIO/DiscUtils.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DiscUtils.cpp b/Source/Core/DiscIO/DiscUtils.cpp index afd22117c6..5d03a5aa7f 100644 --- a/Source/Core/DiscIO/DiscUtils.cpp +++ b/Source/Core/DiscIO/DiscUtils.cpp @@ -13,6 +13,7 @@ #include "Common/CommonTypes.h" #include "Common/MathUtil.h" +#include "Common/StringUtil.h" #include "DiscIO/Blob.h" #include "DiscIO/Filesystem.h" #include "DiscIO/Volume.h" @@ -39,8 +40,7 @@ std::string NameForPartitionType(u32 partition_type, bool include_prefix) static_cast<char>((partition_type >> 16) & 0xFF), static_cast<char>((partition_type >> 8) & 0xFF), static_cast<char>(partition_type & 0xFF)}; - if (std::all_of(type_as_game_id.cbegin(), type_as_game_id.cend(), - [](char c) { return std::isalnum(c, std::locale::classic()); })) + if (std::all_of(type_as_game_id.cbegin(), type_as_game_id.cend(), Common::IsAlnum)) { return include_prefix ? "P-" + type_as_game_id : type_as_game_id; } |
