MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / QueryBoolText

Method QueryBoolText

ReClass/tinyxml2.cpp:1679–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1677
1678
1679XMLError XMLElement::QueryBoolText( bool* bval ) const
1680{
1681 if ( FirstChild() && FirstChild()->ToText() ) {
1682 const char* t = FirstChild()->Value();
1683 if ( XMLUtil::ToBool( t, bval ) ) {
1684 return XML_SUCCESS;
1685 }
1686 return XML_CAN_NOT_CONVERT_TEXT;
1687 }
1688 return XML_NO_TEXT_NODE;
1689}
1690
1691
1692XMLError XMLElement::QueryDoubleText( double* dval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected