Method digit(char ch, int radix)
Return type: int
Member of:
java.lang.Character
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
d[i>>1] |= Character.digit((char) b[offset+i], 16) << shift;
2
int digit = Character.digit((char)b[i >> 2], 16);
3
l = (l << 4) + Character.digit(sb.charAt(i), 16);
4
int d1 = Character.digit( encoded.charAt( i + 1 ), 16 );
5
res = res + (Character.digit(val.charAt(i), 16) << shift);
6
int hi = Character.digit(newChars[characterOffset],16);
7
int value = Character.digit(to[i], 10);
8
terrElev = Character.digit(terrElevChar, 10); // Get the actual integer value, in base 10
9
res = res + ((long)Character.digit(val.charAt(i), 16) << shift);
10
int numValue = Character.digit(c, 16);
11
byte high = (byte) Character.digit((char) octets[ii++], 16);
12
num = Character.digit(cnum, 10);
13
ch = Character.digit(ch1, 16) * 16 + Character.digit(ch2, 16);
14
while((d = Character.digit(c, radix)) >= 0) {
15
{position[0]=java.lang.Character.forDigit(java.lang.Character.digit(startLetter,
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.