MCPcopy Create free account
hub / github.com/JayXon/Leanify / QueryIntText

Method QueryIntText

lib/tinyxml2/tinyxml2.cpp:1386–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1384
1385
1386XMLError XMLElement::QueryIntText( int* ival ) const
1387{
1388 if ( FirstChild() && FirstChild()->ToText() ) {
1389 const char* t = FirstChild()->Value();
1390 if ( XMLUtil::ToInt( t, ival ) ) {
1391 return XML_SUCCESS;
1392 }
1393 return XML_CAN_NOT_CONVERT_TEXT;
1394 }
1395 return XML_NO_TEXT_NODE;
1396}
1397
1398
1399XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected