xDigitToInt

fun xDigitToInt(c: Int, accumulator: Int): Int

If character c is a hexadecimal digit, return accumulator * 16 plus the corresponding number. Otherwise return -1.