MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / QueryFloatText

Method QueryFloatText

ReClass/tinyxml2.cpp:1705–1715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703
1704
1705XMLError XMLElement::QueryFloatText( float* fval ) const
1706{
1707 if ( FirstChild() && FirstChild()->ToText() ) {
1708 const char* t = FirstChild()->Value();
1709 if ( XMLUtil::ToFloat( t, fval ) ) {
1710 return XML_SUCCESS;
1711 }
1712 return XML_CAN_NOT_CONVERT_TEXT;
1713 }
1714 return XML_NO_TEXT_NODE;
1715}
1716
1717int XMLElement::IntText(int defaultValue) const
1718{

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected