Fix various boundary cases in IcuCollation::findLowerBound()
authorTim Starling <tstarling@wikimedia.org>
Thu, 11 Oct 2012 09:01:46 +0000 (20:01 +1100)
committerTim Starling <tstarling@wikimedia.org>
Wed, 17 Oct 2012 03:30:49 +0000 (14:30 +1100)
commit1eca50c3832a968ab4209e55673a600b0f13ec83
tree157299d25fc777ee10ec42dcdafe6e7807b98626
parent4854e7d2bfe107438b504d94a6ea90fad10dfee2
Fix various boundary cases in IcuCollation::findLowerBound()

Fix the following edge cases which were previously broken:

* Zero-length input array
* Target value before the start
* Target value past the end

They didn't really matter for my original application, but Liangent
wants to use this function for something else.

Change-Id: Ia5f5ed4ab3cb6c463177a4812fd3ce96c6d37b33
includes/Collation.php