[haiku-bugs] Re: [Haiku] #13606: Implement functions to get localized long/short dayofweek name and short month name in BDateFormat.

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 18 Jul 2017 06:29:14 -0000

#13606: Implement functions to get localized long/short dayofweek name and short
month name in BDateFormat.
-------------------------------+----------------------------
   Reporter:  akshay           |      Owner:  pulkomandy
       Type:  bug              |     Status:  new
   Priority:  normal           |  Milestone:  Unscheduled
  Component:  Kits/Locale Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:
Has a Patch:  1                |   Platform:  All
-------------------------------+----------------------------

Comment (by pulkomandy):

 You could reuse BDateFormatStyle from http://cgit.haiku-
 os.org/haiku/tree/headers/os/locale/FormattingConventions.h instead of
 adding BDateFormatWidth? They may not exactly match, but having two enums
 looks like the user of the API could mistake one for the other.

 I also think that the icu DateFormat created by _CreateDateFormat could be
 stored as a field of the BDateFormat class. This would avoid re-creating
 it everytime we call one of these functions?

--
Ticket URL: <https://dev.haiku-os.org/ticket/13606#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: