MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / QueryIntText

Method QueryIntText

externals/tinyxml2/tinyxml2.cpp:1772–1782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770
1771
1772XMLError XMLElement::QueryIntText( int* ival ) const
1773{
1774 if ( FirstChild() && FirstChild()->ToText() ) {
1775 const char* t = FirstChild()->Value();
1776 if ( XMLUtil::ToInt( t, ival ) ) {
1777 return XML_SUCCESS;
1778 }
1779 return XML_CAN_NOT_CONVERT_TEXT;
1780 }
1781 return XML_NO_TEXT_NODE;
1782}
1783
1784
1785XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected