BloombergLP::bslfmt::FormatterIntegralBase::formatPrefix

Write the output prefix for value into prefixStorage.

Synopsis

Declared in <bslfmt_formatterintegralbase.h>

template<class t_ACTUAL_VALUE_TYPE>
char*
formatPrefix(
    char* prefixStorage,
    int storageSize,
    t_ACTUAL_VALUE_TYPE value) const;

Description

Create the prefix for output of the specified value and write it into the character buffer starting at the specified prefixStorage and having the specified storageSize. Return the address one past the last character. Throw bsl::format_error if parsed format specification is intended for non-integer type.

Return Value

address one past the last character written

Parameters

NameDescription
prefixStoragebuffer that receives the prefix characters
storageSizesize of prefixStorage in characters
valuevalue whose format prefix is produced