BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslfmt::FormatterCharacter_Imp< t_VALUE, t_CHAR > Struct Template Reference

#include <bslfmt_formattercharacter.h>

Inheritance diagram for bslfmt::FormatterCharacter_Imp< t_VALUE, t_CHAR >:
bslfmt::FormatterIntegralBase< t_VALUE, t_CHAR >

Detailed Description

template<class t_VALUE, class t_CHAR>
struct bslfmt::FormatterCharacter_Imp< t_VALUE, t_CHAR >

This type implements the formatter logic specific to the character types (char and wchar_t).

See bslfmt_formattercharacter

Public Member Functions

template<class t_FORMAT_CONTEXT >
t_FORMAT_CONTEXT::iterator format (t_VALUE value, t_FORMAT_CONTEXT &formatContext) const
 
- Public Member Functions inherited from bslfmt::FormatterIntegralBase< t_VALUE, t_CHAR >
template<class t_PARSE_CONTEXT >
BSLS_KEYWORD_CONSTEXPR_CPP20 t_PARSE_CONTEXT::iterator parse (t_PARSE_CONTEXT &parseContext)
 
template<class t_ACTUAL_VALUE_TYPE >
char * formatPrefix (char *prefixStorage, int storageSize, t_ACTUAL_VALUE_TYPE value) const
 
template<class t_ACTUAL_VALUE_TYPE >
t_CHAR * formatValue (t_CHAR *valueStorage, int storageSize, t_ACTUAL_VALUE_TYPE value) const
 
template<class t_FORMAT_CONTEXT >
t_FORMAT_CONTEXT::iterator outputValue (const char *prefixBegin, const char *prefixEnd, const t_CHAR *valueBegin, const t_CHAR *valueEnd, t_FORMAT_CONTEXT &formatContext) const
 
const StandardFormatSpecification< t_CHAR > & specification () const
 

Member Function Documentation

◆ format()

template<class t_VALUE , class t_CHAR >
template<class t_FORMAT_CONTEXT >
t_FORMAT_CONTEXT::iterator bslfmt::FormatterCharacter_Imp< t_VALUE, t_CHAR >::format ( t_VALUE  value,
t_FORMAT_CONTEXT &  formatContext 
) const
inline

Create string representation of the specified value, customized in accordance with the requested format and the specified formatContext, and copy it to the output that the output iterator of the formatContext points to. Return the output iterator incremented by the number of characters written.


The documentation for this struct was generated from the following file: