| Return Type | Function name | Arguments |
|---|---|---|
| bool | IsHexValue | (unsigned int&,const char*,) |
Declared and defined in file: hzTokens.cpp
Function Logic:
Function body:
bool IsHexValue (unsigned int& nLen, const char* pStr)
{
const char* i = pStr ;
uint32_t nBytes = 0;
uint32_t nHex = 0;
nLen = 0;
if (!i)
return false ;
if (*i == CHAR_HASH && IsHex(i[1]))
{ nBytes++ ; i++ ; }
if (*i == ''0''&&i[1]== ''x'')
{ nBytes += 2; i += 2; }
for (; IsHex(*i) ; nHex++, nBytes++, i++) ;
if (!nHex)
return false ;
nLen = nBytes ;
return true ;
}