** Return the value of a hexadecimal digit. Return -1 if the input ** is not a hex digit. */
| 84 | ** is not a hex digit. |
| 85 | */ |
| 86 | static int hexDigitValue(char c){ |
| 87 | if( c>='0' && c<='9' ) return c - '0'; |
| 88 | if( c>='a' && c<='f' ) return c - 'a' + 10; |
| 89 | if( c>='A' && c<='F' ) return c - 'A' + 10; |
| 90 | return -1; |
| 91 | } |
| 92 | |
| 93 | /* Provide an alternative to sqlite3_stricmp() in older versions of |
| 94 | ** SQLite */ |