Matches HTML elements that have a certain amount of HTML attributes.
More...
Matches HTML elements that have a certain amount of HTML attributes.
- Example:
GumboNode * no_attrs = ...;
GumboNode * two_attrs = ...;
AttributeCountMatch(unsigned int attribute_count) noexcept
Constructs an AttributeCountMatch that matches HTML elements that have a certain amount of HTML attri...
Definition at line 47 of file AttributeCountMatch.h.
◆ AttributeCountMatch()
hext::AttributeCountMatch::AttributeCountMatch |
( |
unsigned int |
attribute_count | ) |
|
|
explicitnoexcept |
Constructs an AttributeCountMatch that matches HTML elements that have a certain amount of HTML attributes.
- Parameters
-
attribute_count | The amount of HTML attributes a node must have in order to match. |
◆ matches()
bool hext::AttributeCountMatch::matches |
( |
const GumboNode * |
node | ) |
const |
|
overridevirtualnoexcept |
Returns true if node has exactly attribute_count amount of HTML attributes.
- Parameters
-
node | A pointer to a GumboNode of type GUMBO_NODE_ELEMENT. |
Implements hext::Match.
The documentation for this class was generated from the following file: