|
MediaWiki
REL1_22
|
Evaluator helper class representing a range list. More...
Public Member Functions | |
| __construct ($start, $end=false) | |
| __toString () | |
| For debugging. | |
| add ($other) | |
| Add another part to this range. | |
| isNumberIn ($number, $integerConstraint=true) | |
| Determine if the given number is inside the range. | |
| isNumberWithin ($number) | |
| Readable alias for isNumberIn( $number, false ), and the implementation of the "within" operator. | |
Public Attributes | |
| $parts = array() | |
Evaluator helper class representing a range list.
Definition at line 187 of file CLDRPluralRuleEvaluator.php.
| CLDRPluralRuleEvaluator_Range::__construct | ( | $ | start, |
| $ | end = false |
||
| ) |
Definition at line 190 of file CLDRPluralRuleEvaluator.php.
References array().
| CLDRPluralRuleEvaluator_Range::add | ( | $ | other | ) |
Add another part to this range.
The supplied new part may either be a range object itself, or a single number.
Definition at line 232 of file CLDRPluralRuleEvaluator.php.
| CLDRPluralRuleEvaluator_Range::isNumberIn | ( | $ | number, |
| $ | integerConstraint = true |
||
| ) |
Determine if the given number is inside the range.
If $integerConstraint is true, the number must additionally be an integer if it is to match any interval part.
Definition at line 203 of file CLDRPluralRuleEvaluator.php.
References as.
Referenced by isNumberWithin().
| CLDRPluralRuleEvaluator_Range::isNumberWithin | ( | $ | number | ) |
Readable alias for isNumberIn( $number, false ), and the implementation of the "within" operator.
Definition at line 224 of file CLDRPluralRuleEvaluator.php.
References isNumberIn().
| CLDRPluralRuleEvaluator_Range::$parts = array() |
Definition at line 188 of file CLDRPluralRuleEvaluator.php.