Text Formatting
- Added a format overload for three integers.
This commit is contained in:
14
src/text.cpp
14
src/text.cpp
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user