Plural rules: updates for UTS #35 Rev 33
authorTim Starling <tstarling@wikimedia.org>
Wed, 11 Dec 2013 23:45:07 +0000 (10:45 +1100)
committerTim Starling <tstarling@wikimedia.org>
Fri, 13 Dec 2013 00:53:29 +0000 (11:53 +1100)
commite571717e06667228ec8d689be067e00bdd06d34d
treec3559490e4be4bf08545937b9f3941cc8c70e202
parente7858817d79ad8e2ed027890c8f98ee1e2c66d12
Plural rules: updates for UTS #35 Rev 33

* New operands i, v, w, f, t
* New operators =, !=, %
* Ignore "samples", which are basically unit tests embedded in rule
  specifications
* Ignore the new "other" rules, which have an empty condition. It
  doesn't really makes sense to parse them, since the empty condition
  means special handling should be done in the caller, it is not
  equivalent to an unconditional true or false.
* Trailing zero support requires that the input number be a string.
  Documented this.
* Fixed some comments
* Added test cases for new features

Bug: 56931
Change-Id: I96986c0c664f785e75b0a4ced2ec9e37b72681c1
includes/cache/LocalisationCache.php
languages/utils/CLDRPluralRuleEvaluator.php
tests/phpunit/languages/utils/CLDRPluralRuleEvaluatorTest.php