MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / QueryFloatText

Method QueryFloatText

src/xml/tinyxml2.cpp:1318–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316
1317
1318XMLError XMLElement::QueryFloatText( float* fval ) const {
1319 if ( FirstChild() && FirstChild()->ToText() ) {
1320 const char* t = FirstChild()->Value();
1321 if ( XMLUtil::ToFloat( t, fval ) ) {
1322 return XML_SUCCESS;
1323 }
1324 return XML_CAN_NOT_CONVERT_TEXT;
1325 }
1326 return XML_NO_TEXT_NODE;
1327}
1328
1329
1330

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected