MCPcopy Create free account
hub / github.com/cdcseacave/openMVS / QueryIntText

Method QueryIntText

libs/IO/TinyXML2.cpp:1741–1751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1739
1740
1741XMLError XMLElement::QueryIntText( int* ival ) const
1742{
1743 if ( FirstChild() && FirstChild()->ToText() ) {
1744 const char* t = FirstChild()->Value();
1745 if ( XMLUtil::ToInt( t, ival ) ) {
1746 return XML_SUCCESS;
1747 }
1748 return XML_CAN_NOT_CONVERT_TEXT;
1749 }
1750 return XML_NO_TEXT_NODE;
1751}
1752
1753
1754XMLError XMLElement::QueryUnsignedText( unsigned* uval ) const

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected