- /**
- Compiles a regular expression into NFA bytecode. When compiling a whole
- regex, \a group should be set to 0. When the function returns, \a group will
- be the index of the last subexpression and \a iter will point to the first
- unused character in the expression.
-
- \param expr Expression to be compiled
- \param begin Iterator into the expression
- \param group Group counter, gets incremented for each subregex
- \param branch Whether we are compiling a branch
+public:
+ /** Constructs a new Regex object from a string representation. */
+ Regex(const std::string &expr);