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

Method QueryBoolText

external/tinyxml2.cpp:1790–1800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1788
1789
1790XMLError XMLElement::QueryBoolText( bool* bval ) const
1791{
1792 if ( FirstChild() && FirstChild()->ToText() ) {
1793 const char* t = FirstChild()->Value();
1794 if ( XMLUtil::ToBool( t, bval ) ) {
1795 return XML_SUCCESS;
1796 }
1797 return XML_CAN_NOT_CONVERT_TEXT;
1798 }
1799 return XML_NO_TEXT_NODE;
1800}
1801
1802
1803XMLError XMLElement::QueryDoubleText( double* dval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected