util/CharUtil: add IsHexDigit()
This commit is contained in:
parent
dd37b4656e
commit
cc3e71d8c7
@ -130,4 +130,12 @@ ToLowerASCII(char ch) noexcept
|
||||
: ch;
|
||||
}
|
||||
|
||||
constexpr bool
|
||||
IsHexDigit(char ch) noexcept
|
||||
{
|
||||
return IsDigitASCII(ch) ||
|
||||
(ch >= 'a' && ch <= 'f') ||
|
||||
(ch >= 'A' && ch <= 'F');
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user