|
libhext: C++ Library Documentation 1.0.14-6065bc7
|
Matches the name of an HTML element against a regular expression. More...
#include <TypeRegexMatch.h>


Public Member Functions | |
| TypeRegexMatch (boost::regex regex) | |
| Constructs a TypeRegexMatch. | |
| bool | matches (const GumboNode *node) const override |
| Returns true if the node has a tag name which matches the given regex. | |
Public Member Functions inherited from hext::Cloneable< TypeRegexMatch, Match > | |
| virtual std::unique_ptr< Match > | clone () const override |
| Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
Public Member Functions inherited from hext::Match | |
| Match () noexcept=default | |
| Match (const Match &)=default | |
| Match (Match &&) noexcept=default | |
| Match & | operator= (const Match &)=default |
| Match & | operator= (Match &&) noexcept=default |
| virtual | ~Match () noexcept=default |
Matches the name of an HTML element against a regular expression.
Definition at line 33 of file TypeRegexMatch.h.
|
explicit |
Constructs a TypeRegexMatch.
| regex | The regular expression that is applied against a tag name. |
|
overridevirtual |
Returns true if the node has a tag name which matches the given regex.
| node | A pointer to a GumboNode. |
Implements hext::Match.