MCPcopy Create free account
hub / github.com/avast/retdec / QueryFloatText

Method QueryFloatText

deps/tinyxml2/tinyxml2.cpp:1776–1786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1774
1775
1776XMLError XMLElement::QueryFloatText( float* fval ) const
1777{
1778 if ( FirstChild() && FirstChild()->ToText() ) {
1779 const char* t = FirstChild()->Value();
1780 if ( XMLUtil::ToFloat( t, fval ) ) {
1781 return XML_SUCCESS;
1782 }
1783 return XML_CAN_NOT_CONVERT_TEXT;
1784 }
1785 return XML_NO_TEXT_NODE;
1786}
1787
1788int XMLElement::IntText(int defaultValue) const
1789{

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected