MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / QueryFloatText

Method QueryFloatText

sourcecommon/tinyxml2.cpp:1370–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1368
1369
1370XMLError XMLElement::QueryFloatText( float* fval ) const
1371{
1372 if ( FirstChild() && FirstChild()->ToText() ) {
1373 const char* t = FirstChild()->Value();
1374 if ( XMLUtil::ToFloat( t, fval ) ) {
1375 return XML_SUCCESS;
1376 }
1377 return XML_CAN_NOT_CONVERT_TEXT;
1378 }
1379 return XML_NO_TEXT_NODE;
1380}
1381
1382
1383

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected