Share via


CStringElementTraitsI::CompareElements

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

static bool CompareElements(
   INARGTYPE str1,
   INARGTYPE str2 
) throw( );

Parameters

  • str1
    The first string element.

  • str2
    The second string element.

Return Value

Returns true if the elements are equal, false otherwise.

Remarks

Comparisons are case insensitive.

Requirements

Header: atlcoll.h

See Also

Reference

CStringElementTraitsI Class

CStringElementTraitsI::CompareElementsOrdered

CStringElementTraits::CompareElements

Other Resources

CStringElementTraitsI Members