|
| CBofString () |
|
| CBofString (const char *pszBuf) |
|
| CBofString (const CBofString &stringSrc) |
|
| CBofString (char ch, int nRepeat=1) |
|
| CBofString (int nLength) |
|
| CBofString (char *pszBuff, int pszBuffLen) |
| This modifies the passed source string to null terminate the substring. More...
|
|
virtual | ~CBofString () |
|
int | getBufferSize () const |
|
int | getLength () const |
|
bool | isEmpty () const |
|
void | free () |
|
void | growTo (int nNewSize) |
|
char | getAt (int nIndex) |
|
char | operator[] (int nIndex) |
|
| operator const char * () const |
|
const char * | getBuffer () const |
|
int | hash () const |
|
void | copy (const char *pszSourceBuf) |
|
const CBofString & | operator= (const CBofString &cStringSrc) |
|
const CBofString & | operator= (char ch) |
|
const CBofString & | operator= (const char *psz) |
|
const CBofString & | operator+= (const CBofString &cString) |
|
const CBofString & | operator+= (char ch) |
|
const CBofString & | operator+= (const char *psz) |
|
int | compare (const char *lpsz) const |
|
int | compareNoCase (const char *lpsz) const |
|
CBofString | mid (int nFirst, int nCount) const |
|
CBofString | mid (int nFirst) const |
|
CBofString | left (int nCount) const |
|
CBofString | right (int nCount) const |
|
void | deleteLastChar () |
|
void | makeUpper () |
|
int | find (const char *lpszSub) const |
|
int | findNumOccurrences (const char *pszSub) |
|
void | replaceCharAt (int, char) |
|
void | replaceChar (char chOld, char chNew) |
|
void | replaceStr (const char *pszOld, const char *pszNew) |
|
char * | getBuffer () |
|
|
void | init () |
|
void | allocCopy (CBofString &dest, int nCopyLen, int nCopyIndex, int nExtraLen) const |
|
void | allocBuffer (int nLen) |
|
void | concatCopy (int nSrc1Len, const char *lpszSrc1Data, int nSrc2Len, const char *lpszSrc2Data, int nAllocLen=0) |
|
void | concatInPlace (int nSrcLen, const char *lpszSrcData) |
|
|
static int | safeStrlen (const char *lpsz) |
|
|
char * | _pszData |
|
uint16 | _nLength |
|
uint16 | _nBufferSize |
|
|
static bool | isValidObject (const CBofObject *pObject) |
|
◆ CBofString() [1/6]
Bagel::CBofString::CBofString |
( |
| ) |
|
◆ CBofString() [2/6]
Bagel::CBofString::CBofString |
( |
const char * |
pszBuf | ) |
|
Construct a string from a null terminated string
- Parameters
-
◆ CBofString() [3/6]
Bagel::CBofString::CBofString |
( |
const CBofString & |
stringSrc | ) |
|
Construct a string based on a source string
◆ CBofString() [4/6]
Bagel::CBofString::CBofString |
( |
char |
ch, |
|
|
int |
nRepeat = 1 |
|
) |
| |
Construct a string with a single character repeated a number of times
- Parameters
-
ch | Character to use |
nRepeat | Number of repeats |
◆ CBofString() [5/6]
Bagel::CBofString::CBofString |
( |
int |
nLength | ) |
|
Constructs a string, and sets initial buffer size
- Parameters
-
◆ CBofString() [6/6]
Bagel::CBofString::CBofString |
( |
char * |
pszBuff, |
|
|
int |
pszBuffLen |
|
) |
| |
This modifies the passed source string to null terminate the substring.
Construct a string based on a subset of a passed null terminated string
- Parameters
-
pszBuff | Source string |
pszBuffLen | Substring length |
◆ ~CBofString()
virtual Bagel::CBofString::~CBofString |
( |
| ) |
|
|
virtual |
◆ free()
void Bagel::CBofString::free |
( |
| ) |
|
De-Allocates internal buffer for current CBofString
◆ copy()
void Bagel::CBofString::copy |
( |
const char * |
pszSourceBuf | ) |
|
Copies specified string into current CBofString
- Parameters
-
◆ init()
void Bagel::CBofString::init |
( |
| ) |
|
|
protected |
◆ allocCopy()
void Bagel::CBofString::allocCopy |
( |
CBofString & |
dest, |
|
|
int |
nCopyLen, |
|
|
int |
nCopyIndex, |
|
|
int |
nExtraLen |
|
) |
| const |
|
protected |
Allocates specified string into specified destination
◆ allocBuffer()
void Bagel::CBofString::allocBuffer |
( |
int |
nLen | ) |
|
|
protected |
Allocates internal buffer for current CBofString
- Parameters
-
The documentation for this class was generated from the following file: