format overloads

Synopses

Declared in <bdldfp_decimalimputil.h>

Format the specified value, according to the parameters in the specified cfg. Place the output in the buffer designated by the specified buffer and length, and return the length of the formatted value. If there is insufficient room in the buffer, its contents will be left in an unspecified state, with the returned value indicating the necessary size. This function does not write a terminating null character. If length is not positive, buffer is permitted to be null. This can be used to determine the necessary buffer size. See the section for information on the configuration attributes.

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

Format the specified ValueType64 using the specified configuration. Format the specified decimal value into buffer.

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

Format the specified value into buffer using the specified cfg.

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

Created with MrDocs