Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
955aa56b
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看板
提交
955aa56b
编写于
10月 25, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[vector] Make it act more like pointer
Add pointer cast operator and plus operator.
上级
8d55e2ad
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
20 addition
and
14 deletion
+20
-14
src/hb-coretext.cc
src/hb-coretext.cc
+1
-1
src/hb-machinery.hh
src/hb-machinery.hh
+1
-1
src/hb-ot-cmap-table.hh
src/hb-ot-cmap-table.hh
+1
-1
src/hb-set.hh
src/hb-set.hh
+4
-4
src/hb-subset.cc
src/hb-subset.cc
+1
-1
src/hb-uniscribe.cc
src/hb-uniscribe.cc
+6
-6
src/hb-vector.hh
src/hb-vector.hh
+6
-0
未找到文件。
src/hb-coretext.cc
浏览文件 @
955aa56b
...
...
@@ -586,7 +586,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
}
else
{
active_feature_t
*
feature
=
active_features
.
find
(
&
event
->
feature
);
if
(
feature
)
active_features
.
remove
(
feature
-
active_features
.
arrayZ
()
);
active_features
.
remove
(
feature
-
active_features
);
}
}
}
...
...
src/hb-machinery.hh
浏览文件 @
955aa56b
...
...
@@ -612,7 +612,7 @@ struct Supplier
}
inline
Supplier
(
const
hb_vector_t
<
Type
>
*
v
)
{
head
=
v
->
arrayZ
()
;
head
=
*
v
;
len
=
v
->
len
;
stride
=
sizeof
(
Type
);
}
...
...
src/hb-ot-cmap-table.hh
浏览文件 @
955aa56b
...
...
@@ -495,7 +495,7 @@ struct CmapSubtableLongSegmented
{
TRACE_SERIALIZE
(
this
);
if
(
unlikely
(
!
c
->
extend_min
(
*
this
)))
return_trace
(
false
);
Supplier
<
CmapSubtableLongGroup
>
supplier
(
group_data
.
arrayZ
()
,
group_data
.
len
);
Supplier
<
CmapSubtableLongGroup
>
supplier
(
group_data
,
group_data
.
len
);
if
(
unlikely
(
!
groups
.
serialize
(
c
,
supplier
,
group_data
.
len
)))
return_trace
(
false
);
return
true
;
}
...
...
src/hb-set.hh
浏览文件 @
955aa56b
...
...
@@ -368,8 +368,8 @@ struct hb_set_t
if
(
!
resize
(
count
))
return
;
population
=
other
->
population
;
memcpy
(
pages
.
arrayZ
(),
other
->
pages
.
arrayZ
()
,
count
*
sizeof
(
pages
[
0
]));
memcpy
(
page_map
.
arrayZ
(),
other
->
page_map
.
arrayZ
()
,
count
*
sizeof
(
page_map
[
0
]));
memcpy
(
pages
,
other
->
pages
,
count
*
sizeof
(
pages
[
0
]));
memcpy
(
page_map
,
other
->
page_map
,
count
*
sizeof
(
page_map
[
0
]));
}
inline
bool
is_equal
(
const
hb_set_t
*
other
)
const
...
...
@@ -669,8 +669,8 @@ struct hb_set_t
return
nullptr
;
pages
[
map
.
index
].
init0
();
memmove
(
page_map
.
arrayZ
()
+
i
+
1
,
page_map
.
arrayZ
()
+
i
,
memmove
(
page_map
+
i
+
1
,
page_map
+
i
,
(
page_map
.
len
-
1
-
i
)
*
sizeof
(
page_map
[
0
]));
page_map
[
i
]
=
map
;
}
...
...
src/hb-subset.cc
浏览文件 @
955aa56b
...
...
@@ -77,7 +77,7 @@ _subset2 (hb_subset_plan_t *plan)
return
false
;
}
retry:
hb_serialize_context_t
serializer
(
buf
.
arrayZ
()
,
buf_size
);
hb_serialize_context_t
serializer
(
buf
,
buf_size
);
hb_subset_context_t
c
(
plan
,
&
serializer
);
result
=
table
->
subset
(
&
c
);
if
(
serializer
.
ran_out_of_room
)
...
...
src/hb-uniscribe.cc
浏览文件 @
955aa56b
...
...
@@ -717,7 +717,7 @@ _hb_uniscribe_shape (hb_shape_plan_t *shape_plan,
{
active_feature_t
*
feature
=
active_features
.
find
(
&
event
->
feature
);
if
(
feature
)
active_features
.
remove
(
feature
-
active_features
.
arrayZ
()
);
active_features
.
remove
(
feature
-
active_features
);
}
}
...
...
@@ -728,7 +728,7 @@ _hb_uniscribe_shape (hb_shape_plan_t *shape_plan,
for
(
unsigned
int
i
=
0
;
i
<
range_records
.
len
;
i
++
)
{
range_record_t
*
range
=
&
range_records
[
i
];
range
->
props
.
potfRecords
=
feature_records
.
arrayZ
()
+
reinterpret_cast
<
uintptr_t
>
(
range
->
props
.
potfRecords
);
range
->
props
.
potfRecords
=
feature_records
+
reinterpret_cast
<
uintptr_t
>
(
range
->
props
.
potfRecords
);
}
}
...
...
@@ -902,8 +902,8 @@ retry:
&
items
[
i
].
a
,
script_tags
[
i
],
language_tag
,
range_char_counts
.
arrayZ
()
,
range_properties
.
arrayZ
()
,
range_char_counts
,
range_properties
,
range_properties
.
len
,
pchars
+
chars_offset
,
item_chars_len
,
...
...
@@ -943,8 +943,8 @@ retry:
&
items
[
i
].
a
,
script_tags
[
i
],
language_tag
,
range_char_counts
.
arrayZ
()
,
range_properties
.
arrayZ
()
,
range_char_counts
,
range_properties
,
range_properties
.
len
,
pchars
+
chars_offset
,
log_clusters
+
chars_offset
,
...
...
src/hb-vector.hh
浏览文件 @
955aa56b
...
...
@@ -66,6 +66,12 @@ struct hb_vector_t
return
arrayZ
()[
i
];
}
template
<
typename
T
>
inline
operator
T
*
(
void
)
{
return
arrayZ
();
}
template
<
typename
T
>
inline
operator
const
T
*
(
void
)
const
{
return
arrayZ
();
}
inline
Type
*
operator
+
(
unsigned
int
i
)
{
return
arrayZ
()
+
i
;
}
inline
const
Type
*
operator
+
(
unsigned
int
i
)
const
{
return
arrayZ
()
+
i
;
}
inline
Type
*
push
(
void
)
{
if
(
unlikely
(
!
resize
(
len
+
1
)))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录