Lines Matching defs:digit

42  * a character's category (lowercase letter, digit, etc.) and for converting
130 * {@code digit} method, the {@code forDigit} method, and the
133 * @see Character#digit(char, int)
144 * {@code digit} method, the {@code forDigit} method, and the
147 * @see Character#digit(char, int)
8526 * Determines if the specified character is a digit.
8528 * A character is a digit if its general category type, provided
8554 * @return {@code true} if the character is a digit;
8556 * @see Character#digit(char, int)
8565 * Determines if the specified character (Unicode code point) is a digit.
8567 * A character is a digit if its general category type, provided
8588 * @return {@code true} if the character is a digit;
8729 * Determines if the specified character is a letter or digit.
8731 * A character is considered to be a letter or digit if either
8742 * @return {@code true} if the character is a letter or digit;
8757 * Determines if the specified character (Unicode code point) is a letter or digit.
8759 * A character is considered to be a letter or digit if either
8765 * @return {@code true} if the character is a letter or digit;
8823 * <li> it is a digit
8965 * <li> it is a digit
9002 * <li> it is a digit
9087 * <li> it is a digit
9122 * <li> it is a digit
9392 * value of {@code ch} is not a valid digit in the specified
9393 * radix, {@code -1} is returned. A character is a valid digit
9397 * and the Unicode decimal digit value of the character (or its
9399 * In this case the decimal digit value is returned.
9427 * the {@link #digit(int, int)} method.
9436 public static int digit(char ch, int radix) {
9437 return digit((int)ch, radix);
9446 * character is not a valid digit in the specified
9447 * radix, {@code -1} is returned. A character is a valid digit
9451 * and the Unicode decimal digit value of the character (or its
9453 * In this case the decimal digit value is returned.
9488 public static int digit(int codePoint, int radix) {
9489 return CharacterData.of(codePoint).digit(codePoint, radix);
9863 * Determines the character representation for a specific digit in
9865 * valid radix, or the value of {@code digit} is not a valid
9866 * digit in the specified radix, the null character
9871 * {@code MAX_RADIX}. The {@code digit} argument is valid if
9872 * {@code 0 <= digit < radix}.
9874 * If the digit is less than 10, then
9875 * {@code '0' + digit} is returned. Otherwise, the value
9876 * {@code 'a' + digit - 10} is returned.
9878 * @param digit the number to convert to a character.
9880 * @return the {@code char} representation of the specified digit
9884 * @see Character#digit(char, int)
9886 public static char forDigit(int digit, int radix) {
9887 if ((digit >= radix) || (digit < 0)) {
9893 if (digit < 10) {
9894 return (char)('0' + digit);
9896 return (char)('a' - 10 + digit);