16 : _dest(dest), _regex_str(regex), _invalid(false), _expire(0)
18 if ( regcomp(&_regex, regex.c_str(), 0) )
33 : _dest(obj._dest), _regex_str(obj._regex_str), _invalid(obj._invalid)
35 if ( regcomp(&_regex, _regex_str.c_str(), 0) )
49 _regex_str = obj._regex_str;
50 _invalid = obj._invalid;
54 if ( regcomp(&_regex, obj._regex_str.c_str(), 0) )
66 if (_invalid)
return false;
71 int reti = regexec(&_regex, dest.c_str(), 0, NULL, 0);
78 else if( reti == REG_NOMATCH )
86 regerror(reti, &_regex, msgbuf,
sizeof(msgbuf));
100 ss << _regex_str <<
" => " << _dest.
getString();