4 * @author Niklas Laxström, Tim Starling
6 * @copyright Copyright © 2010-2012, Niklas Laxström
7 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
14 * Helper for CLDRPluralRuleConverter.
15 * An expression object, representing a region of the input string (for error
16 * messages), the RPN notation used to evaluate it, and the result type for
19 class CLDRPluralRuleConverter_Expression
extends CLDRPluralRuleConverter_Fragment
{
26 function __construct( $parser, $type, $rpn, $pos, $length ) {
27 parent
::__construct( $parser, $pos, $length );
32 public function isType( $type ) {
33 if ( $type === 'range' && ( $this->type
=== 'range' ||
$this->type
=== 'number' ) ) {
36 if ( $type === $this->type
) {