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

Function CompareNodeNames

xmpsdk/src/XMPMeta.cpp:482–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480// and "rdf:type" is less than anything except "xml:lang". This preserves special rules for qualifiers.
481
482static bool
483CompareNodeNames ( XMP_Node * left, XMP_Node * right )
484{
485
486 if ( left->name == "xml:lang" ) return true;
487 if ( right->name == "xml:lang" ) return false;
488
489 if ( left->name == "rdf:type" ) return true;
490 if ( right->name == "rdf:type" ) return false;
491
492 return ( left->name < right->name );
493
494} // CompareNodeNames
495
496
497// -------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected