MCPcopy Create free account
hub / github.com/ReadyTalk/avian / forDigit

Method forDigit

classpath/java/lang/Character.java:112–119  ·  view source on GitHub ↗
(int digit, int radix)

Source from the content-addressed store, hash-verified

110 }
111
112 public static char forDigit(int digit, int radix) {
113 if (MIN_RADIX <= radix && radix <= MAX_RADIX) {
114 if (0 <= digit && digit < radix) {
115 return (char) (digit < 10 ? digit + '0' : digit + 'a' - 10);
116 }
117 }
118 return 0;
119 }
120
121 public static boolean isLetter(int c) {
122 return canCastToChar(c) && isLetter((char) c);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by 1

mainMethod · 0.76