41 match(
const int s,
const int e,
const string& t) :
start(
s),
end(e), type(t) { }
Abstract class to provide interface to scanners.
virtual void ScanFile(const string &fileName, list< match > &results) const
Helper function to scan file.
virtual void ScanString(const string &s, list< match > &results) const =0
Scan the given string and add matches to results.
int s
The socket that the CLI will use to communicate.
bool operator==(const match &m1, const match &m2)
Compare two regex match.
bool operator!=(const match &m1, const match &m2)
Compare two regex match.
bool ReadFileToString(const string &fileName, string &out)
Utility: read file to string from scanners.h.
list_t type structure used to keep various lists. (e.g. there are multiple lists).
Store the results of a regex match.