StrMatcher implementation.
More...
List of all members.
Public Member Functions |
| Impl () |
| Impl (const std::string &search_r, const Match &flags_r) |
| ~Impl () |
void | compile () const |
| Compile the pattern.
|
bool | isCompiled () const |
| Whether the pattern is already compiled.
|
bool | doMatch (const char *string_r) const |
| Return whether string matches.
|
const std::string & | searchstring () const |
| The current searchstring.
|
void | setSearchstring (const std::string &string_r) |
| Set a new searchstring.
|
const Match & | flags () const |
| The current search flags.
|
void | setFlags (const Match &flags_r) |
| Set new search flags.
|
Related Functions |
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &str, const StrMatcher::Impl &obj) |
Detailed Description
StrMatcher implementation.
- Note:
- Take care to release any allocated regex by calling
::datamatcher_free
.
Definition at line 167 of file StrMatcher.cc.
Constructor & Destructor Documentation
zypp::StrMatcher::Impl::Impl |
( |
| ) |
|
|
inline |
zypp::StrMatcher::Impl::Impl |
( |
const std::string & |
search_r, |
|
|
const Match & |
flags_r |
|
) |
| |
|
inline |
zypp::StrMatcher::Impl::~Impl |
( |
| ) |
|
|
inline |
Member Function Documentation
void zypp::StrMatcher::Impl::compile |
( |
| ) |
const |
|
inline |
bool zypp::StrMatcher::Impl::isCompiled |
( |
| ) |
const |
|
inline |
Whether the pattern is already compiled.
Definition at line 199 of file StrMatcher.cc.
bool zypp::StrMatcher::Impl::doMatch |
( |
const char * |
string_r | ) |
const |
|
inline |
const std::string& zypp::StrMatcher::Impl::searchstring |
( |
| ) |
const |
|
inline |
void zypp::StrMatcher::Impl::setSearchstring |
( |
const std::string & |
string_r | ) |
|
|
inline |
const Match& zypp::StrMatcher::Impl::flags |
( |
| ) |
const |
|
inline |
void zypp::StrMatcher::Impl::setFlags |
( |
const Match & |
flags_r | ) |
|
|
inline |
void zypp::StrMatcher::Impl::invalidate |
( |
| ) |
|
|
inlineprivate |
Has to be called if _search or _flags change.
Definition at line 230 of file StrMatcher.cc.
Impl* zypp::StrMatcher::Impl::clone |
( |
| ) |
const |
|
inlineprivate |
Friends And Related Function Documentation
Member Data Documentation
std::string zypp::StrMatcher::Impl::_search |
|
private |
Match zypp::StrMatcher::Impl::_flags |
|
private |
scoped_ptr< ::_Datamatcher> zypp::StrMatcher::Impl::_matcher |
|
mutableprivate |
The documentation for this class was generated from the following file: