| 339 | |
| 340 | |
| 341 | bool ParseDouble(const std::string& str, double *out) |
| 342 | { |
| 343 | if (!ParsePrechecks(str)) |
| 344 | return false; |
| 345 | if (str.size() >= 2 && str[0] == '0' && str[1] == 'x') // No hexadecimal floats allowed |
| 346 | return false; |
| 347 | std::istringstream text(str); |
| 348 | text.imbue(std::locale::classic()); |
| 349 | double result; |
| 350 | text >> result; |
| 351 | if(out) *out = result; |
| 352 | return text.eof() && !text.fail(); |
| 353 | } |
| 354 | |
| 355 | std::string FormatParagraph(const std::string& in, size_t width, size_t indent) |
| 356 | { |
nothing calls this directly
no test coverage detected