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 committed 2013-10-25 02:42:12 -07:00
1 parent 727529fe0b
commit 83af1b1c5a
3 files changed
+3 -38

No files matched your search

+1 -3
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