MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / QueryFloatText

Method QueryFloatText

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1589–1599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1587
1588
1589XMLError XMLElement::QueryFloatText( float* fval ) const
1590{
1591 if ( FirstChild() && FirstChild()->ToText() ) {
1592 const char* t = FirstChild()->Value();
1593 if ( XMLUtil::ToFloat( t, fval ) ) {
1594 return XML_SUCCESS;
1595 }
1596 return XML_CAN_NOT_CONVERT_TEXT;
1597 }
1598 return XML_NO_TEXT_NODE;
1599}
1600
1601
1602

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected