A string class that uses a cstring buffer that is fixed in memory. More...
#include <string.h>
Public Member Functions | |
void | operator= (string &object) |
Assign the text of a string to our object. | |
void | operator= (const char *text) |
Assign null terminated text to our object. | |
memstring (void *memory, strsize_t size, char fill=0) | |
Create an instance of a memory string. | |
~memstring () | |
Destroy memory string. | |
Static Public Member Functions | |
static memstring * | create (strsize_t size, char fill=0) |
Create a memory string with memory allocated from the heap. | |
static memstring * | create (mempager *pager, strsize_t size, char fill=0) |
Create a memory string with memory allocated from a pager. | |
Static Public Attributes | |
static const size_t | header |
Protected Member Functions | |
cstring * | c_copy (void) const |
Return cstring to use in copy constructors. |
A string class that uses a cstring buffer that is fixed in memory.
This allows one to manipulate a fixed buffer of text in memory through the string class. The size of the memory used must include space for the overhead() size needed for the cstring object control data.
Definition at line 1423 of file string.h.
ucc::memstring::memstring | ( | void * | memory, | |
strsize_t | size, | |||
char | fill = 0 | |||
) |
cstring* ucc::memstring::c_copy | ( | void | ) | const [protected, virtual] |
Return cstring to use in copy constructors.
Is virtual for memstring.
Reimplemented from ucc::string.
void ucc::memstring::operator= | ( | const char * | text | ) | [inline] |
Assign null terminated text to our object.
text | to copy. |
Reimplemented from ucc::string.
Reimplemented in ucc::stringbuf< S >.
void ucc::memstring::operator= | ( | string & | object | ) | [inline] |
Assign the text of a string to our object.
object | to copy text from. |
Reimplemented in ucc::stringbuf< S >.