| package | BackPress |
|---|
__construct(string $str)
| since | 4.9.0 |
|---|
stringPlural function (just the bit after plural= from Plural-Forms)
execute(integer $n) : integer
| since | 4.9.0 |
|---|
integerVariable "n" to substitute.
integerPlural form value.get(integer $num) : integer
Caches the value for repeated calls.
| since | 4.9.0 |
|---|
integerNumber to get plural form for.
integerPlural form value.parse(string $str)
Uses the shunting-yard algorithm to convert the string to Reverse Polish Notation tokens.
| since | 4.9.0 |
|---|
stringString to parse.
$cache : array
array()| since | 4.9.0 |
|---|
$op_precedence : array
array('%' => 6, '<' => 5, '<=' => 5, '>' => 5, '>=' => 5, '==' => 4, '!=' => 4, '&&' => 3, '||' => 2, '?:' => 1, '?' => 1, '(' => 0, ')' => 0)$tokens : array
array()| since | 4.9.0 |
|---|
NUM_CHARS = '0123456789' : string
| since | 4.9.0 |
|---|
OP_CHARS = '|&><!=%?:' : string
| since | 4.9.0 |
|---|