libhext: C++ Library Documentation 1.0.13-b24695d
|
Matches HTML elements that have a certain amount of HTML attributes. More...
#include <AttributeCountMatch.h>
Public Member Functions | |
AttributeCountMatch (unsigned int attribute_count) noexcept | |
Constructs an AttributeCountMatch that matches HTML elements that have a certain amount of HTML attributes. | |
bool | matches (const GumboNode *node) const noexcept override |
Returns true if node has exactly attribute_count amount of HTML attributes. | |
![]() | |
virtual std::unique_ptr< Match > | clone () const override |
Clones objects of template type Derived and returns an owning pointer to the newly allocated Base. | |
![]() | |
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 HTML elements that have a certain amount of HTML attributes.
Definition at line 47 of file AttributeCountMatch.h.
|
explicitnoexcept |
Constructs an AttributeCountMatch that matches HTML elements that have a certain amount of HTML attributes.
attribute_count | The amount of HTML attributes a node must have in order to match. |
|
overridevirtualnoexcept |
Returns true if node has exactly attribute_count amount of HTML attributes.
node | A pointer to a GumboNode of type GUMBO_NODE_ELEMENT. |
Implements hext::Match.