| 103 | }; |
| 104 | |
| 105 | template<int BASE, typename CHAR> bool CharToDigit(CHAR c, uint8_t* digit) { |
| 106 | return BaseCharToDigit<CHAR, BASE, BASE <= 10>::Convert(c, digit); |
| 107 | } |
| 108 | |
| 109 | // There is an IsWhitespace for wchars defined in string_util.h, but it is |
| 110 | // locale independent, whereas the functions we are replacing were |