18 : _dest(dest), _regex_str(regex), _invalid(false), _expire(0)
20 if ( regcomp(&_regex, regex.c_str(), 0) )
35 : _dest(obj._dest), _regex_str(obj._regex_str), _invalid(obj._invalid)
37 if ( regcomp(&_regex, _regex_str.c_str(), 0) )
51 _regex_str = obj._regex_str;
52 _invalid = obj._invalid;
56 if ( regcomp(&_regex, obj._regex_str.c_str(), 0) )
68 if (_invalid)
return false;
73 int reti = regexec(&_regex, dest.c_str(), 0, NULL, 0);
80 else if( reti == REG_NOMATCH )
88 regerror(reti, &_regex, msgbuf,
sizeof(msgbuf));
101 std::stringstream ss;
102 ss << _regex_str <<
" => " << _dest.
getString();
120 return (_regex_str == r._regex_str) && (_dest == r._dest);
121 }
catch (
const std::bad_cast&) {