util/CharUtil: add IsLowerHexDigit()
This commit is contained in:
parent
be84b189dc
commit
02c4512b00
@ -133,9 +133,15 @@ ToLowerASCII(char ch) noexcept
|
||||
}
|
||||
|
||||
constexpr bool
|
||||
IsHexDigit(char ch) noexcept
|
||||
IsLowerHexDigit(char ch) noexcept
|
||||
{
|
||||
return IsDigitASCII(ch) ||
|
||||
(ch >= 'a' && ch <= 'f') ||
|
||||
(ch >= 'a' && ch <= 'f');
|
||||
}
|
||||
|
||||
constexpr bool
|
||||
IsHexDigit(char ch) noexcept
|
||||
{
|
||||
return IsLowerHexDigit(ch) ||
|
||||
(ch >= 'A' && ch <= 'F');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user