CLDR Plural Rule Parser
Parses CLDR plural rules
Loading...
Searching...
No Matches
CLDRPluralRuleParser\Converter\Operator Class Reference

Helper for Converter. More...

+ Inheritance diagram for CLDRPluralRuleParser\Converter\Operator:
+ Collaboration diagram for CLDRPluralRuleParser\Converter\Operator:

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
 

Detailed Description

Helper for Converter.

An operator object, representing a region of the input string (for error messages), and the binary operator at that location.

Constructor & Destructor Documentation

◆ __construct()

CLDRPluralRuleParser\Converter\Operator::__construct ( Converter $parser,
$name,
$pos,
$length )

Initialize a new instance of a CLDRPluralRuleConverterOperator object.

Parameters
Converter$parserThe parser
string$nameThe operator name
int$posThe length
int$length

Member Function Documentation

◆ operate()

CLDRPluralRuleParser\Converter\Operator::operate ( Expression $left,
Expression $right )

Compute the operation.

Parameters
Expression$leftThe left part of the expression
Expression$rightThe right part of the expression
Returns
Expression The result of the operation

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