Searched refs:hexChar (Results 1 – 2 of 2) sorted by relevance
63 private static int hexToDec(int hexChar) { in hexToDec() argument64 if (hexChar >= '0' && hexChar <= '9') { in hexToDec()65 return hexChar - '0'; in hexToDec()67 if (hexChar >= 'a' && hexChar <= 'f') { in hexToDec()68 return hexChar - 'a' + 10; in hexToDec()70 if (hexChar >= 'A' && hexChar <= 'F') { in hexToDec()71 return hexChar - 'A' + 10; in hexToDec()73 throw new IllegalArgumentException("Invalid hex char " + hexChar); in hexToDec()
2096 private int toDigit(char hexChar) { in toDigit() argument2097 int digit = Character.digit(hexChar, 16); in toDigit()