Tests for a valid Base64 char.
| Return Type | Function name | Arguments |
|---|---|---|
| bool | _b64valid | (unsigned char*,) |
Declared and defined in file: hzCodec.cpp
Function Logic:
Function body:
bool _b64valid (unsigned char* c)
{
// Category: Codec
//
// Tests for a valid Base64 char.
//
// Arguments: 1) c The test char
//
// Returns: True If the char belongs in the Base64 character set
// False Otherwise
if ((*c < 0x2b)||(*c>0x7a))
return false ;
if ((*c = pBase64[*c - 0x2b])==0x7f)
return false ;
return true ;
}