Home
last modified time | relevance | path

Searched refs:hourCycle (Results 1 - 5 of 5) sorted by relevance

/base/global/i18n/frameworks/intl/src/
H A Dlocale_info.cpp51 hourCycle = ""; in ResetFinalLocaleStatus()
112 if (!hourCycle.empty() || !numberingSystem.empty() || !calendar.empty() || !collation.empty() || in ComputeFinalLocaleTag()
116 if (!hourCycle.empty()) { in ComputeFinalLocaleTag()
117 finalLocaleTag += hourCycleTag + hourCycle; in ComputeFinalLocaleTag()
140 hourCycle = localeTag.substr(localeTag.find(hourCycleTag) + CONFIG_TAG_LEN); in ParseLocaleTag()
141 hourCycle = hourCycle.substr(0, hourCycle.find(flag)); in ParseLocaleTag()
173 if (configs.count("hourCycle") > 0) { in ParseConfigs()
174 hourCycle in ParseConfigs()
[all...]
H A Ddate_time_format.cpp128 if (hourCycle.empty()) { in InitWithLocale()
129 hourCycle = localeInfo->GetHourCycle(); in InitWithLocale()
131 if (hour12.empty() && hourCycle.empty() && !LocaleConfig::IsEmpty24HourClock()) { in InitWithLocale()
199 } else if (hourCycle != "") { in FixPatternPartOne()
206 if (hourCycle == "h11") { in FixPatternPartTwo()
213 } else if (hourCycle == "h12") { in FixPatternPartTwo()
220 } else if (hourCycle == "h23") { in FixPatternPartTwo()
228 } else if (hourCycle == "h24") { in FixPatternPartTwo()
376 if (configs.count("hourCycle") > 0) { in ParseConfigsPartTwo()
377 hourCycle in ParseConfigsPartTwo()
[all...]
/base/global/i18n/frameworks/intl/include/
H A Dlocale_info.h60 std::string hourCycle; member in OHOS::Global::I18n::LocaleInfo
H A Ddate_time_format.h65 std::string hourCycle; member in OHOS::Global::I18n::DateTimeFormat
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test.cpp181 map<string, string> options = { { "hourCycle", "h11" }, in HWTEST_F()
244 string hourCycle = "h24"; in HWTEST_F() local
248 { "hourCycle", hourCycle }, in HWTEST_F()
504 { "hourCycle", "h11" }, in HWTEST_F()
508 options.insert({ "hourCycle", "h12" }); in HWTEST_F()
510 options.insert({ "hourCycle", "h23" }); in HWTEST_F()
512 options.insert({ "hourCycle", "h24" }); in HWTEST_F()
1532 { "hourCycle", "h24" }, in HWTEST_F()
1587 { "hourCycle", "h2 in HWTEST_F()
[all...]

Completed in 5 milliseconds