toChars overloads
Synopses
Declared in <bslalg_numericformatterutil.h>
Format floating‐point value into [first, last)].
static
char*
toChars(
char* first,
char* last,
double value) noexcept;
Format floating‐point value into [first, last)].
static
char*
toChars(
char* first,
char* last,
float value) noexcept;
Format the specified character value into [first, last)].
static
char*
toChars(
char* first,
char* last,
char value,
int base = 10) noexcept;
Format floating‐point value using the specified format.
Format floating‐point value using the specified format.
Format the specified signed integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
int value,
int base = 10) noexcept;
Format the specified signed long integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
long value,
int base = 10) noexcept;
Format value in the specified base into [first, last)].
static
char*
toChars(
char* first,
char* last,
long long value,
int base = 10) noexcept;
Format the specified signed short integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
short value,
int base = 10) noexcept;
Format the specified signed character value into [first, last)].
static
char*
toChars(
char* first,
char* last,
signed char value,
int base = 10) noexcept;
Format the specified unsigned character value into [first, last)].
static
char*
toChars(
char* first,
char* last,
unsigned char value,
int base = 10) noexcept;
Format the specified unsigned integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
unsigned int value,
int base = 10) noexcept;
Format the specified unsigned long integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
unsigned long value,
int base = 10) noexcept;
Format the specified unsigned long long integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
unsigned long long value,
int base = 10) noexcept;
Format the specified integer value into [first, last)].
static
char*
toChars(
char* first,
char* last,
unsigned short value,
int base = 10) noexcept;
Format floating‐point value using format and precision.
Format the specified float value into [first, last)].
Return Value
pointer past the last character written, or null on failure
Parameters
Name |
Description |
first |
beginning of the output character range |
last |
end of the output character range |
value |
floating‐point value to format |
base |
numeric base for formatting |
format |
floating‐point formatting style |
precision |
number of digits after the radix point |
Created with MrDocs