#include <format.h>
Public Member Functions | |
format_int (int value) | |
format_int (long value) | |
format_int (long long value) | |
format_int (unsigned value) | |
format_int (unsigned long value) | |
format_int (unsigned long long value) | |
size_t | size () const |
const char * | data () const |
const char * | c_str () const |
std::string | str () const |
Private Types | |
enum | { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 } |
Private Member Functions | |
template<typename UInt > | |
char * | format_unsigned (UInt value) |
template<typename Int > | |
char * | format_signed (Int value) |
Private Attributes | |
char | buffer_ [buffer_size] |
char * | str_ |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
const char* c_str | ( | ) | const |
const char* data | ( | ) | const |
|
private |
Definition at line 3342 of file format.h.
References detail::format_decimal().
size_t size | ( | ) | const |
Returns the number of characters written to the output buffer.
Definition at line 3366 of file format.h.
References detail::to_unsigned().
std::string str | ( | ) | const |
|
mutableprivate |