#include <maxchar.h>
Character accumulator.
Concatenate "Char" object to form a character string.
Public Member Functions |
|
CharAccumulator () | |
Construct a new empty character accumulator.
|
|
~CharAccumulator () | |
Destructor. |
|
operator MCHAR * () const | |
Get the string pointer. |
|
MCHAR * | Get () const |
Get the string pointer. |
|
CharAccumulator & | operator+= (const Char &) |
Add a character at the end of this string.
|
|
void | Reset () |
Reset this accumulator. |
|
Char | LastCharacter () const |
Obtain the last character in this
accumulator. |
|
Char | RemoveLastCharacter () |
Remove the last character of this
accumulator. |
|
size_t | Length () const |
Return the number of MCHAR already in the
accumulator. |
|
Protected Attributes |
|
MCHAR * | _buf |
size_t | _len |
size_t | _allocated |
CharAccumulator | ( | ) |
Construct a new empty character accumulator.
~CharAccumulator | ( | ) |
Destructor.
During cleanup the underlying string is freed.
operator MCHAR * | ( | ) | const |
Get the string pointer.
MCHAR* Get | ( | ) | const |
Get the string pointer.
CharAccumulator& operator+= | ( | const Char & | ) |
Add a character at the end of this string.
void Reset | ( | ) |
Reset this accumulator.
Char LastCharacter | ( | ) | const |
Obtain the last character in this accumulator.
Char RemoveLastCharacter | ( | ) |
Remove the last character of this accumulator.
size_t Length | ( | ) | const [inline] |
MCHAR*
_buf [protected] |
size_t
_len [protected] |
size_t
_allocated [protected] |