harmony(鸿蒙)JS API Changes of the Globalization Subsystem

  • 2022-10-28
  • 浏览 (510)

JS API Changes of the Globalization Subsystem

The table below lists the APIs changes of the globalization subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.i18n Unicode static getType(char: string): string; Added
ohos.i18n Unicode static isUpperCase(char: string): boolean; Added
ohos.i18n Unicode static isLowerCase(char: string): boolean; Added
ohos.i18n Unicode static isLetter(char: string): boolean; Added
ohos.i18n Unicode static isIdeograph(char: string): boolean; Added
ohos.i18n Unicode static isRTL(char: string): boolean; Added
ohos.i18n Unicode static isWhitespace(char: string): boolean; Added
ohos.i18n Unicode static isSpaceChar(char: string): boolean; Added
ohos.i18n Unicode static isDigit(char: string): boolean; Added
ohos.i18n I18NUtil static getDateOrder(locale: string): string; Added
ohos.i18n I18NUtil static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; Added
ohos.i18n Util getDateOrder(locale: string): string; Deleted
ohos.i18n Character getType(char: string): string; Deprecated
ohos.i18n Character isUpperCase(char: string): boolean; Deprecated
ohos.i18n Character isLowerCase(char: string): boolean; Deprecated
ohos.i18n Character isLetter(char: string): boolean; Deprecated
ohos.i18n Character isIdeograph(char: string): boolean; Deprecated
ohos.i18n Character isRTL(char: string): boolean; Deprecated
ohos.i18n Character isWhitespace(char: string): boolean; Deprecated
ohos.i18n Character isSpaceChar(char: string): boolean; Deprecated
ohos.i18n Character isDigit(char: string): boolean; Deprecated
ohos.i18n Util unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; Deprecated

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)

harmony(鸿蒙)JS API Changes of the Ability Framework

harmony(鸿蒙)JS API Changes of the Accessibility Subsystem

harmony(鸿蒙)JS API Changes of the Account Subsystem

harmony(鸿蒙)JS API Changes of the ArkUI Development Framework

harmony(鸿蒙)JS API Changes of the Power Management Subsystem

harmony(鸿蒙)JS API Changes of the Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the Utils Subsystem

0  赞