Isis Developer Reference
Isis::NoCaseStringCompare< K > Struct Template Reference

Provides a case insensitive string comparison. More...

#include <CollectorMap.h>

Collaboration diagram for Isis::NoCaseStringCompare< K >:
Collaboration graph

Public Member Functions

bool operator() (const K &v1, const K &v2) const
 Compares v1 and v2 as case insensitive strings, and returns true of v1 is less than v2 (as those strings). More...
 

Detailed Description

template<typename K>
struct Isis::NoCaseStringCompare< K >

Provides a case insensitive string comparison.

This string comparison functor object compares two strings ignoring case. Use this policy when your key into the collector map is a string and you want to ignore case when finding elements in the collection.

Member Function Documentation

◆ operator()()

template<typename K >
bool Isis::NoCaseStringCompare< K >::operator() ( const K &  v1,
const K &  v2 
) const
inline

Compares v1 and v2 as case insensitive strings, and returns true of v1 is less than v2 (as those strings).

Parameters
v1Input constant
v2Input constant
Returns
bool Returns true if v1 is less than v2 in string format

References Isis::IString::DownCase().


The documentation for this struct was generated from the following file: