MCPcopy Create free account
hub / github.com/crossuo/crossuo / QueryIntText

Method QueryIntText

external/tinyxml2.cpp:1725–1735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723
1724
1725XMLError XMLElement::QueryIntText( int* ival ) const
1726{
1727 if ( FirstChild() && FirstChild()->ToText() ) {
1728 const char* t = FirstChild()->Value();
1729 if ( XMLUtil::ToInt( t, ival ) ) {
1730 return XML_SUCCESS;
1731 }
1732 return XML_CAN_NOT_CONVERT_TEXT;
1733 }
1734 return XML_NO_TEXT_NODE;
1735}
1736
1737
1738XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected