MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / QueryIntAttribute

Function QueryIntAttribute

native/thirdpart/tinyxml2/tinyxml2.h:1343–1349  ·  view source on GitHub ↗

Given an attribute name, QueryIntAttribute() returns XML_SUCCESS, XML_WRONG_ATTRIBUTE_TYPE if the conversion can't be performed, or XML_NO_ATTRIBUTE if the attribute doesn't exist. If successful, the result of the conversion will be written to 'value'. If not successful, nothing will be written to 'value'. This allows you to provide default value: @verbatim

Source from the content-addressed store, hash-verified

1341 @endverbatim
1342 */
1343 XMLError QueryIntAttribute( const char* name, int* value ) const {
1344 const XMLAttribute* a = FindAttribute( name );
1345 if ( !a ) {
1346 return XML_NO_ATTRIBUTE;
1347 }
1348 return a->QueryIntValue( value );
1349 }
1350
1351 /// See QueryIntAttribute()
1352 XMLError QueryUnsignedAttribute( const char* name, unsigned int* value ) const {

Callers 2

QueryAttributeFunction · 0.85
IntAttributeMethod · 0.85

Calls 1

QueryIntValueMethod · 0.80

Tested by

no test coverage detected