Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ssobjects::CStr Class Reference

#include <cstr.h>

Inheritance diagram for ssobjects::CStr::

ssobjects::FmtString List of all members.

Public Methods

virtual uint addError ()
virtual ~CStr ()
char* append (const char *pszString, uint nMaxChars=0, uint nKnownStringLength=0)
char* append (char nChar)
char* appendCRLF ()
char* appendNumber (int nValue)
char* appendNumber (uint nValue)
char* appendNumber (long nValue)
char* appendNumber (ulong nValue)
 CStr (const char *pszString, uint nMaxChars=0)
 CStr (CStr const &str)
 CStr ()
 operator char * ()
 operator char * () const
char* format (const char *pszFormat,...)
CStr& operator= (CStr const &s)
CStr& operator= (const char *pszString)
CStr& operator= (int iValue)
CStr& operator= (uint nValue)
char* operator+= (const char *pszString)
char* operator<< (const char *pszString)
char* operator+= (char nChar)
char* operator<< (char nChar)
char* operator+= (int nValue)
char* operator<< (int nValue)
char* operator+= (uint nValue)
char* operator<< (uint nValue)
bool operator== (int nValue) const
bool operator== (uint nValue) const
bool operator== (const char *pszString) const
bool operator!= (const char *pszString) const
bool isEmpty () const
bool isNotEmpty () const
uint getCharCount (char nChar) const
char& charAt (uint nIndex) const
void charAt (uint nIndex, char nChar)
int compare (const char *pszString) const
int compareNoCase (const char *pszString) const
int find (const char *pszSubString) const
int find (char nChar) const
CStr left (uint nCount) const
CStr mid (uint nFirst, uint nCount=0) const
CStr right (uint nCount) const
char* trimRight ()
char* trimLeft ()
char* trim ()
char* makeLower ()
char* makeUpper ()
uint getLength (bool bBuffer=false) const
uint strlen ()
void endWith (char nChar)
char* empty (bool bFreeBuffer=true, bool bResetErrorCount=true)
char* removeSection (uint nFirst, uint nRemoveCount=1)
char* replaceBuffer (char *pszString, uint nAllocatedMemorySize, uint nKnownStringLength=0)
char* replaceBuffer (CStr &strFrom)
char* replaceCharacters (char nFind, char nReplacement)
char* replaceFirstChar (char nChar, char nReplacement='\0')
char* replaceLastChar (char nChar, char nReplacement='\0')
uint getErrorCount () const
uintgetGranularity () const
char* stealBuffer ()
char* String () const
char* String (const char *pszString, uint nExtraBytes=0, uint nMaxChars=0, uint nKnownStringLength=0)
char* String (int nValue)
char* String (uint nValue)
char* String (long nValue)
char* String (ulong nValue)
void updateLength (uint nLength=0)

Protected Methods

CStr* duplicateOverlap (const char *pszString, bool &bDuplicateRequired)
void init (CStr const *pExisting=NULL)
char* replaceFirstOrLastChar (char nChar, char nReplacement, bool bFirst)

Protected Attributes

char* m_pszString
uint m_nLength
uint m_nAllocLength
uint m_nGranularity
uint m_nErrorCount

Constructor & Destructor Documentation

ssobjects::CStr::~CStr ( ) [inline, virtual]
 

ssobjects::CStr::CStr ( const char * pszString,
uint nMaxChars = 0 )
 

ssobjects::CStr::CStr ( CStr const & str )
 

ssobjects::CStr::CStr ( )
 


Member Function Documentation

char * ssobjects::CStr::String ( ulong nValue )
 

char * ssobjects::CStr::String ( long nValue )
 

char * ssobjects::CStr::String ( uint nValue ) [inline]
 

char * ssobjects::CStr::String ( int nValue ) [inline]
 

char * ssobjects::CStr::String ( const char * pszString,
uint nExtraBytes = 0,
uint nMaxChars = 0,
uint nKnownStringLength = 0 )
 

char * ssobjects::CStr::String ( ) const [inline]
 

uint ssobjects::CStr::addError ( ) [virtual]
 

char * ssobjects::CStr::append ( char nChar )
 

char * ssobjects::CStr::append ( const char * pszString,
uint nMaxChars = 0,
uint nKnownStringLength = 0 )
 

char * ssobjects::CStr::appendCRLF ( )
 

char * ssobjects::CStr::appendNumber ( ulong nValue ) [inline]
 

char * ssobjects::CStr::appendNumber ( long nValue ) [inline]
 

char * ssobjects::CStr::appendNumber ( uint nValue ) [inline]
 

char * ssobjects::CStr::appendNumber ( int nValue ) [inline]
 

void ssobjects::CStr::charAt ( uint nIndex,
char nChar )
 

char & ssobjects::CStr::charAt ( uint nIndex ) const
 

int ssobjects::CStr::compare ( const char * pszString ) const
 

int ssobjects::CStr::compareNoCase ( const char * pszString ) const
 

CStr * ssobjects::CStr::duplicateOverlap ( const char * pszString,
bool & bDuplicateRequired ) [protected]
 

char * ssobjects::CStr::empty ( bool bFreeBuffer = true,
bool bResetErrorCount = true )
 

void ssobjects::CStr::endWith ( char nChar )
 

int ssobjects::CStr::find ( char nChar ) const
 

int ssobjects::CStr::find ( const char * pszSubString ) const
 

char * ssobjects::CStr::format ( const char * pszFormat,
... )
 

uint ssobjects::CStr::getCharCount ( char nChar ) const
 

uint ssobjects::CStr::getErrorCount ( ) const [inline]
 

uint & ssobjects::CStr::getGranularity ( ) const [inline]
 

uint ssobjects::CStr::getLength ( bool bBuffer = false ) const
 

void ssobjects::CStr::init ( CStr const * pExisting = NULL ) [protected]
 

bool ssobjects::CStr::isEmpty ( ) const
 

bool ssobjects::CStr::isNotEmpty ( ) const
 

CStr ssobjects::CStr::left ( uint nCount ) const
 

char * ssobjects::CStr::makeLower ( )
 

char * ssobjects::CStr::makeUpper ( )
 

CStr ssobjects::CStr::mid ( uint nFirst,
uint nCount = 0 ) const
 

ssobjects::CStr::operator char * ( ) const
 

ssobjects::CStr::operator char * ( )
 

bool ssobjects::CStr::operator!= ( const char * pszString ) const
 

char * ssobjects::CStr::operator+= ( uint nValue ) [inline]
 

char * ssobjects::CStr::operator+= ( int nValue ) [inline]
 

char * ssobjects::CStr::operator+= ( char nChar ) [inline]
 

char * ssobjects::CStr::operator+= ( const char * pszString ) [inline]
 

char * ssobjects::CStr::operator<< ( uint nValue ) [inline]
 

char * ssobjects::CStr::operator<< ( int nValue ) [inline]
 

char * ssobjects::CStr::operator<< ( char nChar ) [inline]
 

char * ssobjects::CStr::operator<< ( const char * pszString ) [inline]
 

CStr & ssobjects::CStr::operator= ( uint nValue ) [inline]
 

CStr & ssobjects::CStr::operator= ( int iValue ) [inline]
 

CStr & ssobjects::CStr::operator= ( const char * pszString ) [inline]
 

CStr & ssobjects::CStr::operator= ( CStr const & s )
 

bool ssobjects::CStr::operator== ( const char * pszString ) const
 

bool ssobjects::CStr::operator== ( uint nValue ) const
 

bool ssobjects::CStr::operator== ( int nValue ) const
 

char * ssobjects::CStr::removeSection ( uint nFirst,
uint nRemoveCount = 1 )
 

char * ssobjects::CStr::replaceBuffer ( CStr & strFrom )
 

char * ssobjects::CStr::replaceBuffer ( char * pszString,
uint nAllocatedMemorySize,
uint nKnownStringLength = 0 )
 

char * ssobjects::CStr::replaceCharacters ( char nFind,
char nReplacement )
 

char * ssobjects::CStr::replaceFirstChar ( char nChar,
char nReplacement = '\0' ) [inline]
 

char * ssobjects::CStr::replaceFirstOrLastChar ( char nChar,
char nReplacement,
bool bFirst ) [protected]
 

char * ssobjects::CStr::replaceLastChar ( char nChar,
char nReplacement = '\0' ) [inline]
 

CStr ssobjects::CStr::right ( uint nCount ) const
 

char * ssobjects::CStr::stealBuffer ( )
 

uint ssobjects::CStr::strlen ( ) [inline]
 

char * ssobjects::CStr::trim ( )
 

char * ssobjects::CStr::trimLeft ( )
 

char * ssobjects::CStr::trimRight ( )
 

void ssobjects::CStr::updateLength ( uint nLength = 0 )
 


Member Data Documentation

uint ssobjects::CStr::m_nAllocLength [protected]
 

uint ssobjects::CStr::m_nErrorCount [protected]
 

uint ssobjects::CStr::m_nGranularity [protected]
 

uint ssobjects::CStr::m_nLength [protected]
 

char * ssobjects::CStr::m_pszString [protected]
 


The documentation for this class was generated from the following files:
Generated at Tue Sep 25 00:26:36 2001 for SimpleServerObjects by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001