Matcher that matches a sub-Matcher a certain number of times ("?", "*", "+", "#", "{A,B}" multipliers)
More...
|
static | optional (Matcher $matcher) |
| Implements "?": 0 or 1 matches.
|
|
static | star (Matcher $matcher) |
| Implements "*": 0 or more matches.
|
|
static | plus (Matcher $matcher) |
| Implements "+": 1 or more matches.
|
|
static | count (Matcher $matcher, $min, $max) |
| Implements "{A,B}": Between A and B matches.
|
|
static | hash (Matcher $matcher, $min=1, $max=INF) |
| Implements "#" and "#{A,B}": Between A and B matches, comma-separated.
|
|
static | create (... $args) |
| Create an instance.
|
|
Matcher that matches a sub-Matcher a certain number of times ("?", "*", "+", "#", "{A,B}" multipliers)
- See also
- https://www.w3.org/TR/2019/CR-css-values-3-20190606/#component-multipliers
◆ __construct()
Wikimedia\CSS\Grammar\Quantifier::__construct |
( |
Matcher | $matcher, |
|
|
| $min, |
|
|
| $max, |
|
|
| $commas ) |
- Parameters
-
Matcher | $matcher | |
int | float | $min | Minimum number of matches |
int | float | $max | Maximum number of matches |
bool | $commas | Whether matches are comma-separated |
◆ count()
static Wikimedia\CSS\Grammar\Quantifier::count |
( |
Matcher | $matcher, |
|
|
| $min, |
|
|
| $max ) |
|
static |
◆ hash()
static Wikimedia\CSS\Grammar\Quantifier::hash |
( |
Matcher | $matcher, |
|
|
| $min = 1, |
|
|
| $max = INF ) |
|
static |
◆ optional()
static Wikimedia\CSS\Grammar\Quantifier::optional |
( |
Matcher | $matcher | ) |
|
|
static |
◆ plus()
static Wikimedia\CSS\Grammar\Quantifier::plus |
( |
Matcher | $matcher | ) |
|
|
static |
◆ star()
static Wikimedia\CSS\Grammar\Quantifier::star |
( |
Matcher | $matcher | ) |
|
|
static |
The documentation for this class was generated from the following file: