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

Function CompareNodeLangs

xmpsdk/src/XMPMeta.cpp:526–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524// any other language.
525
526static bool
527CompareNodeLangs ( XMP_Node * left, XMP_Node * right )
528{
529
530 if ( left->qualifiers.empty() || (left->qualifiers[0]->name != "xml:lang") ) return false;
531 if ( right->qualifiers.empty() || (right->qualifiers[0]->name != "xml:lang") ) return false;
532
533 if ( left->qualifiers[0]->value == "x-default" ) return true;
534 if ( right->qualifiers[0]->value == "x-default" ) return false;
535
536 return ( left->qualifiers[0]->value < right->qualifiers[0]->value );
537
538} // CompareNodeLangs
539
540
541// -------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected