A String class based on std::string. More...
#include <string>
#include <sstream>
#include <limits>
Go to the source code of this file.
Classes | |
class | Hypertable::NumericFormatterDigits |
The fast numeric formatters, very much inspired from http://cppformat.github.io/. More... | |
class | Hypertable::NumericFormatter< T > |
class | Hypertable::NumericSignedFormatter< T > |
class | Hypertable::NumericUnsignedFormatter< T > |
Namespaces | |
Hypertable | |
Hypertable definitions | |
Typedefs | |
typedef std::string | Hypertable::String |
A String is simply a typedef to std::string. More... | |
typedef long unsigned int | Hypertable::Lu |
Shortcut for printf formats. More... | |
typedef long long unsigned int | Hypertable::Llu |
Shortcut for printf formats. More... | |
typedef long long int | Hypertable::Lld |
Shortcut for printf formats. More... | |
typedef NumericUnsignedFormatter < uint8_t > | Hypertable::UInt8Formatter |
typedef NumericUnsignedFormatter < uint16_t > | Hypertable::UInt16Formatter |
typedef NumericUnsignedFormatter < uint32_t > | Hypertable::UInt32Formatter |
typedef NumericUnsignedFormatter < uint64_t > | Hypertable::UInt64Formatter |
typedef NumericSignedFormatter < int8_t > | Hypertable::Int8Formatter |
typedef NumericSignedFormatter < int16_t > | Hypertable::Int16Formatter |
typedef NumericSignedFormatter < int32_t > | Hypertable::Int32Formatter |
typedef NumericSignedFormatter < int64_t > | Hypertable::Int64Formatter |
Functions | |
String | Hypertable::format (const char *fmt,...) __attribute__((format(printf |
Returns a String using printf like format facilities Vanilla snprintf is about 1.5x faster than this, which is about: 10x faster than boost::format; 1.5x faster than std::string append (operator+=); 3.5x faster than std::string operator+;. More... | |
String | Hypertable::format_number (int64_t n, int sep= ',') |
Return decimal number string separated by a separator (default: comma) for every 3 digits. More... | |
String | Hypertable::format_bytes (size_t n, const void *buf, size_t len, const char *trailer="...") |
Return first n bytes of buffer with an optional trailer if the size of the buffer exceeds n. More... | |
template<class SequenceT > | |
String | Hypertable::format_list (const SequenceT &seq, const char *sep=", ") |
Return a string presentation of a sequence. More... | |
bool | Hypertable::strip_enclosing_quotes (const char *input, size_t input_len, const char **output, size_t *output_len) |
Strips enclosing quotes. More... | |
A String class based on std::string.
Definition in file String.h.