Home | History | Annotate | Download | only in src

Lines Matching refs:hex

92 static inline int hex2byte(char hex)
94 if('0' <= hex && hex <= '9')
95 return hex - '0';
96 if('a' <= hex && hex <= 'z')
97 return hex - 'a' + 0xa;
98 if('A' <= hex && hex <= 'Z')
99 return hex - 'A' + 0xa;
119 error("cannot convert odd len hex str: %s, len:%d to binary", str, len);
127 error("cannot convert hex: %s, len:%d to binary", str, len);
134 error("cannot convert hex: %s, len:%d to binary", str, len);