S | String type to compare. |
int foo( const std::string& lhs, const std::string& rhs ) { // case-insensitive comparison return StrCmp<>(true)(lhs, rhs); }
Definition at line 277 of file stringutil.h.
OSB_LIB::StrCmp< S >::StrCmp | ( | bool | ignoreCase = false |
) | [inline, explicit] |
int OSB_LIB::StrCmp< S >::operator() | ( | const S & | lhs, | |
const S & | rhs | |||
) | const |
The comparison function.
lhs | Left-side string to compare. | |
rhs | Right-side string to compare. |
Definition at line 658 of file stringutil.h.
References OSB_LIB::StrCmp< S >::ignoreCase_.
bool OSB_LIB::StrCmp< S >::ignoreCase_ [private] |
Flag to ignore the case when comparing strings.
Definition at line 300 of file stringutil.h.
Referenced by OSB_LIB::StrCmp< S >::operator()().