Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::PrintfFormatter< Char, ArgFormatter > Class Template Reference

#include <printf.h>

+ Inheritance diagram for fmt::PrintfFormatter< Char, ArgFormatter >:
+ Collaboration diagram for fmt::PrintfFormatter< Char, ArgFormatter >:

Public Member Functions

 PrintfFormatter (const ArgList &al, BasicWriter< Char > &w)
 
void format (BasicCStringRef< Char > format_str)
 

Private Member Functions

void parse_flags (FormatSpec &spec, const Char *&s)
 
internal::Arg get_arg (const Char *s, unsigned arg_index=(std::numeric_limits< unsigned >::max)())
 
unsigned parse_header (const Char *&s, FormatSpec &spec)
 
- Private Member Functions inherited from fmt::internal::FormatterBase
const ArgListargs () const
 
 FormatterBase (const ArgList &args)
 
Arg next_arg (const char *&error)
 
Arg get_arg (unsigned arg_index, const char *&error)
 
bool check_no_auto_index (const char *&error)
 
template<typename Char >
void write (BasicWriter< Char > &w, const Char *start, const Char *end)
 

Private Attributes

BasicWriter< Char > & writer_
 

Detailed Description

template<typename Char, typename ArgFormatter = PrintfArgFormatter<Char>>
class fmt::PrintfFormatter< Char, ArgFormatter >

This template formats data and writes the output to a writer.

Definition at line 312 of file printf.h.

Constructor & Destructor Documentation

◆ PrintfFormatter()

template<typename Char , typename ArgFormatter = PrintfArgFormatter<Char>>
fmt::PrintfFormatter< Char, ArgFormatter >::PrintfFormatter ( const ArgList & al,
BasicWriter< Char > & w )
inlineexplicit

\rst Constructs a PrintfFormatter object. References to the arguments and the writer are stored in the formatter object so make sure they have appropriate lifetimes. \endrst

Definition at line 335 of file printf.h.

+ Here is the caller graph for this function:

Member Function Documentation

◆ format()

template<typename Char , typename AF >
void fmt::PrintfFormatter< Char, AF >::format ( BasicCStringRef< Char > format_str)

Formats stored arguments and writes the output to the writer.

Definition at line 415 of file printf.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_arg()

template<typename Char , typename AF >
internal::Arg fmt::PrintfFormatter< Char, AF >::get_arg ( const Char * s,
unsigned arg_index = (std::numeric_limits<unsigned>::max)() )
private

Definition at line 369 of file printf.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_flags()

template<typename Char , typename AF >
void fmt::PrintfFormatter< Char, AF >::parse_flags ( FormatSpec & spec,
const Char *& s )
private

Definition at line 343 of file printf.h.

+ Here is the caller graph for this function:

◆ parse_header()

template<typename Char , typename AF >
unsigned fmt::PrintfFormatter< Char, AF >::parse_header ( const Char *& s,
FormatSpec & spec )
private

Definition at line 381 of file printf.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ writer_

template<typename Char , typename ArgFormatter = PrintfArgFormatter<Char>>
BasicWriter<Char>& fmt::PrintfFormatter< Char, ArgFormatter >::writer_
private

Definition at line 314 of file printf.h.


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