Searched refs:dateFormat (Results 1 - 4 of 4) sorted by relevance
/base/global/i18n/frameworks/intl/src/ |
H A D | date_time_format.cpp | 69 if (!createSuccess || !dateFormat) { in DateTimeFormat() 76 if (!localeInfo || !dateFormat) { in DateTimeFormat() 87 if (dateFormat != nullptr) { in FreeDateTimeFormat() 88 delete dateFormat; in FreeDateTimeFormat() 89 dateFormat = nullptr; in FreeDateTimeFormat() 104 if (dateIntvFormat == nullptr || calendar == nullptr || dateFormat == nullptr || localeInfo == nullptr) { in CheckInitSuccess() 164 if (dateFormat != nullptr) { in InitWithDefaultLocale() 165 delete dateFormat; in InitWithDefaultLocale() 166 dateFormat = nullptr; in InitWithDefaultLocale() 173 dateFormat in InitDateFormatWithoutConfigs() [all...] |
H A D | locale_config.cpp | 1120 icu::DateFormat* dateFormat = icu::DateFormat::createTimeInstance(icu::DateFormat::EStyle::kLong, locale);
in Is24HourLocale() local 1121 if (dateFormat == nullptr) {
in Is24HourLocale() 1125 icu::SimpleDateFormat* simDateFormat = static_cast<icu::SimpleDateFormat*>(dateFormat);
in Is24HourLocale() 1127 HILOG_INFO_I18N("Is24HourLocale: failed to convert dateFormat");
in Is24HourLocale() 1131 delete dateFormat;
in Is24HourLocale()
|
/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test.cpp | 153 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options);
in HWTEST_F() local 154 if (!dateFormat) {
in HWTEST_F() 159 string out = dateFormat->Format(milliseconds);
in HWTEST_F() 161 EXPECT_EQ(dateFormat->GetYear(), "numeric");
in HWTEST_F() 162 EXPECT_EQ(dateFormat->GetMonth(), "narrow");
in HWTEST_F() 163 EXPECT_EQ(dateFormat->GetDay(), "numeric");
in HWTEST_F() 164 EXPECT_EQ(dateFormat->GetHour(), "numeric");
in HWTEST_F() 165 EXPECT_EQ(dateFormat->GetMinute(), "2-digit");
in HWTEST_F() 166 EXPECT_EQ(dateFormat->GetSecond(), "numeric");
in HWTEST_F() 167 EXPECT_EQ(dateFormat in HWTEST_F() 250 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); HWTEST_F() local 279 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); HWTEST_F() local 494 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); HWTEST_F() local 570 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); HWTEST_F() local 596 DateTimeFormat *dateFormat = new (std::nothrow) DateTimeFormat(locales, options); HWTEST_F() local [all...] |
/base/global/i18n/frameworks/intl/include/ |
H A D | date_time_format.h | 81 icu::DateFormat *dateFormat = nullptr; member in OHOS::Global::I18n::DateTimeFormat
|
Completed in 6 milliseconds