wordRes::matcher Struct Reference

Functor wrapper of a list of wordRe for matching. More...

Public Member Functions

 matcher (const UList< wordRe > &selectors) noexcept
 Construct with select matcher(s) More...
 
bool empty () const noexcept
 No selectors defined. More...
 
bool operator() (const std::string &text) const
 True if text matches ANY of the selectors. Always false if entries are empty. More...
 

Detailed Description

Functor wrapper of a list of wordRe for matching.

Definition at line 226 of file wordRes.H.

Constructor & Destructor Documentation

◆ matcher()

matcher ( const UList< wordRe > &  selectors)
inlineexplicitnoexcept

Construct with select matcher(s)

Definition at line 197 of file wordResI.H.

Member Function Documentation

◆ empty()

bool empty ( ) const
inlinenoexcept

No selectors defined.

Definition at line 216 of file wordResI.H.

◆ operator()()

bool operator() ( const std::string &  text) const
inline

True if text matches ANY of the selectors. Always false if entries are empty.

Allows use as a predicate.

Definition at line 227 of file wordResI.H.

References wordRes::match().

Here is the call graph for this function:

The documentation for this struct was generated from the following files: