xdigit_value


Description:

public int xdigit_value ()

Determines the numeric value of a character as a hexidecimal digit.

Differs from xdigit_value because it takes a char, so there's no worry about sign extension if characters are signed.

Parameters:

c

an ASCII character.

Returns:

If c is a hex digit (according to isxdigit), its numeric value. Otherwise, -1.