Determines the numeric value of a character as a hexadecimal digit. If the
character is not a hex digit according to GLib.ascii_isxdigit,
-1 is returned.
Differs from GLib.unichar_xdigit_value because it takes a char, so
there's no worry about sign extension if characters are signed.
Differs from GLib.unichar_xdigit_value because it takes a char, so
there's no worry about sign extension if characters are signed.
Parameters
c: number
an ASCII character
Returns number
the numerical value of c if it is a hex digit, -1 otherwise
Determines the numeric value of a character as a hexadecimal digit. If the character is not a hex digit according to GLib.ascii_isxdigit,
-1is returned.Differs from GLib.unichar_xdigit_value because it takes a char, so there's no worry about sign extension if characters are signed.
Differs from GLib.unichar_xdigit_value because it takes a char, so there's no worry about sign extension if characters are signed.