NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
PNocase_Conditional_Generic< T > Class Template Reference

Search Toolkit Book for PNocase_Conditional_Generic

Define Case-insensitive string comparison methods. More...

#include <corelib/ncbistr.hpp>

+ Inheritance diagram for PNocase_Conditional_Generic< T >:

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...
 

Detailed Description

template<typename T>
class PNocase_Conditional_Generic< T >

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.

See also
PNocase_Generic
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4922 of file ncbistr.hpp.


The documentation for this class was generated from the following file:
Modified on Sat Dec 02 09:20:51 2023 by modify_doxy.py rev. 669887