| 186 | } |
| 187 | |
| 188 | bool FastStringTo64(const char* str, int64_t* value) { |
| 189 | char* end = nullptr; |
| 190 | int64_t ret = strtol(str, &end, 10); |
| 191 | while (isspace(*end)) ++end; |
| 192 | if (*end == '\0') { |
| 193 | *value = ret; |
| 194 | return true; |
| 195 | } |
| 196 | return false; |
| 197 | } |
| 198 | |
| 199 | bool FastStringToFloat(const char* str, float* value) { |
| 200 | char* end = nullptr; |
no outgoing calls
no test coverage detected