de75c0aa34c7db47ddec1704e94fa05c54687705 |
|
17-Feb-2015 |
Narayan Kamath <narayan@google.com> |
Fix handling of consecutive quotes in ChoiceFormat et al. Two consecutive single quotes ('') must be interpreted as an escaped single quite sequence. We were implementing it by simply keeping track of whether the last character was a single quote. This is insufficient for sequences of three or more quotes since we shouldn't emit ('') for an escape sequence of ('''). We'll have to keep track of the number of consecutive quotes we've seen in the input instead. This is a partial fix for the bug below. There appears to be another bug in MessageFormat itself in its handling of subpatterns. bug: 19011159 Change-Id: Ia71e5d8c1962356cabc265cf80ebc0a04ff84f17
|
c10ba1bf470b9ae0d9904e28105de5e679840cb9 |
|
17-Feb-2015 |
Narayan Kamath <narayan@google.com> |
Handle infinities correctly in ChoiceFormat. We'd like ChoiceFormat.toPattern to emit a pattern that's parseable by ChoiceFormat - which means we need an infinity that's parseable by NumberFormat.parse(). Also, implement the nextDouble / previousDouble public API <sadface/> in terms of Math.nextAfter and Math.nextUp. bug: 19149384 Change-Id: Ieb13ee70c212d188ff9fde09463ced8d632f47ab
|
994e4e5ded616a100ca42b16cffa36aa9f595f64 |
|
28-Aug-2013 |
Elliott Hughes <enh@google.com> |
Add harmony java.text tests. Change-Id: Id8d0acd77d08ff337b4851ae74a48cc002d66cd9
|