| 1772 | } |
| 1773 | |
| 1774 | XMLError 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 | |
| 1788 | int XMLElement::IntText(int defaultValue) const |
| 1789 | { |
nothing calls this directly
no test coverage detected