static int parseDigit(char c) { ret c >= '0' && c <= '9' ?? c-'0' : 0; }