mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 01:59:02 +00:00
StringUtil: More Wrappers For <cctype>
`Common::IsLower(char)` was omitted as nothing needed it.
This commit is contained in:
parent
7a99b34f21
commit
c40a9b1f12
6 changed files with 21 additions and 10 deletions
|
@ -30,8 +30,7 @@ static bool IsValidUSBIDString(const std::string& string)
|
|||
{
|
||||
if (string.empty() || string.length() > 4)
|
||||
return false;
|
||||
return std::all_of(string.begin(), string.end(),
|
||||
[](const auto character) { return std::isxdigit(character) != 0; });
|
||||
return std::all_of(string.begin(), string.end(), Common::IsXDigit);
|
||||
}
|
||||
|
||||
USBDeviceAddToWhitelistDialog::USBDeviceAddToWhitelistDialog(QWidget* parent) : QDialog(parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue