[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/languages/utils/ -> CLDRPluralRuleEvaluatorRange.php (summary)

(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: 110 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

CLDRPluralRuleEvaluatorRange:: (5 methods):
  __construct()
  isNumberIn()
  isNumberWithin()
  add()
  __toString()


Class: CLDRPluralRuleEvaluatorRange  - X-Ref

Evaluator helper class representing a range list.

__construct( $start, $end = false )   X-Ref
Initialize a new instance of CLDRPluralRuleEvaluatorRange

param: int $start The start of the range
param: int|bool $end The end of the range, or false if the range is not bounded.

isNumberIn( $number, $integerConstraint = true )   X-Ref
Determine if the given number is inside the range.

param: int $number The number to check
param: bool $integerConstraint If true, also asserts the number is an integer;
return: bool True if the number is inside the range; otherwise, false.

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

param: int $number The number to check
return: bool True if the number is inside the range; otherwise, false.

add( $other )   X-Ref
Add another part to this range.

param: CLDRPluralRuleEvaluatorRange|int $other The part to add, either

__toString()   X-Ref
Returns the string representation of the rule evaluator range.
The purpose of this method is to help debugging.

return: string The string representation of the rule evaluator range



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1