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

Method QueryUnsignedText

externals/tinyxml2/tinyxml2.cpp:1785–1795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1783
1784
1785XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const
1786{
1787 if ( FirstChild() && FirstChild()->ToText() ) {
1788 const char* t = FirstChild()->Value();
1789 if ( XMLUtil::ToUnsigned( t, uval ) ) {
1790 return XML_SUCCESS;
1791 }
1792 return XML_CAN_NOT_CONVERT_TEXT;
1793 }
1794 return XML_NO_TEXT_NODE;
1795}
1796
1797
1798XMLError XMLElement::QueryInt64Text(int64_t* ival) const

Callers 1

xmlTextAsUIntFunction · 0.80

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected