tinyformat::format

format overloads

Synopses

Declared in <tinyformat.h>

Format a bilingual string from a bilingual format string and its arguments.

template<typename... Args>
bilingual_str
format(
    util::BilingualFmt<sizeof...(Args)> fmt,
    Args const&... args);
» more...

Format list of arguments according to the given format string and return the result as a string.

template<typename... Args>
std::string
format(
    FormatStringCheck<sizeof...(Args)> fmt,
    Args const&... args);
» more...

Format list of arguments to the stream according to given format string.

template<typename... Args>
void
format(
    std::ostream& out,
    FormatStringCheck<sizeof...(Args)> fmt,
    Args const&... args);
» more...

Return Value

  • A bilingual_str with the original and translated text formatted independently.
  • The formatted result as a string.

Parameters

NameDescription
fmtThe bilingual format string.
argsThe format arguments, whose original/translated parts are selected per side.
outStream to write the formatted output to.