text: Removed replace_positional

This commit is contained in:
Paul Beckingham 2016-12-06 07:25:41 -05:00
parent 060787a5db
commit 488673ea9a
2 changed files with 0 additions and 15 deletions

View file

@ -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 ();
}
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -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
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////