harmony(鸿蒙)全球化子系统JS API变更

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

全球化子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,全球化子系统的API变更如下:

接口变更

模块名 类名 方法/属性/枚举/常量 变更类型
ohos.i18n Unicode static getType(char: string): string; 新增
ohos.i18n Unicode static isUpperCase(char: string): boolean; 新增
ohos.i18n Unicode static isLowerCase(char: string): boolean; 新增
ohos.i18n Unicode static isLetter(char: string): boolean; 新增
ohos.i18n Unicode static isIdeograph(char: string): boolean; 新增
ohos.i18n Unicode static isRTL(char: string): boolean; 新增
ohos.i18n Unicode static isWhitespace(char: string): boolean; 新增
ohos.i18n Unicode static isSpaceChar(char: string): boolean; 新增
ohos.i18n Unicode static isDigit(char: string): boolean; 新增
ohos.i18n I18NUtil static getDateOrder(locale: string): string; 新增
ohos.i18n I18NUtil static unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; 新增
ohos.i18n Util getDateOrder(locale: string): string; 删除
ohos.i18n Character getType(char: string): string; 废弃
ohos.i18n Character isUpperCase(char: string): boolean; 废弃
ohos.i18n Character isLowerCase(char: string): boolean; 废弃
ohos.i18n Character isLetter(char: string): boolean; 废弃
ohos.i18n Character isIdeograph(char: string): boolean; 废弃
ohos.i18n Character isRTL(char: string): boolean; 废弃
ohos.i18n Character isWhitespace(char: string): boolean; 废弃
ohos.i18n Character isSpaceChar(char: string): boolean; 废弃
ohos.i18n Character isDigit(char: string): boolean; 废弃
ohos.i18n Util unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string; 废弃

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)3.2 beta3相对于3.2 beta2变更详细说明

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)无障碍子系统JS API变更

harmony(鸿蒙)帐号子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)电源服务子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)基础通信子系统JS API变更

harmony(鸿蒙)公共基础库子系统JS API变更

0  赞