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);
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);
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);
Return Value
-
A bilingual_str with the original and translated text formatted independently.
-
The formatted result as a string.
Parameters
Name |
Description |
fmt |
The bilingual format string. |
args |
The format arguments, whose original/translated parts are selected per side. |
out |
Stream to write the formatted output to. |
Created with MrDocs