Newton Dynamics  4.00
dString Class Reference
Inheritance diagram for dString:
dClassAlloc

Classes

class  dStringAllocator
 

Public Member Functions

D_CORE_API dString (char chr)
 
D_CORE_API dString (const dString &src)
 
D_CORE_API dString (const char *const data)
 
D_CORE_API dString (const char *const data, dInt32 maxSize)
 
D_CORE_API dString (dInt32 val)
 
D_CORE_API dString (dUnsigned64 val)
 
char & operator[] (dInt32 index)
 
char operator[] (dInt32 index) const
 
D_CORE_API dStringoperator= (const dString &src)
 
bool operator== (const dString &src) const
 
bool operator!= (const dString &src) const
 
bool operator< (const dString &src) const
 
bool operator> (const dString &src) const
 
bool operator<= (const dString &src) const
 
bool operator>= (const dString &src) const
 
D_CORE_API void operator+= (const char *const src)
 
void operator+= (const dString &src)
 
dString operator+ (const char *const src) const
 
dString operator+ (const dString &src) const
 
D_CORE_API dInt32 Find (char ch, dInt32 from=0) const
 
dInt32 Find (const dString &subString, dInt32 from=0) const
 
D_CORE_API dInt32 Find (const char *const subString, dInt32 from=0, dInt32 lenght=0x7ffffff) const
 
D_CORE_API void Replace (dInt32 start, dInt32 size, const char *const str, dInt32 strSize)
 
void Replace (dInt32 start, dInt32 size, const dString &str)
 
void Clear ()
 
void Empty ()
 
D_CORE_API void ToUpper ()
 
D_CORE_API void ToLower ()
 
D_CORE_API dInt32 ToInteger () const
 
D_CORE_API dFloat64 ToFloat () const
 
D_CORE_API dUnsigned64 ToInteger64 () const
 
dInt32 Size () const
 
dInt32 Capacity () const
 
D_CORE_API void Expand (dInt32 size)
 
D_CORE_API void LoadFile (FILE *const file)
 
dString SubString (dInt32 start=0, dInt32 size=0x7fffffff) const
 
const char * GetStr () const
 
- Public Member Functions inherited from dClassAlloc
 dClassAlloc ()
 Empty.
 
 ~dClassAlloc ()
 Empty.
 
void * operator new (size_t size)
 Overloaded operator new for any subclass derived from dClassAlloc.
 
void operator delete (void *ptr)
 Overloaded operator delete for any subclass derived from dClassAlloc.
 

Protected Member Functions

char * AllocMem (dInt32 size)
 
void FreeMem (char *const ptr)
 
D_CORE_API dString (const dString &src, const char *const concatenate, dInt32 maxSize)
 

Protected Attributes

char * m_string
 
dInt32 m_size
 
dInt32 m_capacity
 

Additional Inherited Members

- Static Public Member Functions inherited from dClassAlloc
static D_CORE_API void * Malloc (size_t size)
 Generic allocation for any function subclass from dClassAlloc.
 
static D_CORE_API void Free (void *const ptr)
 Generic destruction for any function subclass from dClassAlloc.