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

Function CompareNodeValues

xmpsdk/src/XMPMeta.cpp:503–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501// Comparison routine for sorting XMP nodes by value.
502
503static bool
504CompareNodeValues ( XMP_Node * left, XMP_Node * right )
505{
506
507 if ( XMP_PropIsSimple ( left->options ) && XMP_PropIsSimple ( right->options ) ) {
508 return ( left->value < right->value );
509 }
510
511 XMP_OptionBits leftForm = left->options & kXMP_PropCompositeMask;
512 XMP_OptionBits rightForm = right->options & kXMP_PropCompositeMask;
513
514 return ( leftForm < rightForm );
515
516} // CompareNodeValues
517
518
519// -------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected