D:/opendownloadmanager/ODM-1.x/Include.Add/archive/String.h File Reference

#include <string.h>
#include "Vector.h"

Go to the source code of this file.

Classes

class  CStringBase< T >

Typedefs

typedef CStringBase< char > AString
typedef CStringBase< wchar_t > UString
typedef CObjectVector< AStringAStringVector
typedef CObjectVector< UStringUStringVector
typedef AString CSysString
typedef CObjectVector< CSysStringCSysStringVector

Functions

template<class T>
int MyStringLen (const T *s)
template<class T>
T * MyStringCopy (T *dest, const T *src)
wchar_t * MyStringGetNextCharPointer (wchar_t *p)
const wchar_t * MyStringGetNextCharPointer (const wchar_t *p)
wchar_t * MyStringGetPrevCharPointer (const wchar_t *, wchar_t *p)
const wchar_t * MyStringGetPrevCharPointer (const wchar_t *, const wchar_t *p)
wchar_t MyCharUpper (wchar_t c)
int MyStringCompare (const char *s1, const char *s2)
int MyStringCompare (const wchar_t *s1, const wchar_t *s2)
int MyStringCompareNoCase (const wchar_t *s1, const wchar_t *s2)
template<class T>
CStringBase< T > operator+ (const CStringBase< T > &s1, const CStringBase< T > &s2)
template<class T>
CStringBase< T > operator+ (const CStringBase< T > &s, T c)
template<class T>
CStringBase< T > operator+ (T c, const CStringBase< T > &s)
template<class T>
CStringBase< T > operator+ (const CStringBase< T > &s, const T *chars)
template<class T>
CStringBase< T > operator+ (const T *chars, const CStringBase< T > &s)
template<class T>
bool operator== (const CStringBase< T > &s1, const CStringBase< T > &s2)
template<class T>
bool operator< (const CStringBase< T > &s1, const CStringBase< T > &s2)
template<class T>
bool operator== (const T *s1, const CStringBase< T > &s2)
template<class T>
bool operator== (const CStringBase< T > &s1, const T *s2)
template<class T>
bool operator!= (const CStringBase< T > &s1, const CStringBase< T > &s2)
template<class T>
bool operator!= (const T *s1, const CStringBase< T > &s2)
template<class T>
bool operator!= (const CStringBase< T > &s1, const T *s2)

Variables

static const char * kTrimDefaultCharSet = " \n\t"


Typedef Documentation

typedef CStringBase<char> AString

Definition at line 590 of file String.h.

Definition at line 593 of file String.h.

Definition at line 599 of file String.h.

Definition at line 602 of file String.h.

typedef CStringBase<wchar_t> UString

Definition at line 591 of file String.h.

Definition at line 594 of file String.h.


Function Documentation

wchar_t MyCharUpper ( wchar_t  c  ) 

Definition at line 83 of file String.cpp.

Referenced by EnhancedMaskTest(), and MyStringCompareNoCase().

int MyStringCompare ( const wchar_t *  s1,
const wchar_t *  s2 
)

Definition at line 102 of file String.cpp.

int MyStringCompare ( const char *  s1,
const char *  s2 
)

Definition at line 90 of file String.cpp.

Referenced by CStringBase< wchar_t >::Compare().

int MyStringCompareNoCase ( const wchar_t *  s1,
const wchar_t *  s2 
)

Definition at line 114 of file String.cpp.

References MyCharUpper().

Referenced by CStringBase< wchar_t >::CompareNoCase().

template<class T>
T* MyStringCopy ( T *  dest,
const T *  src 
) [inline]

const wchar_t* MyStringGetNextCharPointer ( const wchar_t *  p  )  [inline]

Definition at line 36 of file String.h.

wchar_t* MyStringGetNextCharPointer ( wchar_t *  p  )  [inline]

Definition at line 34 of file String.h.

Referenced by CStringBase< wchar_t >::GetNextCharPointer().

const wchar_t* MyStringGetPrevCharPointer ( const wchar_t *  ,
const wchar_t *  p 
) [inline]

Definition at line 40 of file String.h.

wchar_t* MyStringGetPrevCharPointer ( const wchar_t *  ,
wchar_t *  p 
) [inline]

Definition at line 38 of file String.h.

Referenced by CStringBase< wchar_t >::GetPrevCharPointer().

template<class T>
int MyStringLen ( const T *  s  )  [inline]

Definition at line 19 of file String.h.

template<class T>
bool operator!= ( const CStringBase< T > &  s1,
const T *  s2 
) [inline]

Definition at line 587 of file String.h.

References CStringBase< T >::Compare().

template<class T>
bool operator!= ( const T *  s1,
const CStringBase< T > &  s2 
) [inline]

Definition at line 583 of file String.h.

References CStringBase< T >::Compare().

template<class T>
bool operator!= ( const CStringBase< T > &  s1,
const CStringBase< T > &  s2 
) [inline]

Definition at line 579 of file String.h.

References CStringBase< T >::Compare().

template<class T>
CStringBase<T> operator+ ( const T *  chars,
const CStringBase< T > &  s 
) [inline]

Definition at line 555 of file String.h.

template<class T>
CStringBase<T> operator+ ( const CStringBase< T > &  s,
const T *  chars 
) [inline]

Definition at line 547 of file String.h.

template<class T>
CStringBase<T> operator+ ( c,
const CStringBase< T > &  s 
) [inline]

Definition at line 539 of file String.h.

template<class T>
CStringBase<T> operator+ ( const CStringBase< T > &  s,
c 
) [inline]

Definition at line 531 of file String.h.

template<class T>
CStringBase<T> operator+ ( const CStringBase< T > &  s1,
const CStringBase< T > &  s2 
) [inline]

Definition at line 523 of file String.h.

template<class T>
bool operator< ( const CStringBase< T > &  s1,
const CStringBase< T > &  s2 
) [inline]

Definition at line 567 of file String.h.

template<class T>
bool operator== ( const CStringBase< T > &  s1,
const T *  s2 
) [inline]

Definition at line 575 of file String.h.

References CStringBase< T >::Compare().

template<class T>
bool operator== ( const T *  s1,
const CStringBase< T > &  s2 
) [inline]

Definition at line 571 of file String.h.

References CStringBase< T >::Compare().

template<class T>
bool operator== ( const CStringBase< T > &  s1,
const CStringBase< T > &  s2 
) [inline]

Definition at line 563 of file String.h.

References CStringBase< T >::Compare().


Variable Documentation

const char* kTrimDefaultCharSet = " \n\t" [static]

Definition at line 16 of file String.h.

Referenced by CStringBase< wchar_t >::GetTrimDefaultCharSet().


Generated on Sun May 25 00:19:55 2008 by  doxygen 1.5.6