PNocase_Generic< T > Struct Template Reference
[String Manipulations]

Search Toolkit Book for PNocase_Generic

#include <ncbistr.hpp>

List of all members.


Detailed Description

template<typename T>
struct PNocase_Generic< T >

Define Case-insensitive string comparison methods.

Used as arguments to template functions for specifying the type of comparison.

See also:
PNocase_Conditional_Generic

Definition at line 3082 of file ncbistr.hpp.

Public Member Functions

int Compare (const T &s1, const T &s2) const
 Return difference between "s1" and "s2".
bool Less (const T &s1, const T &s2) const
 Return TRUE if s1 < s2.
bool Equals (const T &s1, const T &s2) const
 Return TRUE if s1 == s2.
bool operator() (const T &s1, const T &s2) const
 Return TRUE if s1 < s2 ignoring case.


Member Function Documentation

template<typename T>
int PNocase_Generic< T >::Compare const T &  s1,
const T &  s2
const [inline]
 

Return difference between "s1" and "s2".

Definition at line 3709 of file ncbistr.hpp.

References NStr::Compare(), and NStr::eNocase.

Referenced by PNocase_Generic< T >::Equals(), and PNocase_Generic< T >::Less().

template<typename T>
bool PNocase_Generic< T >::Equals const T &  s1,
const T &  s2
const [inline]
 

Return TRUE if s1 == s2.

Definition at line 3723 of file ncbistr.hpp.

References PNocase_Generic< T >::Compare().

template<typename T>
bool PNocase_Generic< T >::Less const T &  s1,
const T &  s2
const [inline]
 

Return TRUE if s1 < s2.

Definition at line 3716 of file ncbistr.hpp.

References PNocase_Generic< T >::Compare().

Referenced by IDictionary::SAlternatesByScore::operator()(), and PNocase_Generic< T >::operator()().

template<typename T>
bool PNocase_Generic< T >::operator() const T &  s1,
const T &  s2
const [inline]
 

Return TRUE if s1 < s2 ignoring case.

Definition at line 3730 of file ncbistr.hpp.

References PNocase_Generic< T >::Less().


The documentation for this struct was generated from the following file:
Generated on Mon Dec 7 15:45:43 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:29 2009 by modify_doxy.py rev. 173732