MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / SetAttrValue

Method SetAttrValue

xmpsdk/src/XML_Node.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99//=======================
100
101void XML_Node::SetAttrValue ( XMP_StringPtr attrName, XMP_StringPtr attrValue )
102{
103
104 for ( size_t i = 0, aLim = this->attrs.size(); i < aLim; ++i ) {
105 XML_Node * attrPtr = this->attrs[i];
106 if ( ! attrPtr->ns.empty() ) continue; // This form of SetAttrValue is for attrs in no namespace.
107 if ( attrPtr->name == attrName ) {
108 attrPtr->value = attrValue;
109 return;
110 }
111 }
112
113} // XML_Node::SetAttrValue
114
115// =================================================================================================
116// XML_Node::GetLeafContentValue

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected