mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 13:03:06 +01:00
Cleanup.
This commit is contained in:
@@ -54,7 +54,18 @@ namespace bx
|
||||
|
||||
bool isAlphaNum(char _ch)
|
||||
{
|
||||
return isAlpha(_ch) || isNumeric(_ch);
|
||||
return false
|
||||
|| isAlpha(_ch)
|
||||
|| isNumeric(_ch)
|
||||
;
|
||||
}
|
||||
|
||||
bool isHexNum(char _ch)
|
||||
{
|
||||
return false
|
||||
|| isInRange(toLower(_ch), 'a', 'f')
|
||||
|| isNumeric(_ch)
|
||||
;
|
||||
}
|
||||
|
||||
bool isPrint(char _ch)
|
||||
@@ -110,6 +121,11 @@ namespace bx
|
||||
return isCharTest<isAlphaNum>(_str);
|
||||
}
|
||||
|
||||
bool isHexNum(const StringView& _str)
|
||||
{
|
||||
return isCharTest<isHexNum>(_str);
|
||||
}
|
||||
|
||||
bool isPrint(const StringView& _str)
|
||||
{
|
||||
return isCharTest<isPrint>(_str);
|
||||
|
||||
Reference in New Issue
Block a user