const PME & PME::operator = (const PME & r){ re = clone_re(r.re); m_isglobal = r.m_isglobal; _opts = r._opts; nValid = r.nValid; extra = NULL; return *this; }
PME::PME(const PME & r ///< PME object to make copy of ) { reset ( ); m_isglobal = 0; _opts = r._opts; re = clone_re(r.re); extra = NULL; lastglobalposition = 0; nMatches = 0; }
const Regex & Regex::operator = (const Regex & copy) { if (this != ©) { this->options = copy.options; if (re) { pcre_free(re); re = NULL; } re = clone_re(copy.re); } return *this; }
Regex::Regex(const Regex & copy) { this->options = copy.options; re = clone_re(copy.re); }