MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / QueryDoubleText

Method QueryDoubleText

Dependencies/tinyxml2/src/tinyxml2.cpp:1697–1707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695
1696
1697XMLError XMLElement::QueryDoubleText( double* dval ) const
1698{
1699 if ( FirstChild() && FirstChild()->ToText() ) {
1700 const char* t = FirstChild()->Value();
1701 if ( XMLUtil::ToDouble( t, dval ) ) {
1702 return XML_SUCCESS;
1703 }
1704 return XML_CAN_NOT_CONVERT_TEXT;
1705 }
1706 return XML_NO_TEXT_NODE;
1707}
1708
1709
1710XMLError XMLElement::QueryFloatText( float* fval ) const

Callers 1

DeserializeDoubleMethod · 0.80

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected