NCBI C++ ToolKit
|
Search Toolkit Book for PNocase_Conditional_Generic
Define Case-insensitive string comparison methods. More...
#include <corelib/ncbistr.hpp>
Public Member Functions | |
PNocase_Conditional_Generic (NStr::ECase case_sens=NStr::eCase) | |
Construction. More... | |
NStr::ECase | GetCase () const |
Get comparison type. More... | |
void | SetCase (NStr::ECase case_sens) |
Set comparison type. More... | |
int | Compare (const T &s1, const T &s2) const |
Return difference between "s1" and "s2". More... | |
bool | Less (const T &s1, const T &s2) const |
Return TRUE if s1 < s2. More... | |
bool | Equals (const T &s1, const T &s2) const |
Return TRUE if s1 == s2. More... | |
bool | operator() (const T &s1, const T &s2) const |
Return TRUE if s1 < s2 ignoring case. More... | |
Private Attributes | |
NStr::ECase | m_CaseSensitive |
case sensitive when TRUE More... | |
Define Case-insensitive string comparison methods.
Case sensitivity can be turned on and off at runtime.
Used as arguments to template functions for specifying the type of comparison.
Definition at line 4922 of file ncbistr.hpp.