MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / QueryBoolText

Method QueryBoolText

examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp:1746–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected