code_type_xdigit/1

"code_type_xdigit( Code " )

Holds true if Code is an hexadecimal digit.