|
MediaWiki
REL1_22
|
Helper for CLDRPluralRuleConverter. More...


Public Member Functions | |
| __construct ($parser, $name, $pos, $length) | |
| Initialize a new instance of a CLDRPluralRuleConverter_Operator object. | |
| operate ($left, $right) | |
Public Attributes | |
| $name | |
Static Public Attributes | |
| static | $aliasMap |
| Map for converting the new operators introduced in Rev 33 to the old forms. | |
| static | $opTypes |
| Each op type has three characters: left operand type, right operand type and result type. | |
| static | $typeSpecMap |
| Map converting from the abbrevation to the full form. | |
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 595 of file CLDRPluralRuleEvaluator.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 position |
| int | $pos | The length |
Definition at line 647 of file CLDRPluralRuleEvaluator.php.
| CLDRPluralRuleConverter_Operator::operate | ( | $ | left, |
| $ | right | ||
| ) |
Definition at line 655 of file CLDRPluralRuleEvaluator.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 633 of file CLDRPluralRuleEvaluator.php.
| CLDRPluralRuleConverter_Operator::$name |
Definition at line 596 of file CLDRPluralRuleEvaluator.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', )
Each op type has three characters: left operand type, right operand type and result type.
b = boolean n = number r = range
A number is a kind of range.
Definition at line 607 of file CLDRPluralRuleEvaluator.php.
CLDRPluralRuleConverter_Operator::$typeSpecMap [static] |
array( 'b' => 'boolean', 'n' => 'number', 'r' => 'range', )
Map converting from the abbrevation to the full form.
Definition at line 624 of file CLDRPluralRuleEvaluator.php.