Example #1
0
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;
}
Example #2
0
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;

}
Example #3
0
const Regex &
Regex::operator = (const Regex & copy)
{
	if (this != &copy) {
		this->options = copy.options;

		if (re) {
			pcre_free(re); re = NULL;
		}
		re = clone_re(copy.re);
	}

	return *this;
}
Example #4
0
Regex::Regex(const Regex & copy)
{
	this->options = copy.options;
	re = clone_re(copy.re);
}