MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / QueryBoolText

Method QueryBoolText

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1677–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected