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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user