MCPcopy Create free account
hub / github.com/DFHack/dfhack / QueryUnsignedAttribute

Method QueryUnsignedAttribute

depends/tinyxml/tinyxml.cpp:670–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668
669
670int TiXmlElement::QueryUnsignedAttribute( const char* name, unsigned* value ) const
671{
672 const TiXmlAttribute* node = attributeSet.Find( name );
673 if ( !node )
674 return TIXML_NO_ATTRIBUTE;
675
676 int ival = 0;
677 int result = node->QueryIntValue( &ival );
678 *value = (unsigned)ival;
679 return result;
680}
681
682
683int TiXmlElement::QueryBoolAttribute( const char* name, bool* bval ) const

Callers

nothing calls this directly

Calls 2

QueryIntValueMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected