[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
(no description)
Author: | Niklas Laxström, Tim Starling |
Copyright: | Copyright © 2010-2012, Niklas Laxström |
License: | http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
File Size: | 322 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
CLDRPluralRuleConverter:: (8 methods):
convert()
__construct()
doConvert()
nextToken()
doOperation()
newNumber()
newOperator()
error()
Class: CLDRPluralRuleConverter - X-Ref
Helper class for converting rules to reverse polish notation (RPN).convert( $rule ) X-Ref |
Convert a rule to RPN. This is the only public entry point. param: string $rule The rule to convert return: string The RPN representation of the rule |
__construct( $rule ) X-Ref |
Private constructor. param: string $rule |
doConvert() X-Ref |
Do the operation. return: string The RPN representation of the rule (e.g. "5 3 mod n is") |
nextToken() X-Ref |
Fetch the next token from the input string. return: CLDRPluralRuleConverterFragment The next token |
doOperation( $op ) X-Ref |
For the binary operator $op, pop its operands off the stack and push a fragment with rpn and type members describing the result of that operation. param: CLDRPluralRuleConverterOperator $op |
newNumber( $text, $pos ) X-Ref |
Create a numerical expression object param: string $text param: int $pos return: CLDRPluralRuleConverterExpression The numerical expression |
newOperator( $type, $pos, $length ) X-Ref |
Create a binary operator param: string $type param: int $pos param: int $length return: CLDRPluralRuleConverterOperator The operator |
error( $message ) X-Ref |
Throw an error param: string $message |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |