stringbuffer.h Source File#
stringbuffer.h
Go to the documentation of this file.
GenericStringBuffer(Allocator *allocator=0, size_t capacity=kDefaultCapacity)
Definition stringbuffer.h:46
size_t GetSize() const
Get the size of string in bytes in the string buffer.
Definition stringbuffer.h:89
UTF8< char >::Ch Ch
Definition stringbuffer.h:44
internal::Stack< CrtAllocator > stack_
Definition stringbuffer.h:95
size_t GetLength() const
Get the length of string in Ch in the string buffer.
Definition stringbuffer.h:92
static const size_t kDefaultCapacity
Definition stringbuffer.h:94
Concept for allocating, resizing and freeing memory block.
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition rapidjson.h:121
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition rapidjson.h:124
STL namespace.
void PutUnsafe(GenericStringBuffer< Encoding, Allocator > &stream, typename Encoding::Ch c)
Definition stringbuffer.h:113
void PutN(GenericStringBuffer< UTF8<> > &stream, char c, size_t n)
Implement specialized version of PutN() with memset() for better performance.
Definition stringbuffer.h:120
void PutReserve(GenericStringBuffer< Encoding, Allocator > &stream, size_t count)
Definition stringbuffer.h:107