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

Helper for Converter. More...

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

Public Member Functions

 __construct (Converter $parser, $type, $rpn, $pos, $length)
 
 isType ( $type)
 
- Public Member Functions inherited from CLDRPluralRuleParser\Converter\Fragment
 __construct (Converter $parser, $pos, $length)
 
 error ( $message)
 
 getText ()
 

Public Attributes

 $type
 
 $rpn
 
- Public Attributes inherited from CLDRPluralRuleParser\Converter\Fragment
 $parser
 
 $pos
 
 $length
 
 $end
 

Detailed Description

Helper for Converter.

An expression object, representing a region of the input string (for error messages), the RPN notation used to evaluate it, and the result type for validation.

Constructor & Destructor Documentation

◆ __construct()

CLDRPluralRuleParser\Converter\Expression::__construct ( Converter $parser,
$type,
$rpn,
$pos,
$length )
Parameters
Converter$parser
string$type
string$rpn
int$pos
int$length

Member Function Documentation

◆ isType()

CLDRPluralRuleParser\Converter\Expression::isType ( $type)
Parameters
string$type
Returns
bool

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