#include <gstring.h>
Inheritance diagram for gStringGeneric:
Public Types | |
enum | eStrStrategy { e_StrDefault, e_StrAlloc, e_StrPreAlloc } |
Public Member Functions | |
virtual | ~gStringGeneric () |
virtual bool | IsEmpty () |
virtual unsigned | Length () |
virtual t_uchar | GetUChar (unsigned idx) |
virtual char | GetChar (unsigned idx) |
virtual char * | Str () |
virtual t_uchar * | UStr () |
virtual int | MinimumStorageSize () |
virtual int | MaximumStorageSize () |
virtual void | Reset () |
virtual void | SetEmpty () |
void | Set (char *s) |
void | Set (t_uchar *s) |
void | Set (int v) |
void | Set (unsigned v) |
unsigned | Add (char c) |
unsigned | Add (t_uchar c) |
unsigned | Add (char *s) |
unsigned | Add (t_uchar *s) |
unsigned | Add (int v) |
unsigned | Add (unsigned v) |
virtual void | UpString () |
virtual void | DownString () |
t_uchar & | operator[] (int index) |
virtual t_uchar * | ToString (t_uchar *uBuf) |
virtual bool | SaveGuts (FILE *f) |
virtual bool | RestoreGuts (FILE *f) |
Protected Member Functions | |
gStringGeneric (eStorage kind, eStrStrategy aStgy, t_uchar *s, unsigned aMaxSize) | |
void | thisPreAllocate (t_uchar *s, unsigned toSize) |
void | thisDelete () |
int | thisCopy (t_uchar *s, unsigned len) |
bool | thisIndex (unsigned &idx) |
bool | thisIsValidIndex (int index) |
virtual unsigned | thisSize () |
Protected Attributes | |
unsigned | size |
unsigned | preMaxSize |
unsigned | maxSize |
eStrStrategy | stgy |
t_uchar * | str |
bool | doRevalidateSize |
Static Protected Attributes | |
static t_uchar | myChrNul = 0 |
|
|
|
Definition at line 28 of file gstring.cpp. |
|
Definition at line 13 of file gstring.cpp. |
|
Definition at line 139 of file gstring.cpp. |
|
Definition at line 131 of file gstring.cpp. |
|
Reimplemented in gUniString. Definition at line 105 of file gstring.cpp. |
|
Reimplemented in gUniString. Definition at line 100 of file gstring.cpp. |
|
Reimplemented in gUniString. Definition at line 95 of file gstring.cpp. |
|
|
Reimplemented in gUniString. Definition at line 162 of file gstring.cpp. Referenced by gUniString::DownString(), and gHATypeEnum::gHATypeEnum(). |
|
|
|
Definition at line 43 of file gstring.cpp. Referenced by GetChar(). |
|
|
|
Reimplemented from gStorage. |
|
Reimplemented from gStorage. |
|
Reimplemented in gUniString. Definition at line 217 of file gstring.cpp. |
|
Reimplemented from gStorage. Definition at line 49 of file gstring.cpp. |
|
Implements gStorage. Reimplemented in gString, and gUniString. Definition at line 239 of file gstring.cpp. Referenced by gString::RestoreGuts(). |
|
Implements gStorage. Reimplemented in gString, and gUniString. Definition at line 232 of file gstring.cpp. Referenced by gString::SaveGuts(). |
|
Definition at line 80 of file gstring.cpp. |
|
Definition at line 74 of file gstring.cpp. |
|
Reimplemented in gUniString. Definition at line 67 of file gstring.cpp. |
|
|
|
|
Definition at line 274 of file gstring.cpp. Referenced by Add(), gString::CopyFromTo(), gString::gString(), gUniString::RestoreGuts(), RestoreGuts(), thisPreAllocate(), and gUniString::thisUniCopyFromTo(). |
|
Definition at line 267 of file gstring.cpp. Referenced by gUniString::RestoreGuts(), RestoreGuts(), Set(), SetEmpty(), thisCopy(), gUniString::thisUniCopyFromTo(), and ~gStringGeneric(). |
|
Definition at line 287 of file gstring.cpp. Referenced by GetUChar(). |
|
Definition at line 298 of file gstring.cpp. Referenced by gUniString::operator[](), and operator[](). |
|
Definition at line 258 of file gstring.cpp. Referenced by gStringGeneric(), Set(), and SetEmpty(). |
|
Definition at line 308 of file gstring.cpp. Referenced by DownString(), IsEmpty(), Length(), and UpString(). |
|
Implements gStorage. Reimplemented in gDirName, gString, and gUniString. Definition at line 224 of file gstring.cpp. Referenced by gString::ToString(). |
|
|
Definition at line 38 of file gstring.cpp. Referenced by Add(), Str(), and gParamVal::ToString(). |
|
Definition at line 76 of file gstring.h. Referenced by gString::CopyFromTo(), gUniString::operator[](), operator[](), thisSize(), and gUniString::thisUniCopyFromTo(). |
|
Definition at line 73 of file gstring.h. Referenced by thisCopy(). |
|
Definition at line 8 of file gstring.cpp. Referenced by GetUChar(), gUniString::operator[](), and operator[](). |
|
Definition at line 73 of file gstring.h. Referenced by gStringGeneric(), Set(), and thisCopy(). |
|
Definition at line 73 of file gstring.h. Referenced by Add(), gString::Delete(), DownString(), thisCopy(), thisDelete(), thisIndex(), thisIsValidIndex(), thisSize(), gUniString::thisUniDelete(), and UpString(). |
|
Definition at line 74 of file gstring.h. Referenced by thisPreAllocate(). |
|