CLDR Plural Rule Parser
Parses CLDR plural rules
|
Helper for Converter. More...
Public Member Functions | |
__construct (Converter $parser, $name, $pos, $length) | |
Initialize a new instance of a CLDRPluralRuleConverterOperator object. | |
operate (Expression $left, Expression $right) | |
Compute the operation. | |
Public Member Functions inherited from CLDRPluralRuleParser\Converter\Fragment | |
__construct (Converter $parser, $pos, $length) | |
error ( $message) | |
getText () | |
Public Attributes | |
$name | |
Public Attributes inherited from CLDRPluralRuleParser\Converter\Fragment | |
$parser | |
$pos | |
$length | |
$end | |
Helper for Converter.
An operator object, representing a region of the input string (for error messages), and the binary operator at that location.
CLDRPluralRuleParser\Converter\Operator::__construct | ( | Converter | $parser, |
$name, | |||
$pos, | |||
$length ) |
Initialize a new instance of a CLDRPluralRuleConverterOperator object.
Converter | $parser | The parser |
string | $name | The operator name |
int | $pos | The length |
int | $length |
CLDRPluralRuleParser\Converter\Operator::operate | ( | Expression | $left, |
Expression | $right ) |
Compute the operation.
Expression | $left | The left part of the expression |
Expression | $right | The right part of the expression |