Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

IgnoreCaseTraits< T > Class Template Reference

#include <SdlArs.h>


Static Public Member Functions

bool eq (const T &c1, const T &c2)
bool lt (const T &c1, const T &c2)
int compare (const T *s1, const T *s2, size_t n)
const T * find (const T *s, size_t n, const T &c)

template<class T>
class IgnoreCaseTraits< T >


Member Function Documentation

template<class T>
int IgnoreCaseTraits< T >::compare const T *  s1,
const T *  s2,
size_t  n
[inline, static]
 

Definition at line 42 of file SdlArs.h.

References IgnoreCaseTraits< T >::eq(), and IgnoreCaseTraits< T >::lt().

00043         {
00044                 for( size_t i = 0 ; i < n ; i++ )
00045                         if( !eq( s1[i] , s2[i] ) )
00046                                 return lt( s1[i] , s2[i] ) ? -1 : 1;
00047                 return 0;
00048         }

template<class T>
bool IgnoreCaseTraits< T >::eq const T &  c1,
const T &  c2
[inline, static]
 

Definition at line 40 of file SdlArs.h.

Referenced by IgnoreCaseTraits< T >::compare(), and IgnoreCaseTraits< T >::find().

00040 {       return towupper( c1 ) == towupper( c2 );        }

template<class T>
const T* IgnoreCaseTraits< T >::find const T *  s,
size_t  n,
const T &  c
[inline, static]
 

Definition at line 50 of file SdlArs.h.

References IgnoreCaseTraits< T >::eq().

00051         {
00052                 for( size_t i = 0 ; i < n ; i++ )
00053                         if( eq( s[i] , c ) )
00054                                 return &s[i];
00055                 return 0;
00056         }

template<class T>
bool IgnoreCaseTraits< T >::lt const T &  c1,
const T &  c2
[inline, static]
 

Definition at line 41 of file SdlArs.h.

Referenced by IgnoreCaseTraits< T >::compare().

00041 {       return towupper( c1 ) < towupper( c2 ); }


The documentation for this class was generated from the following file:
Generated on Fri Dec 5 04:06:22 2003 for Borqueror by doxygen 1.3.3