Format value into buffer using cfg.

Synopses

Declared in <bdldfp_decimalimputil.h>

Format value into buffer using cfg.

static
int
format(
    char* buffer,
    int length,
    ValueType128 value,
    DecimalFormatConfig const& cfg);

Format value into buffer using cfg.

static
int
format(
    char* buffer,
    int length,
    ValueType32 value,
    DecimalFormatConfig const& cfg);

Format value into buffer using cfg.

static
int
format(
    char* buffer,
    int length,
    ValueType64 value,
    DecimalFormatConfig const& cfg);

Return Value

the length of the formatted value

Parameters

Name

Description

buffer

destination character buffer

length

capacity of buffer in characters

value

decimal value to format

cfg

formatting configuration

Created with MrDocs