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

Method GetLeafContentValue

xmpsdk/src/XML_Node.cpp:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117//==============================
118
119XMP_StringPtr XML_Node::GetLeafContentValue() const
120{
121 if ( (! this->IsLeafContentNode()) || this->content.empty() ) return "";
122
123 return this->content[0]->value.c_str();
124
125} // XML_Node::GetLeafContentValue
126
127// =================================================================================================
128// XML_Node::SetLeafContentValue

Callers

nothing calls this directly

Calls 3

IsLeafContentNodeMethod · 0.95
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected