Home
last modified time | relevance | path

Searched refs:dateFormat (Results 1 – 3 of 3) sorted by relevance

/base/global/i18n/frameworks/intl/src/
Ddate_time_format.cpp50 if (!createSuccess || !dateFormat) { in DateTimeFormat()
57 if (!localeInfo || !dateFormat) { in DateTimeFormat()
72 if (dateFormat != nullptr) { in FreeDateTimeFormat()
73 delete dateFormat; in FreeDateTimeFormat()
74 dateFormat = nullptr; in FreeDateTimeFormat()
89 …if (dateIntvFormat == nullptr || calendar == nullptr || dateFormat == nullptr || localeInfo == nul… in CheckInitSuccess()
147 if (dateFormat != nullptr) { in InitWithDefaultLocale()
148 delete dateFormat; in InitWithDefaultLocale()
149 dateFormat = nullptr; in InitWithDefaultLocale()
156 dateFormat = DateFormat::createDateInstance(DateFormat::SHORT, locale); in InitDateFormatWithoutConfigs()
[all …]
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp90 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); variable
91 if (!dateFormat) {
96 string out = dateFormat->Format(milliseconds);
98 EXPECT_EQ(dateFormat->GetYear(), "numeric");
99 EXPECT_EQ(dateFormat->GetMonth(), "long");
100 EXPECT_EQ(dateFormat->GetDay(), "numeric");
101 EXPECT_EQ(dateFormat->GetHour(), "numeric");
102 EXPECT_EQ(dateFormat->GetMinute(), "2-digit");
103 EXPECT_EQ(dateFormat->GetSecond(), "numeric");
104 EXPECT_EQ(dateFormat->GetWeekday(), "long");
[all …]
/base/global/i18n/frameworks/intl/include/
Ddate_time_format.h81 icu::DateFormat *dateFormat = nullptr; variable