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

Method QueryIntText

src/xml/tinyxml2.cpp:1270–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268
1269
1270XMLError XMLElement::QueryIntText( int* ival ) const {
1271 if ( FirstChild() && FirstChild()->ToText() ) {
1272 const char* t = FirstChild()->Value();
1273 if ( XMLUtil::ToInt( t, ival ) ) {
1274 return XML_SUCCESS;
1275 }
1276 return XML_CAN_NOT_CONVERT_TEXT;
1277 }
1278 return XML_NO_TEXT_NODE;
1279}
1280
1281
1282XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const {

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected