|
|
static long | sbDefaultLength = 16 |
| |
|
static long | sbDefaultBoost = 16 |
| |
◆ StringBuffer()
| StringBuffer::StringBuffer |
( |
void | | ) |
|
Initializes an empty StringBuffer with a default initial capacity. This buffer dynamically grows as new characters are appended.
◆ ~StringBuffer()
| StringBuffer::~StringBuffer |
( |
void | | ) |
|
Frees the memory allocated for the string buffer.
◆ appendBuffer()
| void StringBuffer::appendBuffer |
( |
const char * | buffer, |
|
|
const long | length = -1 ) |
Appends a string or a buffer of specified length to the StringBuffer.
- Parameters
-
| buffer | The string or character buffer to append. |
| length | The length of the buffer, if known. If not, the length is inferred using strlen. |
◆ appendChar()
| void StringBuffer::appendChar |
( |
const char | c | ) |
|
Appends a single character to the end of the buffer, growing the buffer if needed.
- Parameters
-
| c | The character to append. |
◆ flip()
| void StringBuffer::flip |
( |
void | | ) |
|
◆ resetString()
| void StringBuffer::resetString |
( |
void | | ) |
|
Resets the StringBuffer to an empty state.
Clears the buffer content by resetting its length, but keeps the allocated memory.
◆ swap()
The documentation for this class was generated from the following files: