Text Formatting

- Added a format overload for three integers.
This commit is contained in:
Paul Beckingham 2013-04-01 15:50:16 -04:00
parent 1de2f9e6f1
commit d14a9cacec
2 changed files with 15 additions and 0 deletions

View file

@ -1011,6 +1011,20 @@ const std::string format (
return output;
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (
const std::string& fmt,
int arg1,
int arg2,
int arg3)
{
std::string output = fmt;
replace_positional (output, "{1}", format (arg1));
replace_positional (output, "{2}", format (arg2));
replace_positional (output, "{3}", format (arg3));
return output;
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (
const std::string& fmt,