#13508: [Patch] Resolve Style Formatting Issue in
BTimeUnitFormat/BDurationFormat
-----------------------------+------------------------------
Reporter: akshay | Owner: pulkomandy
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Locale Kit | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-----------------------------+------------------------------
'''Issue:'''
BTimeUnitFormat doesn't incorporate style formatting while formatting a
time unit. Format() does take style as an argument but the style is not
used anywhere. So currently the abbreviated style(B_TIME_UNIT_ABBREVIATED)
doesn't work and by default the time unit is formatted to the full style.
'''Fix:'''
1. Move the style flag from BTimeUnitFormat::Format() to the
BTimeUnitFormat constructors and call the relevant icu::TimeUnitFormat
constructor.
2. Map the Haiku defined style unit to the corresponding ICU unit.
3. Move the style flag from BDurationFormat::Format() to the
BDurationFormat constructors to map the changes in BTimeUnitFormat.
--
Ticket URL: <https://dev.haiku-os.org/ticket/13508>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.