MCPcopy Create free account
hub / github.com/MyGUI/mygui / evaluate_number

Method evaluate_number

UnitTests/TestApp/pugixml.cpp:10935–10949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10933 }
10934
10935 PUGI__FN double xpath_query::evaluate_number(const xpath_node& n) const
10936 {
10937 if (!_impl)
10938 return impl::gen_nan();
10939
10940 impl::xpath_context c(n, 1, 1);
10941 impl::xpath_stack_data sd;
10942
10943 #ifdef PUGIXML_NO_EXCEPTIONS
10944 if (setjmp(sd.error_handler))
10945 return impl::gen_nan();
10946 #endif
10947
10948 return static_cast<impl::xpath_query_impl*>(_impl)->root->eval_number(c, sd.stack);
10949 }
10950
10951 #ifndef PUGIXML_NO_STL
10952 PUGI__FN string_t xpath_query::evaluate_string(const xpath_node& n) const

Callers

nothing calls this directly

Calls 2

gen_nanFunction · 0.70
eval_numberMethod · 0.45

Tested by

no test coverage detected