static bool isxdigit( byte b ) { if(isdigit( b ) ) { return true; } else if( b <= (byte)'F' ) { return b >= (byte)'A'; } else return (b <= (byte)'f') && (b >= (byte)'a'); }