#include <CString.h>
Public Member Functions | |
| BengCString (void) | |
| Creates a BengCString object. The string will initialize as NULL, so you must give it data using set(). | |
| ~BengCString (void) | |
| Destroys the BengCString object, deallocating the string, if any. | |
| char * | set (const char *text) |
| Changes the contents of the string to 'text', allocating or reallocating as necessary to provide enough room. | |
| char * | append (const char *text) |
| Adds the contents of 'text' to the end of the current string, reallocating to provide enough extra room. | |
Public Attributes | |
| char * | string |
| BengCString::BengCString | ( | void | ) |
Creates a BengCString object. The string will initialize as NULL, so you must give it data using set().
| BengCString::~BengCString | ( | void | ) |
Destroys the BengCString object, deallocating the string, if any.
| char* BengCString::append | ( | const char * | text | ) |
Adds the contents of 'text' to the end of the current string, reallocating to provide enough extra room.
| char* BengCString::set | ( | const char * | text | ) |
Changes the contents of the string to 'text', allocating or reallocating as necessary to provide enough room.
| char* BengCString::string |
Contains the C string data. Since this class has no internals, you will be able to perform manual operations on it, but it is advised that you use the class methods to operate on the string where possible.
1.5.8