MathLib: replaced isHexDigit function by isxdigit.