MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / QueryFloatText

Method QueryFloatText

native/thirdpart/tinyxml2/tinyxml2.cpp:1818–1828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816
1817
1818XMLError XMLElement::QueryFloatText( float* fval ) const
1819{
1820 if ( FirstChild() && FirstChild()->ToText() ) {
1821 const char* t = FirstChild()->Value();
1822 if ( XMLUtil::ToFloat( t, fval ) ) {
1823 return XML_SUCCESS;
1824 }
1825 return XML_CAN_NOT_CONVERT_TEXT;
1826 }
1827 return XML_NO_TEXT_NODE;
1828}
1829
1830int XMLElement::IntText(int defaultValue) const
1831{

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected