MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / QueryIntText

Method QueryIntText

ReClass/tinyxml2.cpp:1640–1650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1638
1639
1640XMLError XMLElement::QueryIntText( int* ival ) const
1641{
1642 if ( FirstChild() && FirstChild()->ToText() ) {
1643 const char* t = FirstChild()->Value();
1644 if ( XMLUtil::ToInt( t, ival ) ) {
1645 return XML_SUCCESS;
1646 }
1647 return XML_CAN_NOT_CONVERT_TEXT;
1648 }
1649 return XML_NO_TEXT_NODE;
1650}
1651
1652
1653XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected