/ohos5.0/base/global/i18n/frameworks/intl/src/ |
H A D | locale_info.cpp | 51 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() 174 hourCycle = configs["hourCycle"]; in ParseConfigs() 227 return hourCycle; in GetHourCycle()
|
H A D | date_time_format.cpp | 128 if (hourCycle.empty()) { 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() 420 if ((hourCycle == "h12" || hourCycle == "h11" || hour12 == "true") && !hour.empty()) { in ComputeSkeleton() 446 if (hourCycle == "h11") { in ComputeHourCycleChars() 449 } else if (hourCycle == "h12") { in ComputeHourCycleChars() 632 if (!hourCycle.empty()) { in GetResolvedOptions() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/internationalization/ |
H A D | i18n-time-date.md | 87 **表5** 时制格式(hourCycle) 123 …at5 = new intl.DateTimeFormat('zh-CN', {dateStyle: 'short', timeStyle: 'short', hourCycle: 'h11'});
|
/ohos5.0/base/global/i18n/frameworks/intl/include/ |
H A D | locale_info.h | 60 std::string hourCycle; variable
|
H A D | date_time_format.h | 65 std::string hourCycle; variable
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/ |
H A D | js-apis-intl.md | 42 | hourCycle | string | 是 | 区域的时制信息,<br>取值包括:"h12", "h23", "h11", "h24"。 | 52 > - hourCycle:不同取值的显示效果可参考[时间日期国际化表5](../../internationalization/i18n-time-date.md)。 207 | hourCycle | string | 否 |时制格式,<br>取值包括:"h11", "h12", "h23", "h24"。 | 216 > - hourCycle:不同取值的显示效果可参考[时间日期国际化表5](../../internationalization/i18n-time-date.md)。 381 | hourCycle | string | 否 |时制格式,<br>取值包括:"h11", "h12", "h23", "h24"。 | 384 | hour12 | boolean | 否 | 是否使用12小时制,<br>若hour12和hourCycle未设置且系统24小时开关打开时,hour12属性的默认值为f…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-global.md | 40 |新增|NA|方法名 or 属性名:hourCycle<br>函数:hourCycle?: string;|@ohos.intl.d.ts| 47 |新增|NA|方法名 or 属性名:hourCycle<br>函数:hourCycle?: string|@ohos.intl.d.ts|
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v2.2-beta2/ |
H A D | js-apidiff-v2.2-beta2.md | 14 | 时间日期数字模块-Locale | hourCycle | 新增 | - | 39 | 时间日期数字模块-DateTimeOptions | hourCycle | 新增 | - |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-global.md | 145 |type有变化|类名:LocaleOptions;<br>方法or属性:hourCycle?: string;<br>旧版本信息:|类名:LocaleOptions;<br>方法or属性:hour… 146 |type有变化|类名:DateTimeOptions;<br>方法or属性:hourCycle?: string<br>旧版本信息:|类名:DateTimeOptions;<br>方法or属性:h… 207 |函数有变化|类名:LocaleOptions;<br>方法or属性:hourCycle: string;|类名:LocaleOptions;<br>方法or属性:hourCycle?: strin… 208 |函数有变化|类名:DateTimeOptions;<br>方法or属性:hourCycle: string|类名:DateTimeOptions;<br>方法or属性:hourCycle?: st…
|
/ohos5.0/docs/en/application-dev/internationalization/ |
H A D | i18n-time-date.md | 87 **Table 5** Hour cycle (hourCycle) 123 …at5 = new intl.DateTimeFormat('zh-CN', {dateStyle: 'short', timeStyle: 'short', hourCycle: 'h11'});
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-global.md | 99 |type有变化|类名:LocaleOptions;<br>方法or属性:hourCycle?: string;<br>旧版本信息:string|类名:LocaleOptions;<br>方法or属… 100 |type有变化|类名:DateTimeOptions;<br>方法or属性:hourCycle?: string;<br>旧版本信息:string|类名:DateTimeOptions;<br>方… 203 |跨平台能力有变化|类名:LocaleOptions;<br>方法or属性:hourCycle?: string;<br>旧版本信息:|类名:LocaleOptions;<br>方法or属性:hou… 204 |跨平台能力有变化|类名:DateTimeOptions;<br>方法or属性:hourCycle?: string;<br>旧版本信息:|类名:DateTimeOptions;<br>方法or属性… 227 |跨平台能力有变化|类名:Locale;<br>方法or属性:hourCycle: string;<br>旧版本信息:|类名:Locale;<br>方法or属性:hourCycle: string;…
|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-global.md | 40 |Added|NA|Method or attribute name: hourCycle<br>Function name: hourCycle?: string;|@ohos.intl.d.ts| 47 |Added|NA|Method or attribute name: hourCycle<br>Function name: hourCycle?: string|@ohos.intl.d.ts|
|
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/ |
H A D | js-apis-intl.md | 42 | hourCycle | string | Yes | Time system for the locale.<br>The value can be **h12**, **h2… 52 > - For details about **hourCycle**, see Table 5 in [Date and Time Formatting](../../international… 207 | hourCycle | string | No |Hour cycle.<br>The value can be **h11**, **h12**, **h23**, or … 216 > - For details about **hourCycle**, see Table 5 in [Date and Time Formatting](../../international… 381 | hourCycle | string | No |Hour cycle.<br>The value can be **h11**, **h12**, **h23**, or … 384 …lean | No | Whether to use the 12-hour clock.<br>If **hour12** and **hourCycle** are not set an…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-global.md | 51 | ohos.intl | LocaleOptions | hourCycle: string; | 新增 |
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-global.md | 145 …ethod or attribute name: hourCycle?: string;<br>Old version: |Class name: LocaleOptions;<br>Method… 146 …ethod or attribute name: hourCycle?: string<br>Old version: |Class name: DateTimeOptions;<br>Metho… 207 …ons;<br>Method or attribute name: hourCycle: string;|Class name: LocaleOptions;<br>Method or attri… 208 …ons;<br>Method or attribute name: hourCycle: string|Class name: DateTimeOptions;<br>Method or attr…
|
/ohos5.0/docs/en/release-notes/api-diff/v2.2-beta2/ |
H A D | js-apidiff-v2.2-beta2.md | 14 | Time, date, and digit module - Locale | hourCycle | Added | - | 39 | Time, date, and digit module - DateTimeOptions | hourCycle | Added | - |
|
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-global.md | 51 | ohos.intl | LocaleOptions | hourCycle: string; | Added|
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/ |
H A D | js-apidiff-global.md | 99 …attribute name: hourCycle?: string;<br>Old version information: string|Class name: LocaleOptions;<… 100 …ttribute name: hourCycle?: string;<br>Old version information: string|Class name: DateTimeOptions;… 203 …or attribute name: hourCycle?: string;<br>Old version information: |Class name: LocaleOptions;<br>… 204 …r attribute name: hourCycle?: string;<br>Old version information: |Class name: DateTimeOptions;<br… 227 …hod or attribute name: hourCycle: string;<br>Old version information: |Class name: Locale;<br>Meth…
|
/ohos5.0/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test.cpp | 244 string hourCycle = "h24"; variable 248 { "hourCycle", hourCycle },
|