MCPcopy Create free account
hub / github.com/avast/retdec / QueryBoolText

Method QueryBoolText

deps/tinyxml2/tinyxml2.cpp:1750–1760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1748
1749
1750XMLError XMLElement::QueryBoolText( bool* bval ) const
1751{
1752 if ( FirstChild() && FirstChild()->ToText() ) {
1753 const char* t = FirstChild()->Value();
1754 if ( XMLUtil::ToBool( t, bval ) ) {
1755 return XML_SUCCESS;
1756 }
1757 return XML_CAN_NOT_CONVERT_TEXT;
1758 }
1759 return XML_NO_TEXT_NODE;
1760}
1761
1762
1763XMLError XMLElement::QueryDoubleText( double* dval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected