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

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

CStr::CStr const char *    pszString,
uint    nMaxChars = 0
 

CStr::CStr CStr const &    str
 

CStr::CStr  
 


Member Function Documentation

char * CStr::String ulong    nValue
 

char * CStr::String long    nValue
 

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

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

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

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

uint CStr::addError   [virtual]
 

char * CStr::append char    nChar
 

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

char * 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 CStr::charAt uint    nIndex,
char    nChar
 

char & CStr::charAt uint    nIndex const
 

int CStr::compare const char *    pszString const
 

int CStr::compareNoCase const char *    pszString const
 

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

char * CStr::empty bool    bFreeBuffer = true,
bool    bResetErrorCount = true
 

void CStr::endWith char    nChar
 

int CStr::find char    nChar const
 

int CStr::find const char *    pszSubString const
 

char * CStr::format const char *    fmt,
...   
 

uint CStr::getCharCount char    nChar const
 

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

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

uint CStr::getLength bool    bBuffer = false const
 

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

bool CStr::isEmpty   const
 

bool CStr::isNotEmpty   const
 

CStr CStr::left uint    nCount const
 

char * CStr::makeLower  
 

char * CStr::makeUpper  
 

CStr CStr::mid uint    nFirst,
uint    nCount = 0
const
 

CStr::operator char *   const
 

CStr::operator char *  
 

bool 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 & CStr::operator= CStr const &    s
 

bool CStr::operator== const char *    pszString const
 

bool CStr::operator== uint    nValue const
 

bool CStr::operator== int    nValue const
 

char * CStr::removeSection uint    nFirst,
uint    nRemoveCount = 1
 

char * CStr::replaceBuffer CStr &    strFrom
 

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

char * CStr::replaceCharacters char    nFind,
char    nReplacement
 

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

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

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

CStr CStr::right uint    nCount const
 

char * CStr::stealBuffer  
 

uint ssobjects::CStr::strlen   [inline]
 

char * CStr::trim  
 

char * CStr::trimLeft  
 

char * CStr::trimRight  
 

void 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 on Thu Nov 8 12:39:28 2001 for SimpleServerObjects by doxygen1.2.11 written by Dimitri van Heesch, © 1997-2001