Represents an in-memory output stream. More...
#include <fwd.h>
Public Types | |
typedef Encoding::Ch | Ch |
Public Member Functions | |
GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity) | |
void | Put (Ch c) |
void | PutUnsafe (Ch c) |
void | Flush () |
void | Clear () |
void | ShrinkToFit () |
void | Reserve (size_t count) |
Ch * | Push (size_t count) |
Ch * | PushUnsafe (size_t count) |
void | Pop (size_t count) |
const Ch * | GetString () const |
size_t | GetSize () const |
Get the size of string in bytes in the string buffer. More... | |
size_t | GetLength () const |
Get the length of string in Ch in the string buffer. More... | |
Public Attributes | |
internal::Stack< Allocator > | stack_ |
Static Public Attributes | |
static const size_t | kDefaultCapacity = 256 |
Private Member Functions | |
GenericStringBuffer (const GenericStringBuffer &) | |
GenericStringBuffer & | operator= (const GenericStringBuffer &) |
Represents an in-memory output stream.
Encoding | Encoding of the stream. |
Allocator | type for allocating memory buffer. |
typedef Encoding::Ch GenericStringBuffer< Encoding, Allocator >::Ch |
Definition at line 43 of file stringbuffer.h.
|
inline |
Definition at line 45 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 60 of file stringbuffer.h.
|
inline |
Definition at line 58 of file stringbuffer.h.
|
inline |
|
inline |
|
inline |
Definition at line 73 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 71 of file stringbuffer.h.
|
inline |
Definition at line 69 of file stringbuffer.h.
|
inline |
Definition at line 70 of file stringbuffer.h.
|
inline |
Definition at line 56 of file stringbuffer.h.
|
inline |
Definition at line 57 of file stringbuffer.h.
|
inline |
Definition at line 68 of file stringbuffer.h.
|
inline |
Definition at line 61 of file stringbuffer.h.
|
static |
Definition at line 87 of file stringbuffer.h.
|
mutable |
Definition at line 88 of file stringbuffer.h.