Rcpp Version 1.0.9
tinyformat::detail Namespace Reference

Classes

struct  is_convertible
 
struct  is_wchar
 
struct  is_wchar< wchar_t * >
 
struct  is_wchar< const wchar_t * >
 
struct  is_wchar< const wchar_t[n]>
 
struct  is_wchar< wchar_t[n]>
 
struct  formatValueAsType
 
struct  formatValueAsType< T, fmtT, true >
 
struct  convertToInt
 
struct  convertToInt< T, true >
 
class  FormatArg
 
class  FormatListN
 
class  FormatListN< 0 >
 

Functions

template<typename T >
void formatTruncated (std::ostream &out, const T &value, int ntrunc)
 
int parseIntAndAdvance (const char *&c)
 
const char * printFormatStringLiteral (std::ostream &out, const char *fmt)
 
const char * streamStateFromFormat (std::ostream &out, bool &spacePadPositive, int &ntrunc, const char *fmtStart, const detail::FormatArg *formatters, int &argIndex, int numFormatters)
 
void formatImpl (std::ostream &out, const char *fmt, const detail::FormatArg *formatters, int numFormatters)
 

Function Documentation

◆ formatImpl()

void tinyformat::detail::formatImpl ( std::ostream &  out,
const char *  fmt,
const detail::FormatArg formatters,
int  numFormatters 
)
inline

Definition at line 785 of file tinyformat.h.

References tinyformat::detail::FormatArg::format(), printFormatStringLiteral(), streamStateFromFormat(), and TINYFORMAT_ERROR.

Referenced by tinyformat::vformat().

Here is the call graph for this function:

◆ formatTruncated()

template<typename T >
void tinyformat::detail::formatTruncated ( std::ostream &  out,
const T &  value,
int  ntrunc 
)
inline

Definition at line 271 of file tinyformat.h.

References Rcpp::algorithm::min().

Referenced by tinyformat::formatValue().

Here is the call graph for this function:

◆ parseIntAndAdvance()

int tinyformat::detail::parseIntAndAdvance ( const char *&  c)
inline

Definition at line 546 of file tinyformat.h.

Referenced by streamStateFromFormat().

◆ printFormatStringLiteral()

const char* tinyformat::detail::printFormatStringLiteral ( std::ostream &  out,
const char *  fmt 
)
inline

Definition at line 560 of file tinyformat.h.

Referenced by formatImpl().

◆ streamStateFromFormat()

const char* tinyformat::detail::streamStateFromFormat ( std::ostream &  out,
bool &  spacePadPositive,
int &  ntrunc,
const char *  fmtStart,
const detail::FormatArg formatters,
int &  argIndex,
int  numFormatters 
)
inline

Definition at line 594 of file tinyformat.h.

References parseIntAndAdvance(), TINYFORMAT_ERROR, and tinyformat::detail::FormatArg::toInt().

Referenced by formatImpl().

Here is the call graph for this function: