Character.isDigit

Character.isDigit

Class Overview | Class Members | This Package | All Packages

Syntax
public static boolean isDigit( char ch )
Parameters
ch
the character to be tested.
Returns
true if the character is a digit; false otherwise.
Description
Determines if the specified character is a digit. A character is considered to be a digit if it is not in the range '\u2000' <= ch <= '\u2FFF' and its Unicode name contains the word "DIGIT". For a more complete specification that encompasses all Unicode characters that are defined as digits, see Gosling, Joy, and Steele, The Java Language Specification.

These are the ranges of Unicode characters that are considered digits:
0x0030 through 0x0039 ISO-LATIN-1 digits ('0' through '9')
0x0660 through 0x0669 Arabic-Indic digits
0x06F0 through 0x06F9 Extended Arabic-Indic digits
0x0966 through 0x096F Devanagari digits
0x09E6 through 0x09EF Bengali digits
0x0A66 through 0x0A6F Gurmukhi digits
0x0AE6 through 0x0AEF Gujarati digits
0x0B66 through 0x0B6F Oriya digits
0x0BE7 through 0x0BEF Tamil digits
0x0C66 through 0x0C6F Telugu digits
0x0CE6 through 0x0CEF Kannada digits
0x0D66 through 0x0D6F Malayalam digits
0x0E50 through 0x0E59 Thai digits
0x0ED0 through 0x0ED9 Lao digits
0x0F20 through 0x0F29 Tibetan digits
0xFF10 through 0xFF19 Fullwidth digits

See Also
digit, forDigit