Fixed regex! Much simpler and sensible implementation too.

This commit is contained in:
Nathan Braswell
2014-01-07 21:31:56 -05:00
parent 0297f29dcd
commit 0d47a03986
6 changed files with 92 additions and 167 deletions

View File

@@ -16,8 +16,7 @@ class RegEx {
RegEx(std::string inPattern);
~RegEx();
void construct();
void deperenthesize();
RegExState* construct(std::vector<RegExState*>* ending, std::string pattern);
int longMatch(std::string stringToMatch);
std::string getPattern();
std::string toString();

View File

@@ -12,5 +12,6 @@
std::string intToString(int theInt);
std::string replaceExEscape(std::string first, std::string search, std::string replace);
std::string strSlice(std::string str, int begin, int end);
int findPerenEnd(std::string str, int i);
#endif