Added structure for Regular Expressions, saving work as a backup because of software upgrade.
This commit is contained in:
23
include/RegEx.h
Normal file
23
include/RegEx.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef REGEX_H
|
||||
#define REGEX_H
|
||||
|
||||
#include "util.h"
|
||||
#include "RegExState.h"
|
||||
#include "Symbol.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class RegEx {
|
||||
public:
|
||||
RegEx();
|
||||
RegEx(std::string inPattern);
|
||||
~RegEx();
|
||||
|
||||
int longMatch(std::string stringToMatch);
|
||||
std::string getPattern();
|
||||
private:
|
||||
std::string pattern;
|
||||
RegExState* begin;
|
||||
std::vector<RegExState*> currentStates;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user