| 765 | json_token_t *token); |
| 766 | |
| 767 | static int hexdigit2int(char hex) |
| 768 | { |
| 769 | if ('0' <= hex && hex <= '9') |
| 770 | return hex - '0'; |
| 771 | |
| 772 | /* Force lowercase */ |
| 773 | hex |= 0x20; |
| 774 | if ('a' <= hex && hex <= 'f') |
| 775 | return 10 + hex - 'a'; |
| 776 | |
| 777 | return -1; |
| 778 | } |
| 779 | |
| 780 | static int decode_hex4(const char *hex) |
| 781 | { |