Matches the name of an HTML element against a regular expression.
More...
Matches the name of an HTML element against a regular expression.
Definition at line 33 of file TypeRegexMatch.h.
◆ TypeRegexMatch()
hext::TypeRegexMatch::TypeRegexMatch |
( |
boost::regex |
regex | ) |
|
|
explicit |
Constructs a TypeRegexMatch.
- Parameters
-
regex | The regular expression that is applied against a tag name. |
◆ matches()
bool hext::TypeRegexMatch::matches |
( |
const GumboNode * |
node | ) |
const |
|
overridevirtual |
Returns true if the node has a tag name which matches the given regex.
- Parameters
-
node | A pointer to a GumboNode. |
Implements hext::Match.
The documentation for this class was generated from the following file: