MongoDB  2.1.1-pre-
Public Member Functions | Static Public Attributes
mongo::StringBuilder Class Reference

stringstream deals with locale so this is a lot faster than std::stringstream for UTF8 More...

#include <builder.h>

List of all members.

Public Member Functions

StringBuilderoperator<< (double x)
StringBuilderoperator<< (int x)
StringBuilderoperator<< (unsigned x)
StringBuilderoperator<< (long x)
StringBuilderoperator<< (unsigned long x)
StringBuilderoperator<< (long long x)
StringBuilderoperator<< (unsigned long long x)
StringBuilderoperator<< (short x)
StringBuilderoperator<< (char c)
void appendDoubleNice (double x)
void write (const char *buf, int len)
void append (const StringData &str)
StringBuilderoperator<< (const StringData &str)
void reset (int maxSize=0)
std::string str () const
int len () const

Static Public Attributes

static const size_t MONGO_DBL_SIZE = 3 + DBL_MANT_DIG - DBL_MIN_EXP
static const size_t MONGO_S32_SIZE = 12
static const size_t MONGO_U32_SIZE = 11
static const size_t MONGO_S64_SIZE = 23
static const size_t MONGO_U64_SIZE = 22
static const size_t MONGO_S16_SIZE = 7

Detailed Description

stringstream deals with locale so this is a lot faster than std::stringstream for UTF8


The documentation for this class was generated from the following file: