MediaWiki
1.23.2
|
Evaluator helper class representing a range list. More...
Public Member Functions | |
__construct ( $start, $end=false) | |
Initialize a new instance of CLDRPluralRuleEvaluator_Range. More... | |
__toString () | |
Returns the string representation of the rule evaluator range. More... | |
add ( $other) | |
Add another part to this range. More... | |
isNumberIn ( $number, $integerConstraint=true) | |
Determine if the given number is inside the range. More... | |
isNumberWithin ( $number) | |
Readable alias for isNumberIn( $number, false ), and the implementation of the "within" operator. More... | |
Public Attributes | |
array | $parts = array() |
The parts. More... | |
Evaluator helper class representing a range list.
Definition at line 15 of file CLDRPluralRuleEvaluator_Range.php.
CLDRPluralRuleEvaluator_Range::__construct | ( | $start, | |
$end = false |
|||
) |
Initialize a new instance of CLDRPluralRuleEvaluator_Range.
int | $start | The start of the range |
int | bool | $end | The end of the range, or false if the range is not bounded. |
Definition at line 28 of file CLDRPluralRuleEvaluator_Range.php.
References array().
CLDRPluralRuleEvaluator_Range::__toString | ( | ) |
Returns the string representation of the rule evaluator range.
The purpose of this method is to help debugging.
Definition at line 91 of file CLDRPluralRuleEvaluator_Range.php.
CLDRPluralRuleEvaluator_Range::add | ( | $other | ) |
Add another part to this range.
CLDRPluralRuleEvaluator_Range | int | $other | The part to add, either a range object itself or a single number. |
Definition at line 77 of file CLDRPluralRuleEvaluator_Range.php.
CLDRPluralRuleEvaluator_Range::isNumberIn | ( | $number, | |
$integerConstraint = true |
|||
) |
Determine if the given number is inside the range.
int | $number | The number to check |
bool | $integerConstraint | If true, also asserts the number is an integer; otherwise, number simply has to be inside the range. |
Definition at line 43 of file CLDRPluralRuleEvaluator_Range.php.
References as.
Referenced by isNumberWithin().
CLDRPluralRuleEvaluator_Range::isNumberWithin | ( | $number | ) |
Readable alias for isNumberIn( $number, false ), and the implementation of the "within" operator.
int | $number | The number to check |
Definition at line 67 of file CLDRPluralRuleEvaluator_Range.php.
References isNumberIn().
The parts.
Definition at line 20 of file CLDRPluralRuleEvaluator_Range.php.