Newton Dynamics  4.00
ndString Class Reference
Inheritance diagram for ndString:
ndClassAlloc

Classes

class  ndStringAllocator
 

Public Member Functions

D_CORE_API ndString (char chr)
 
D_CORE_API ndString (const ndString &src)
 
D_CORE_API ndString (const char *const data)
 
D_CORE_API ndString (const char *const data, ndInt32 maxSize)
 
D_CORE_API ndString (ndInt32 val)
 
D_CORE_API ndString (ndUnsigned64 val)
 
char & operator[] (ndInt32 index)
 
char operator[] (ndInt32 index) const
 
D_CORE_API ndStringoperator= (const ndString &src)
 
bool operator== (const ndString &src) const
 
bool operator!= (const ndString &src) const
 
bool operator< (const ndString &src) const
 
bool operator> (const ndString &src) const
 
bool operator<= (const ndString &src) const
 
bool operator>= (const ndString &src) const
 
D_CORE_API void operator+= (const char *const src)
 
void operator+= (const ndString &src)
 
ndString operator+ (const char *const src) const
 
ndString operator+ (const ndString &src) const
 
D_CORE_API ndInt32 Find (char ch, ndInt32 from=0) const
 
ndInt32 Find (const ndString &subString, ndInt32 from=0) const
 
D_CORE_API ndInt32 Find (const char *const subString, ndInt32 from=0, ndInt32 lenght=0x7ffffff) const
 
D_CORE_API void Replace (ndInt32 start, ndInt32 size, const char *const str, ndInt32 strSize)
 
void Replace (ndInt32 start, ndInt32 size, const ndString &str)
 
void Clear ()
 
void Empty ()
 
D_CORE_API void ToUpper ()
 
D_CORE_API void ToLower ()
 
D_CORE_API ndInt32 ToInteger () const
 
D_CORE_API ndFloat64 ToFloat () const
 
D_CORE_API ndUnsigned64 ToInteger64 () const
 
ndInt32 Size () const
 
ndInt32 Capacity () const
 
D_CORE_API void Expand (ndInt32 size)
 
D_CORE_API void LoadFile (FILE *const file)
 
ndString SubString (ndInt32 start=0, ndInt32 size=0x7fffffff) const
 
const char * GetStr () const
 
- Public Member Functions inherited from ndClassAlloc
 ndClassAlloc ()
 Empty default constructor.
 
 ~ndClassAlloc ()
 Empty.
 

Protected Member Functions

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

Protected Attributes

char * m_string
 
ndInt32 m_size
 
ndInt32 m_capacity
 

Additional Inherited Members

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