Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
55008ebb
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
55008ebb
编写于
6月 09, 2022
作者:
S
shawn_he
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update doc
Signed-off-by:
N
shawn_he
<
shawn.he@huawei.com
>
上级
809833a6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
en/application-dev/reference/apis/js-apis-i18n.md
en/application-dev/reference/apis/js-apis-i18n.md
+12
-12
未找到文件。
en/application-dev/reference/apis/js-apis-i18n.md
浏览文件 @
55008ebb
...
@@ -702,7 +702,7 @@ Defines the measurement unit information.
...
@@ -702,7 +702,7 @@ Defines the measurement unit information.
### unitConvert<sup>8+</sup>
### unitConvert<sup>8+</sup>
unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string
static
unitConvert(fromUnit: UnitInfo, toUnit: UnitInfo, value: number, locale: string, style?: string): string
Converts one measurement unit into another and formats the unit based on the specified locale and style.
Converts one measurement unit into another and formats the unit based on the specified locale and style.
...
@@ -825,7 +825,7 @@ Obtains the index of a text object.
...
@@ -825,7 +825,7 @@ Obtains the index of a text object.
### isDigit<sup>8+</sup>
### isDigit<sup>8+</sup>
isDigit(char: string): boolean
static
isDigit(char: string): boolean
Checks whether the input character string is composed of digits.
Checks whether the input character string is composed of digits.
...
@@ -849,7 +849,7 @@ Checks whether the input character string is composed of digits.
...
@@ -849,7 +849,7 @@ Checks whether the input character string is composed of digits.
### isSpaceChar<sup>8+</sup>
### isSpaceChar<sup>8+</sup>
isSpaceChar(char: string): boolean
static
isSpaceChar(char: string): boolean
Checks whether the input character is a space.
Checks whether the input character is a space.
...
@@ -873,7 +873,7 @@ Checks whether the input character is a space.
...
@@ -873,7 +873,7 @@ Checks whether the input character is a space.
### isWhitespace<sup>8+</sup>
### isWhitespace<sup>8+</sup>
isWhitespace(char: string): boolean
static
isWhitespace(char: string): boolean
Checks whether the input character is a white space.
Checks whether the input character is a white space.
...
@@ -897,7 +897,7 @@ Checks whether the input character is a white space.
...
@@ -897,7 +897,7 @@ Checks whether the input character is a white space.
### isRTL<sup>8+</sup>
### isRTL<sup>8+</sup>
isRTL(char: string): boolean
static
isRTL(char: string): boolean
Checks whether the input character is of the right to left (RTL) language.
Checks whether the input character is of the right to left (RTL) language.
...
@@ -921,7 +921,7 @@ Checks whether the input character is of the right to left (RTL) language.
...
@@ -921,7 +921,7 @@ Checks whether the input character is of the right to left (RTL) language.
### isIdeograph<sup>8+</sup>
### isIdeograph<sup>8+</sup>
isIdeograph(char: string): boolean
static
isIdeograph(char: string): boolean
Checks whether the input character is an ideographic character.
Checks whether the input character is an ideographic character.
...
@@ -945,7 +945,7 @@ Checks whether the input character is an ideographic character.
...
@@ -945,7 +945,7 @@ Checks whether the input character is an ideographic character.
### isLetter<sup>8+</sup>
### isLetter<sup>8+</sup>
isLetter(char: string): boolean
static
isLetter(char: string): boolean
Checks whether the input character is a letter.
Checks whether the input character is a letter.
...
@@ -969,7 +969,7 @@ Checks whether the input character is a letter.
...
@@ -969,7 +969,7 @@ Checks whether the input character is a letter.
### isLowerCase<sup>8+</sup>
### isLowerCase<sup>8+</sup>
isLowerCase(char: string): boolean
static
isLowerCase(char: string): boolean
Checks whether the input character is a lowercase letter.
Checks whether the input character is a lowercase letter.
...
@@ -993,7 +993,7 @@ Checks whether the input character is a lowercase letter.
...
@@ -993,7 +993,7 @@ Checks whether the input character is a lowercase letter.
### isUpperCase<sup>8+</sup>
### isUpperCase<sup>8+</sup>
isUpperCase(char: string): boolean
static
isUpperCase(char: string): boolean
Checks whether the input character is an uppercase letter.
Checks whether the input character is an uppercase letter.
...
@@ -1017,7 +1017,7 @@ Checks whether the input character is an uppercase letter.
...
@@ -1017,7 +1017,7 @@ Checks whether the input character is an uppercase letter.
### getType<sup>8+</sup>
### getType<sup>8+</sup>
getType(char: string): string
static
getType(char: string): string
Obtains the type of the input character string.
Obtains the type of the input character string.
...
@@ -1124,7 +1124,7 @@ Obtains the position of the [BreakIterator](#breakiterator8) object in the text
...
@@ -1124,7 +1124,7 @@ Obtains the position of the [BreakIterator](#breakiterator8) object in the text
```
```
var iterator = i18n.getLineInstance("en");
var iterator = i18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
iterator.setLineBreakText("Apple is my favorite fruit.");
breakIte
r.current(); // 0
iterato
r.current(); // 0
```
```
...
@@ -1145,7 +1145,7 @@ Puts the [BreakIterator](#breakiterator8) object to the first text boundary, whi
...
@@ -1145,7 +1145,7 @@ Puts the [BreakIterator](#breakiterator8) object to the first text boundary, whi
```
```
var iterator = i18n.getLineInstance("en");
var iterator = i18n.getLineInstance("en");
iterator.setLineBreakText("Apple is my favorite fruit.");
iterator.setLineBreakText("Apple is my favorite fruit.");
breakIte
r.first(); // 0
iterato
r.first(); // 0
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录