MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / QueryFloatText

Method QueryFloatText

Dependencies/tinyxml2/src/tinyxml2.cpp:1710–1720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708
1709
1710XMLError XMLElement::QueryFloatText( float* fval ) const
1711{
1712 if ( FirstChild() && FirstChild()->ToText() ) {
1713 const char* t = FirstChild()->Value();
1714 if ( XMLUtil::ToFloat( t, fval ) ) {
1715 return XML_SUCCESS;
1716 }
1717 return XML_CAN_NOT_CONVERT_TEXT;
1718 }
1719 return XML_NO_TEXT_NODE;
1720}
1721
1722int XMLElement::IntText(int defaultValue) const
1723{

Callers 7

DeserializeFloatMethod · 0.80
DeserializeVec2Method · 0.80
DeserializeVec3Method · 0.80
DeserializeVec4Method · 0.80
DeserializeMat4Method · 0.80
DeserializeQuatMethod · 0.80
DeserializeColorMethod · 0.80

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected