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

Method QueryFloatText

examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp:1774–1786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1772}
1773
1774XMLError XMLElement::QueryFloatText(float* fval) const
1775{
1776 if (FirstChild() && FirstChild()->ToText())
1777 {
1778 const char* t = FirstChild()->Value();
1779 if (XMLUtil::ToFloat(t, fval))
1780 {
1781 return XML_SUCCESS;
1782 }
1783 return XML_CAN_NOT_CONVERT_TEXT;
1784 }
1785 return XML_NO_TEXT_NODE;
1786}
1787
1788int XMLElement::IntText(int defaultValue) const
1789{

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected