MCPcopy Create free account
hub / github.com/davidgiven/luje / isDigit

Method isDigit

lib/java/lang/Character.java:3045–3054  ·  view source on GitHub ↗

Indicates whether the specified character is a digit. @param c the character to check. @return true if c is a digit; false otherwise.

(char c)

Source from the content-addressed store, hash-verified

3043 * otherwise.
3044 */
3045 public static boolean isDigit(char c) {
3046 // Optimized case for ASCII
3047 if ('0' <= c && c <= '9') {
3048 return true;
3049 }
3050// if (c < 1632) {
3051 return false;
3052// }
3053// return getType(c) == DECIMAL_DIGIT_NUMBER;
3054 }
3055
3056 /**
3057 * Indicates whether the specified code point is a digit.

Callers 1

isValidHostMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected