12012-06-26 Yoshifumi Inoue <yosin@chromium.org>
2
3 [Platform][DateTime][ICU] Change implementation of LocaleICU class to support more DateFormat.
4 https://bugs.webkit.org/show_bug.cgi?id=89967
5
6 Reviewed by NOBODY (OOPS!).
7
8 This patch changes internal functions of LocalICU class to process
9 multiple ICU date time format handles in addition to short date time
10 format handle.
11
12 This patch is a part of implementing input type time. I'll add time
13 format related ICU date time format handles.
14
15 No new tests. This patch doesn't change behavior.
16
17 * platform/text/LocaleICU.cpp:
18 (WebCore::LocaleICU::initializeShortDateFormat): Changed to use openDateFormat().
19 (WebCore::LocaleICU::openDateFormat): Added for common usage of udt_open().
20 (WebCore::getDateFormatPattern): Added for common usage of udt_toPattern().
21 (WebCore::localizeFormat): Changed to take String parameter.
22 (WebCore::LocaleICU::initializeLocalizedDateFormatText): Changed to use getDateFormatPattern.
23 (WebCore::LocaleICU::createLabelVector): Changed to take UDateFormat parameter.
24 (WebCore::LocaleICU::initializeCalendar): Changed for helper functions.
25 * platform/text/LocaleICU.h:
26 (LocaleICU):
27