This commit is contained in:
Branimir Karadžić
2017-12-30 15:40:20 -08:00
parent 6aa467710b
commit 2829ad737a
2 changed files with 37 additions and 15 deletions

View File

@@ -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);