digit_value


Description:

public int digit_value ()

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

Parameters:

c

a Unicode character

Returns:

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