mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
text: Removed replace_positional
This commit is contained in:
parent
060787a5db
commit
488673ea9a
2 changed files with 0 additions and 15 deletions
14
src/text.cpp
14
src/text.cpp
|
@ -363,17 +363,3 @@ const std::string obfuscateText (const std::string& input)
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void replace_positional (
|
|
||||||
std::string& fmt,
|
|
||||||
const std::string& from,
|
|
||||||
const std::string& to)
|
|
||||||
{
|
|
||||||
std::string::size_type pos = 0;
|
|
||||||
while ((pos = fmt.find (from, pos)) != std::string::npos)
|
|
||||||
{
|
|
||||||
fmt.replace (pos, from.length (), to);
|
|
||||||
pos += to.length ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
|
@ -46,7 +46,6 @@ const char* optionalBlankLine ();
|
||||||
bool nontrivial (const std::string&);
|
bool nontrivial (const std::string&);
|
||||||
int strippedLength (const std::string&);
|
int strippedLength (const std::string&);
|
||||||
const std::string obfuscateText (const std::string&);
|
const std::string obfuscateText (const std::string&);
|
||||||
void replace_positional (std::string&, const std::string&, const std::string&);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue