MediaWiki  REL1_20
CLDRPluralRuleConverter_Operator Class Reference

Helper for CLDRPluralRuleConverter. More...

Inheritance diagram for CLDRPluralRuleConverter_Operator:
Collaboration diagram for CLDRPluralRuleConverter_Operator:

List of all members.

Public Member Functions

 __construct ($parser, $name, $pos, $length)
 operate ($left, $right)

Public Attributes

 $name

Static Public Attributes

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.

Detailed Description

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 500 of file CLDRPluralRuleEvaluator.php.


Constructor & Destructor Documentation


Member Function Documentation


Member Data Documentation

CLDRPluralRuleConverter_Operator::$name

Definition at line 501 of file CLDRPluralRuleEvaluator.php.

Referenced by __construct().

CLDRPluralRuleConverter_Operator::$opTypes [static]
Initial value:
 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 512 of file CLDRPluralRuleEvaluator.php.

CLDRPluralRuleConverter_Operator::$typeSpecMap [static]
Initial value:
 array(
                'b' => 'boolean',
                'n' => 'number',
                'r' => 'range',
        )

Map converting from the abbrevation to the full form.

Definition at line 529 of file CLDRPluralRuleEvaluator.php.


The documentation for this class was generated from the following file: