|
MongoDB
2.1.1-pre-
|
stringstream deals with locale so this is a lot faster than std::stringstream for UTF8 More...
#include <builder.h>
Public Member Functions | |
| StringBuilder & | operator<< (double x) |
| StringBuilder & | operator<< (int x) |
| StringBuilder & | operator<< (unsigned x) |
| StringBuilder & | operator<< (long x) |
| StringBuilder & | operator<< (unsigned long x) |
| StringBuilder & | operator<< (long long x) |
| StringBuilder & | operator<< (unsigned long long x) |
| StringBuilder & | operator<< (short x) |
| StringBuilder & | operator<< (char c) |
| void | appendDoubleNice (double x) |
| void | write (const char *buf, int len) |
| void | append (const StringData &str) |
| StringBuilder & | operator<< (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 |
stringstream deals with locale so this is a lot faster than std::stringstream for UTF8
1.8.0