MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / QueryFloatText

Method QueryFloatText

Source/3rdParty/tinyxml2/tinyxml2.cpp:1118–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118XMLError XMLElement::QueryFloatText(float* fval) const {
1119 if (FirstChild() && FirstChild()->ToText()) {
1120 const char* t = FirstChild()->ToText()->Value();
1121 if (XMLUtil::ToFloat(t, fval)) {
1122 return XML_SUCCESS;
1123 }
1124 return XML_CAN_NOT_CONVERT_TEXT;
1125 }
1126 return XML_NO_TEXT_NODE;
1127}
1128
1129XMLAttribute* XMLElement::FindOrCreateAttribute(const char* name) {
1130 XMLAttribute* last = 0;

Callers

nothing calls this directly

Calls 3

ToFloatFunction · 0.85
ValueMethod · 0.65
ToTextMethod · 0.45

Tested by

no test coverage detected