PCase_Generic< T > Struct Template Reference
[String Manipulations]

Search Toolkit Book for PCase_Generic

#include <ncbistr.hpp>

List of all members.


Detailed Description

template<typename T>
struct PCase_Generic< T >

Define Case-sensitive string comparison methods.

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

Definition at line 3052 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.


Member Function Documentation

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

Return difference between "s1" and "s2".

Definition at line 3674 of file ncbistr.hpp.

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

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

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

Return TRUE if s1 == s2.

Definition at line 3688 of file ncbistr.hpp.

References PCase_Generic< T >::Compare().

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

Return TRUE if s1 < s2.

Definition at line 3681 of file ncbistr.hpp.

References PCase_Generic< T >::Compare().

Referenced by PCase_Generic< T >::operator()().

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

Return TRUE if s1 < s2.

Definition at line 3695 of file ncbistr.hpp.

References PCase_Generic< T >::Less().


The documentation for this struct was generated from the following file:
Generated on Wed Dec 9 08:12:57 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:20:15 2009 by modify_doxy.py rev. 173732