#include <format.h>
|
enum | { BUFFER_SIZE = std::numeric_limits<ULongLong>::digits10 + 3
} |
|
3139 {
BUFFER_SIZE = std::numeric_limits<ULongLong>::digits10 + 3};
fmt::FormatInt::FormatInt |
( |
int |
value | ) |
|
|
inlineexplicit |
const FieldDescriptor value
Definition: descriptor.h:1522
fmt::FormatInt::FormatInt |
( |
long |
value | ) |
|
|
inlineexplicit |
const FieldDescriptor value
Definition: descriptor.h:1522
fmt::FormatInt::FormatInt |
( |
LongLong |
value | ) |
|
|
inlineexplicit |
const FieldDescriptor value
Definition: descriptor.h:1522
fmt::FormatInt::FormatInt |
( |
unsigned |
value | ) |
|
|
inlineexplicit |
const FieldDescriptor value
Definition: descriptor.h:1522
fmt::FormatInt::FormatInt |
( |
unsigned long |
value | ) |
|
|
inlineexplicit |
const FieldDescriptor value
Definition: descriptor.h:1522
const FieldDescriptor value
Definition: descriptor.h:1522
const char* fmt::FormatInt::c_str |
( |
| ) |
const |
|
inline |
Returns a pointer to the output buffer content with terminating null character appended.
const char* fmt::FormatInt::data |
( |
| ) |
const |
|
inline |
Returns a pointer to the output buffer content. No terminating null character is appended.
char* fmt::FormatInt::format_decimal |
( |
ULongLong |
value | ) |
|
|
inlineprivate |
3146 while (
value >= 100) {
3150 unsigned index =
static_cast<unsigned>((
value % 100) * 2);
3156 *--buffer_end =
static_cast<char>(
'0' +
value);
3159 unsigned index =
static_cast<unsigned>(
value * 2);
static const char DIGITS[]
Definition: format.h:828
const FieldDescriptor value
Definition: descriptor.h:1522
void fmt::FormatInt::FormatSigned |
( |
LongLong |
value | ) |
|
|
inlineprivate |
3167 bool negative =
value < 0;
3169 abs_value = 0 - abs_value;
FMT_GCC_EXTENSION typedef unsigned long long ULongLong
Definition: format.h:362
const FieldDescriptor value
Definition: descriptor.h:1522
std::size_t fmt::FormatInt::size |
( |
| ) |
const |
|
inline |
Returns the number of characters written to the output buffer.
MakeUnsigned< Int >::Type to_unsigned(Int value)
Definition: format.h:554
std::string fmt::FormatInt::str |
( |
| ) |
const |
|
inline |
Returns the content of the output buffer as an std::string
.
3208 {
return std::string(
str_,
size()); }
char* fmt::FormatInt::str_ |
|
private |
The documentation for this class was generated from the following file: