| 7139 | } |
| 7140 | |
| 7141 | PUGI__FN double convert_string_to_number(const char_t* string) |
| 7142 | { |
| 7143 | // check string format |
| 7144 | if (!check_string_to_number_format(string)) |
| 7145 | return gen_nan(); |
| 7146 | |
| 7147 | // parse string |
| 7148 | #ifdef PUGIXML_WCHAR_MODE |
| 7149 | return wcstod(string, 0); |
| 7150 | #else |
| 7151 | return atof(string); |
| 7152 | #endif |
| 7153 | } |
| 7154 | |
| 7155 | PUGI__FN bool convert_string_to_number(const char_t* begin, const char_t* end, double* out_result) |
| 7156 | { |
no test coverage detected