MediaWiki
REL1_23
|
Helper for CLDRPluralRuleConverter. More...
Public Member Functions | |
__construct ($parser, $name, $pos, $length) | |
Initialize a new instance of a CLDRPluralRuleConverter_Operator object. | |
operate ($left, $right) | |
Compute the operation. | |
Public Attributes | |
string | $name |
The name *. | |
Static Public Attributes | |
static | $aliasMap |
Map for converting the new operators introduced in Rev 33 to the old forms. | |
static | $opTypes |
static | $typeSpecMap |
Helper for CLDRPluralRuleConverter.
An operator object, representing a region of the input string (for error messages), and the binary operator at that location.
Definition at line 18 of file CLDRPluralRuleConverter_Operator.php.
CLDRPluralRuleConverter_Operator::__construct | ( | $ | parser, |
$ | name, | ||
$ | pos, | ||
$ | length | ||
) |
Initialize a new instance of a CLDRPluralRuleConverter_Operator object.
CLDRPluralRuleConverter | $parser | The parser |
string | $name | The operator name |
int | $pos | The length |
int | $length |
Definition at line 74 of file CLDRPluralRuleConverter_Operator.php.
CLDRPluralRuleConverter_Operator::operate | ( | $ | left, |
$ | right | ||
) |
Compute the operation.
CLDRPluralRuleConverter_Expression | $left | The left part of the expression |
CLDRPluralRuleConverter_Expression | $right | The right part of the expression |
Definition at line 89 of file CLDRPluralRuleConverter_Operator.php.
CLDRPluralRuleConverter_Operator::$aliasMap [static] |
array( '%' => 'mod', '!=' => 'not-in', '=' => 'in' )
Map for converting the new operators introduced in Rev 33 to the old forms.
Definition at line 60 of file CLDRPluralRuleConverter_Operator.php.
string CLDRPluralRuleConverter_Operator::$name |
The name *.
Definition at line 19 of file CLDRPluralRuleConverter_Operator.php.
CLDRPluralRuleConverter_Operator::$opTypes [static] |
array( 'or' => 'bbb', 'and' => 'bbb', 'is' => 'nnb', 'is-not' => 'nnb', 'in' => 'nrb', 'not-in' => 'nrb', 'within' => 'nrb', 'not-within' => 'nrb', 'mod' => 'nnn', ',' => 'rrr', '..' => 'nnr', )
Definition at line 32 of file CLDRPluralRuleConverter_Operator.php.
CLDRPluralRuleConverter_Operator::$typeSpecMap [static] |
array( 'b' => 'boolean', 'n' => 'number', 'r' => 'range', )
Definition at line 51 of file CLDRPluralRuleConverter_Operator.php.