| 236 | // Parses text to the unsigned integer value. Returns true if failed to convert the value. |
| 237 | template<typename T> |
| 238 | static bool Parse(const T* str, int32 length, uint64* result) |
| 239 | { |
| 240 | int64 sum = 0; |
| 241 | const T* p = str; |
| 242 | while (length--) |
| 243 | { |
| 244 | int32 c = *p++ - 48; |
| 245 | if (c < 0 || c > 9) |
| 246 | return true; |
| 247 | sum = 10 * sum + c; |
| 248 | } |
| 249 | *result = sum; |
| 250 | return false; |
| 251 | } |
| 252 | template<typename T> |
| 253 | static bool Parse(const T* str, uint32 length, uint32* result) |
| 254 | { |
no test coverage detected