MediaWiki  REL1_21
CLDRPluralRuleEvaluator_Range Class Reference

Evaluator helper class representing a range list. More...

List of all members.

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()

Detailed Description

Evaluator helper class representing a range list.

Definition at line 152 of file CLDRPluralRuleEvaluator.php.


Constructor & Destructor Documentation

Definition at line 155 of file CLDRPluralRuleEvaluator.php.

References array().


Member Function Documentation

For debugging.

Definition at line 208 of file CLDRPluralRuleEvaluator.php.

References $s, and as.

Add another part to this range.

The supplied new part may either be a range object itself, or a single number.

Definition at line 197 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 168 of file CLDRPluralRuleEvaluator.php.

References as.

Referenced by isNumberWithin().

Readable alias for isNumberIn( $number, false ), and the implementation of the "within" operator.

Definition at line 189 of file CLDRPluralRuleEvaluator.php.

References isNumberIn().


Member Data Documentation

CLDRPluralRuleEvaluator_Range::$parts = array()

Definition at line 153 of file CLDRPluralRuleEvaluator.php.


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