MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetAttribute

Method SetAttribute

ogsr_engine/xrCore/XML_Parser/tinyxml.cpp:629–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627#endif
628
629void TiXmlElement::SetAttribute(const char* name, int val)
630{
631 char buf[64];
632#if defined(TIXML_SNPRINTF)
633 TIXML_SNPRINTF(buf, sizeof(buf), "%d", val);
634#else
635 sprintf(buf, "%d", val);
636#endif
637 SetAttribute(name, buf);
638}
639
640#ifdef TIXML_USE_STL
641void TiXmlElement::SetAttribute(const xr_string& name, int val)

Callers 1

CopyToMethod · 0.80

Calls 4

SetErrorMethod · 0.80
FindMethod · 0.45
SetValueMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected