Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4f5f1c34
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4f5f1c34
编写于
4月 22, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename const_sub_array to sub_array since all consts are implicit now
上级
0795b784
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
src/hb-open-type-private.hh
src/hb-open-type-private.hh
+1
-1
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-common-private.hh
+2
-2
src/hb-ot-layout-gdef-private.hh
src/hb-ot-layout-gdef-private.hh
+2
-2
未找到文件。
src/hb-open-type-private.hh
浏览文件 @
4f5f1c34
...
...
@@ -521,7 +521,7 @@ struct GenericArrayOf
const
Type
*
array
(
void
)
const
{
return
&
StructAfter
<
Type
>
(
len
);
}
Type
*
array
(
void
)
{
return
&
StructAfter
<
Type
>
(
len
);
}
const
Type
*
const_
sub_array
(
unsigned
int
start_offset
,
unsigned
int
*
pcount
/* IN/OUT */
)
const
const
Type
*
sub_array
(
unsigned
int
start_offset
,
unsigned
int
*
pcount
/* IN/OUT */
)
const
{
unsigned
int
count
=
len
;
if
(
HB_UNLIKELY
(
start_offset
>
count
))
...
...
src/hb-ot-layout-common-private.hh
浏览文件 @
4f5f1c34
...
...
@@ -76,7 +76,7 @@ struct RecordArrayOf : ArrayOf<Record<Type> > {
hb_tag_t
*
record_tags
/* OUT */
)
const
{
if
(
record_count
)
{
const
Record
<
Type
>
*
array
=
this
->
const_
sub_array
(
start_offset
,
record_count
);
const
Record
<
Type
>
*
array
=
this
->
sub_array
(
start_offset
,
record_count
);
unsigned
int
count
=
*
record_count
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
record_tags
[
i
]
=
array
[
i
].
tag
;
...
...
@@ -129,7 +129,7 @@ struct IndexArray : ArrayOf<USHORT>
unsigned
int
*
_indexes
/* OUT */
)
const
{
if
(
_count
)
{
const
USHORT
*
array
=
this
->
const_
sub_array
(
start_offset
,
_count
);
const
USHORT
*
array
=
this
->
sub_array
(
start_offset
,
_count
);
unsigned
int
count
=
*
_count
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
_indexes
[
i
]
=
array
[
i
];
...
...
src/hb-ot-layout-gdef-private.hh
浏览文件 @
4f5f1c34
...
...
@@ -58,7 +58,7 @@ struct AttachList
const
AttachPoint
&
points
=
this
+
attachPoint
[
index
];
if
(
point_count
)
{
const
USHORT
*
array
=
points
.
const_
sub_array
(
start_offset
,
point_count
);
const
USHORT
*
array
=
points
.
sub_array
(
start_offset
,
point_count
);
unsigned
int
count
=
*
point_count
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
point_array
[
i
]
=
array
[
i
];
...
...
@@ -196,7 +196,7 @@ struct LigGlyph
int
*
caret_array
/* OUT */
)
const
{
if
(
caret_count
)
{
const
OffsetTo
<
CaretValue
>
*
array
=
carets
.
const_
sub_array
(
start_offset
,
caret_count
);
const
OffsetTo
<
CaretValue
>
*
array
=
carets
.
sub_array
(
start_offset
,
caret_count
);
unsigned
int
count
=
*
caret_count
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
caret_array
[
i
]
=
(
this
+
array
[
i
]).
get_caret_value
(
context
,
glyph_id
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录