package | BackPress |
---|
__construct(string $str)
since | 4.9.0 |
---|
string
Plural function (just the bit after plural=
from Plural-Forms)
execute(integer $n) : integer
since | 4.9.0 |
---|
integer
Variable "n" to substitute.
integer
Plural form value.get(integer $num) : integer
Caches the value for repeated calls.
since | 4.9.0 |
---|
integer
Number to get plural form for.
integer
Plural form value.parse(string $str)
Uses the shunting-yard algorithm to convert the string to Reverse Polish Notation tokens.
since | 4.9.0 |
---|
string
String 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 |
---|