mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
StringUtil: More Wrappers For <cctype>
`Common::IsLower(char)` was omitted as nothing needed it.
This commit is contained in:
@ -275,6 +275,21 @@ inline bool IsAlpha(char c)
|
||||
return std::isalpha(c, std::locale::classic());
|
||||
}
|
||||
|
||||
inline bool IsAlnum(char c)
|
||||
{
|
||||
return std::isalnum(c, std::locale::classic());
|
||||
}
|
||||
|
||||
inline bool IsUpper(char c)
|
||||
{
|
||||
return std::isupper(c, std::locale::classic());
|
||||
}
|
||||
|
||||
inline bool IsXDigit(char c)
|
||||
{
|
||||
return std::isxdigit(c /* no locale needed */) != 0;
|
||||
}
|
||||
|
||||
inline char ToLower(char ch)
|
||||
{
|
||||
return std::tolower(ch, std::locale::classic());
|
||||
|
Reference in New Issue
Block a user