Merge pull request #1 from jorendorff/master

Merge jorendoff's very kind cleanup (and tests!) of StringReader code
This commit is contained in:
Nathan Braswell
2013-10-26 08:51:37 -07:00
5 changed files with 95 additions and 88 deletions

View File

@@ -14,8 +14,10 @@ class StringReader
void setString(std::string inputString);
std::string word(bool truncateEnd = true);
std::string line(bool truncateEnd = true);
std::string getTokens(std::vector<std::string> get_chars, bool truncateEnd = true);
std::string getTokens(const char *get_chars, bool truncateEnd = true);
std::string truncateEnd(std::string to_truncate);
static void test();
protected:
private:
std::string rd_string;

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