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

Method QueryBoolText

externals/tinyxml2/tinyxml2.cpp:1824–1834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822
1823
1824XMLError XMLElement::QueryBoolText( bool* bval ) const
1825{
1826 if ( FirstChild() && FirstChild()->ToText() ) {
1827 const char* t = FirstChild()->Value();
1828 if ( XMLUtil::ToBool( t, bval ) ) {
1829 return XML_SUCCESS;
1830 }
1831 return XML_CAN_NOT_CONVERT_TEXT;
1832 }
1833 return XML_NO_TEXT_NODE;
1834}
1835
1836
1837XMLError XMLElement::QueryDoubleText( double* dval ) const

Callers 1

xmlTextAsBoolFunction · 0.80

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected