MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / QueryFloatText

Method QueryFloatText

3rdparty/tinyxml2/tinyxml2.cpp:1850–1860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1848
1849
1850XMLError XMLElement::QueryFloatText( float* fval ) const
1851{
1852 if ( FirstChild() && FirstChild()->ToText() ) {
1853 const char* t = FirstChild()->Value();
1854 if ( XMLUtil::ToFloat( t, fval ) ) {
1855 return XML_SUCCESS;
1856 }
1857 return XML_CAN_NOT_CONVERT_TEXT;
1858 }
1859 return XML_NO_TEXT_NODE;
1860}
1861
1862int XMLElement::IntText(int defaultValue) const
1863{

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected