| 7362 | } |
| 7363 | |
| 7364 | PUGI__FN double convert_string_to_number(const char_t* string) |
| 7365 | { |
| 7366 | // check string format |
| 7367 | if (!check_string_to_number_format(string)) return gen_nan(); |
| 7368 | |
| 7369 | // parse string |
| 7370 | #ifdef PUGIXML_WCHAR_MODE |
| 7371 | return wcstod(string, 0); |
| 7372 | #else |
| 7373 | return atof(string); |
| 7374 | #endif |
| 7375 | } |
| 7376 | |
| 7377 | PUGI__FN bool convert_string_to_number_scratch(char_t (&buffer)[32], const char_t* begin, const char_t* end, double* out_result) |
| 7378 | { |
no test coverage detected