Partager via


CStringElementTraitsI::CompareElementsOrdered

Call this static function to compare two string elements, ignoring differences in case.

static int CompareElementsOrdered(
   INARGTYPE str1,
   INARGTYPE str2 
) throw( );

Parameters

  • str1
    The first string element.

  • str2
    The second string element.

Return Value

Zero if the strings are identical, < 0 if str1 is less than str2, or > 0 if str1 is greater than str2. The CStringT::Compare method is used to perform the comparisons.

Remarks

Comparisons are case insensitive.

Requirements

Header: atlcoll.h

See Also

Reference

CStringElementTraitsI Class

CStringElementTraitsI::CompareElements

CStringElementTraits::CompareElementsOrdered

Other Resources

CStringElementTraitsI Members