| 197 | } |
| 198 | |
| 199 | bool FastStringToFloat(const char* str, float* value) { |
| 200 | char* end = nullptr; |
| 201 | float ret = strtof(str, &end); |
| 202 | while (isspace(*end)) ++end; |
| 203 | if (*end == '\0') { |
| 204 | *value = ret; |
| 205 | return true; |
| 206 | } |
| 207 | return false; |
| 208 | } |
| 209 | |
| 210 | bool FastStringToDouble(const char* str, double* value) { |
| 211 | char* end = nullptr; |
no outgoing calls
no test coverage detected