int _16_10(char ch) { if(ch <= '9' && ch >= '0') return ch-'0'; else if(ch <= 'Z' && ch >= 'A') { return ch - 'A' + 10; } else if(ch <= 'z' && ch >= 'a') { return ch - 'a' + 10; } return -1; }