Use std::string::substr() instead of adding one character at a time. This patch also removes a few unused util functions that are easily written using substr().

This commit is contained in:
Jason Orendorff
2013-10-25 02:42:12 -07:00
parent 727529fe0b
commit 83af1b1c5a
3 changed files with 3 additions and 38 deletions

View File

@@ -10,8 +10,6 @@
#include <sstream>
std::string intToString(int theInt);
std::string truncateEnd(std::string to_truncate);
std::string removeBeginning(std::string to_remove);
std::string replaceExEscape(std::string first, std::string search, std::string replace);
#endif
#endif