Lines Matching refs:ch
133 static int hex2decimal(char ch)135 if (ch >= '0' && ch <= '9') {136 return (ch - '0');137 } else if (ch >= 'a' && ch <= 'f') {138 return 10 + (ch - 'a');139 } else if (ch >= 'A' && ch <= 'F') {140 return 10 + (ch - 'A');