BloombergLP::bslalg::NumericFormatterUtil::toChars

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;
» more...

Format floating-point value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    float value) noexcept;
» more...

Format the specified character value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    char value,
    int base = 10) noexcept;
» more...

Format floating-point value using the specified format.

static
char*
toChars(
    char* first,
    char* last,
    double value,
    Format format) noexcept;
» more...

Format floating-point value using the specified format.

static
char*
toChars(
    char* first,
    char* last,
    float value,
    Format format) noexcept;
» more...

Format the specified signed integer value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    int value,
    int base = 10) noexcept;
» more...

Format the specified signed long integer value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    long value,
    int base = 10) noexcept;
» more...

Format value in the specified base into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    long long value,
    int base = 10) noexcept;
» more...

Format the specified signed short integer value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    short value,
    int base = 10) noexcept;
» more...

Format the specified signed character value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    signed char value,
    int base = 10) noexcept;
» more...

Format the specified unsigned character value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    unsigned char value,
    int base = 10) noexcept;
» more...

Format the specified unsigned integer value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    unsigned int value,
    int base = 10) noexcept;
» more...

Format the specified unsigned long integer value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    unsigned long value,
    int base = 10) noexcept;
» more...

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;
» more...

Format the specified integer value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    unsigned short value,
    int base = 10) noexcept;
» more...

Format floating-point value using format and precision.

static
char*
toChars(
    char* first,
    char* last,
    double value,
    Format format,
    int precision) noexcept;
» more...

Format the specified float value into [first, last)].

static
char*
toChars(
    char* first,
    char* last,
    float value,
    Format format,
    int precision) noexcept;
» more...

Return Value

pointer past the last character written, or null on failure

Parameters

NameDescription
firstbeginning of the output character range
lastend of the output character range
valuefloating-point value to format
basenumeric base for formatting
formatfloating-point formatting style
precisionnumber of digits after the radix point