Write the output prefix for value into prefixStorage.
Declared in <bslfmt_formatterintegralbase.h>
template<class t_ACTUAL_VALUE_TYPE>
char*
formatPrefix(
char* prefixStorage,
int storageSize,
t_ACTUAL_VALUE_TYPE value) const;
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.
address one past the last character written
| Name | Description |
|---|---|
| prefixStorage | buffer that receives the prefix characters |
| storageSize | size of prefixStorage in characters |
| value | value whose format prefix is produced |