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

Function EmitRDFArrayTag

xmpsdk/src/XMPMeta-Serialize.cpp:227–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225};
226
227static void
228EmitRDFArrayTag ( XMP_OptionBits arrayForm,
229 XMP_VarString & outputStr,
230 XMP_StringPtr newline,
231 XMP_StringPtr indentStr,
232 XMP_Index indent,
233 XMP_Index arraySize,
234 bool isStartTag )
235{
236 if ( (! isStartTag) && (arraySize == 0) ) return;
237
238 for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
239 if ( isStartTag ) {
240 outputStr += "<rdf:";
241 } else {
242 outputStr += "</rdf:";
243 }
244
245 if ( arrayForm & kXMP_PropArrayIsAlternate ) {
246 outputStr += "Alt";
247 } else if ( arrayForm & kXMP_PropArrayIsOrdered ) {
248 outputStr += "Seq";
249 } else {
250 outputStr += "Bag";
251 }
252
253 if ( isStartTag && (arraySize == 0) ) outputStr += '/';
254 outputStr += '>';
255 outputStr += newline;
256
257} // EmitRDFArrayTag
258
259
260// -------------------------------------------------------------------------------------------------

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected