mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 07:57:20 +02:00
Text
- Added formatter for <int, int, std::string>. There cannot be many combinations remaining.
This commit is contained in:
parent
9bea83c2c3
commit
f8bb948b90
2 changed files with 15 additions and 0 deletions
14
src/text.cpp
14
src/text.cpp
|
@ -972,6 +972,20 @@ const std::string format (
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
const std::string format (
|
||||||
|
const std::string& fmt,
|
||||||
|
int arg1,
|
||||||
|
int arg2,
|
||||||
|
const std::string& arg3)
|
||||||
|
{
|
||||||
|
std::string output = fmt;
|
||||||
|
replace_positional (output, "{1}", format (arg1));
|
||||||
|
replace_positional (output, "{2}", format (arg2));
|
||||||
|
replace_positional (output, "{3}", arg3);
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
const std::string format (
|
const std::string format (
|
||||||
const std::string& fmt,
|
const std::string& fmt,
|
||||||
|
|
|
@ -78,6 +78,7 @@ const std::string format (const std::string&, int);
|
||||||
const std::string format (const std::string&, const std::string&, const std::string&);
|
const std::string format (const std::string&, const std::string&, const std::string&);
|
||||||
const std::string format (const std::string&, const std::string&, int);
|
const std::string format (const std::string&, const std::string&, int);
|
||||||
const std::string format (const std::string&, const std::string&, double);
|
const std::string format (const std::string&, const std::string&, double);
|
||||||
|
const std::string format (const std::string&, int, int, const std::string&);
|
||||||
const std::string format (const std::string&, int, const std::string&);
|
const std::string format (const std::string&, int, const std::string&);
|
||||||
const std::string format (const std::string&, int, int);
|
const std::string format (const std::string&, int, int);
|
||||||
const std::string format (const std::string&, int, int, int);
|
const std::string format (const std::string&, int, int, int);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue