MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / convert_string_to_number

Function convert_string_to_number

Source/ThirdParty/pugixml/pugixml.cpp:7364–7375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 4

compare_eqMethod · 0.85
compare_relMethod · 0.85
eval_numberMethod · 0.85

Calls 2

gen_nanFunction · 0.85

Tested by

no test coverage detected