nrex::~nrex() { if (_root) { NREX_DELETE(_root); } }
virtual ~nrex_node_quantifier() { if (child) { NREX_DELETE(child); } }
virtual ~nrex_node() { if (next) { NREX_DELETE(next); } }
virtual ~nrex_node_group() { for (unsigned int i = 0; i < childset.size(); ++i) { NREX_DELETE(childset[i]); } }
void nrex::reset() { _capturing = 0; if (_root) { NREX_DELETE(_root); } _root = NULL; }
void nrex::reset() { _capturing = 0; _lookahead_depth = 0; if (_root) { NREX_DELETE(_root); } _root = NULL; }
void pop_back() { if (back) { nrex_node* old = back; if (!old->previous) { childset.pop(); } if (mode != Bracket) { increment_length(old->length, true); } back = old->previous; NREX_DELETE(old); } }