| 208 | } |
| 209 | |
| 210 | bool FastStringToDouble(const char* str, double* value) { |
| 211 | char* end = nullptr; |
| 212 | double ret = strtod(str, &end); |
| 213 | while (isspace(*end)) ++end; |
| 214 | if (*end == '\0') { |
| 215 | *value = ret; |
| 216 | return true; |
| 217 | } |
| 218 | return false; |
| 219 | } |
| 220 | |
| 221 | std::string Int32ToString(int32_t i) { |
| 222 | char buffer[12]; |