Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
240f57e5
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
240f57e5
编写于
5月 06, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename hb_deref_pointer() to hb_deref()
上级
0b1ca5a1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
9 deletion
+9
-9
src/hb-algs.hh
src/hb-algs.hh
+6
-6
src/hb-map.hh
src/hb-map.hh
+1
-1
src/hb-meta.hh
src/hb-meta.hh
+1
-1
src/hb-serialize.hh
src/hb-serialize.hh
+1
-1
未找到文件。
src/hb-algs.hh
浏览文件 @
240f57e5
...
@@ -50,7 +50,7 @@ struct
...
@@ -50,7 +50,7 @@ struct
{
{
private:
private:
template
<
typename
T
>
auto
template
<
typename
T
>
auto
impl
(
const
T
&
v
,
hb_priority
<
1
>
)
const
HB_RETURN
(
uint32_t
,
hb_deref
_pointer
(
v
).
hash
())
impl
(
const
T
&
v
,
hb_priority
<
1
>
)
const
HB_RETURN
(
uint32_t
,
hb_deref
(
v
).
hash
())
template
<
typename
T
,
template
<
typename
T
,
hb_enable_if
(
hb_is_integer
(
T
))>
auto
hb_enable_if
(
hb_is_integer
(
T
))>
auto
...
@@ -73,17 +73,17 @@ struct
...
@@ -73,17 +73,17 @@ struct
/* Pointer-to-member-function. */
/* Pointer-to-member-function. */
template
<
typename
Appl
,
typename
Val1
,
typename
...
Vals
>
auto
template
<
typename
Appl
,
typename
Val1
,
typename
...
Vals
>
auto
impl
(
Appl
&&
a
,
hb_priority
<
2
>
,
Val1
&&
v1
,
Vals
&&
...
vs
)
const
HB_AUTO_RETURN
impl
(
Appl
&&
a
,
hb_priority
<
2
>
,
Val1
&&
v1
,
Vals
&&
...
vs
)
const
HB_AUTO_RETURN
((
hb_deref
_pointer
(
hb_forward
<
Val1
>
(
v1
)).
*
hb_forward
<
Appl
>
(
a
))
(
hb_forward
<
Vals
>
(
vs
)...))
((
hb_deref
(
hb_forward
<
Val1
>
(
v1
)).
*
hb_forward
<
Appl
>
(
a
))
(
hb_forward
<
Vals
>
(
vs
)...))
/* Pointer-to-member. */
/* Pointer-to-member. */
template
<
typename
Appl
,
typename
Val
>
auto
template
<
typename
Appl
,
typename
Val
>
auto
impl
(
Appl
&&
a
,
hb_priority
<
1
>
,
Val
&&
v
)
const
HB_AUTO_RETURN
impl
(
Appl
&&
a
,
hb_priority
<
1
>
,
Val
&&
v
)
const
HB_AUTO_RETURN
((
hb_deref
_pointer
(
hb_forward
<
Val
>
(
v
))).
*
hb_forward
<
Appl
>
(
a
))
((
hb_deref
(
hb_forward
<
Val
>
(
v
))).
*
hb_forward
<
Appl
>
(
a
))
/* Operator(). */
/* Operator(). */
template
<
typename
Appl
,
typename
...
Vals
>
auto
template
<
typename
Appl
,
typename
...
Vals
>
auto
impl
(
Appl
&&
a
,
hb_priority
<
0
>
,
Vals
&&
...
vs
)
const
HB_AUTO_RETURN
impl
(
Appl
&&
a
,
hb_priority
<
0
>
,
Vals
&&
...
vs
)
const
HB_AUTO_RETURN
(
hb_deref
_pointer
(
hb_forward
<
Appl
>
(
a
))
(
hb_forward
<
Vals
>
(
vs
)...))
(
hb_deref
(
hb_forward
<
Appl
>
(
a
))
(
hb_forward
<
Vals
>
(
vs
)...))
public:
public:
...
@@ -102,7 +102,7 @@ struct
...
@@ -102,7 +102,7 @@ struct
template
<
typename
Pred
,
typename
Val
>
auto
template
<
typename
Pred
,
typename
Val
>
auto
impl
(
Pred
&&
p
,
Val
&&
v
,
hb_priority
<
1
>
)
const
HB_AUTO_RETURN
impl
(
Pred
&&
p
,
Val
&&
v
,
hb_priority
<
1
>
)
const
HB_AUTO_RETURN
(
hb_deref
_pointer
(
hb_forward
<
Pred
>
(
p
)).
has
(
v
))
(
hb_deref
(
hb_forward
<
Pred
>
(
p
)).
has
(
v
))
template
<
typename
Pred
,
typename
Val
>
auto
template
<
typename
Pred
,
typename
Val
>
auto
impl
(
Pred
&&
p
,
Val
&&
v
,
hb_priority
<
0
>
)
const
HB_AUTO_RETURN
impl
(
Pred
&&
p
,
Val
&&
v
,
hb_priority
<
0
>
)
const
HB_AUTO_RETURN
...
@@ -127,7 +127,7 @@ struct
...
@@ -127,7 +127,7 @@ struct
template
<
typename
Proj
,
typename
Val
>
auto
template
<
typename
Proj
,
typename
Val
>
auto
impl
(
Proj
&&
f
,
Val
&&
v
,
hb_priority
<
1
>
)
const
HB_AUTO_RETURN
impl
(
Proj
&&
f
,
Val
&&
v
,
hb_priority
<
1
>
)
const
HB_AUTO_RETURN
(
hb_deref
_pointer
(
hb_forward
<
Proj
>
(
f
)).
get
(
hb_forward
<
Val
>
(
v
)))
(
hb_deref
(
hb_forward
<
Proj
>
(
f
)).
get
(
hb_forward
<
Val
>
(
v
)))
template
<
typename
Proj
,
typename
Val
>
auto
template
<
typename
Proj
,
typename
Val
>
auto
impl
(
Proj
&&
f
,
Val
&&
v
,
hb_priority
<
0
>
)
const
HB_AUTO_RETURN
impl
(
Proj
&&
f
,
Val
&&
v
,
hb_priority
<
0
>
)
const
HB_AUTO_RETURN
...
...
src/hb-map.hh
浏览文件 @
240f57e5
...
@@ -57,7 +57,7 @@ struct hb_hashmap_t
...
@@ -57,7 +57,7 @@ struct hb_hashmap_t
void
clear
()
{
key
=
kINVALID
;
value
=
vINVALID
;
}
void
clear
()
{
key
=
kINVALID
;
value
=
vINVALID
;
}
bool
operator
==
(
K
o
)
{
return
hb_deref
_pointer
(
key
)
==
hb_deref_pointer
(
o
);
}
bool
operator
==
(
K
o
)
{
return
hb_deref
(
key
)
==
hb_deref
(
o
);
}
bool
operator
==
(
const
item_t
&
o
)
{
return
*
this
==
o
.
key
;
}
bool
operator
==
(
const
item_t
&
o
)
{
return
*
this
==
o
.
key
;
}
bool
is_unused
()
const
{
return
key
==
kINVALID
;
}
bool
is_unused
()
const
{
return
key
==
kINVALID
;
}
bool
is_tombstone
()
const
{
return
key
!=
kINVALID
&&
value
==
vINVALID
;
}
bool
is_tombstone
()
const
{
return
key
!=
kINVALID
&&
value
==
vINVALID
;
}
...
...
src/hb-meta.hh
浏览文件 @
240f57e5
...
@@ -126,7 +126,7 @@ struct
...
@@ -126,7 +126,7 @@ struct
template
<
typename
T
>
auto
template
<
typename
T
>
auto
operator
()
(
T
*
v
)
const
HB_AUTO_RETURN
(
*
v
)
operator
()
(
T
*
v
)
const
HB_AUTO_RETURN
(
*
v
)
}
HB_FUNCOBJ
(
hb_deref
_pointer
);
}
HB_FUNCOBJ
(
hb_deref
);
template
<
bool
B
,
typename
T
=
void
>
struct
hb_enable_if
{};
template
<
bool
B
,
typename
T
=
void
>
struct
hb_enable_if
{};
...
...
src/hb-serialize.hh
浏览文件 @
240f57e5
...
@@ -132,7 +132,7 @@ struct hb_serialize_context_t
...
@@ -132,7 +132,7 @@ struct hb_serialize_context_t
{
return
check_equal
(
v1
=
v2
,
v2
);
}
{
return
check_equal
(
v1
=
v2
,
v2
);
}
template
<
typename
T
>
bool
propagate_error
(
T
&&
obj
)
template
<
typename
T
>
bool
propagate_error
(
T
&&
obj
)
{
return
check_success
(
!
hb_deref
_pointer
(
obj
).
in_error
());
}
{
return
check_success
(
!
hb_deref
(
obj
).
in_error
());
}
template
<
typename
T1
,
typename
...
Ts
>
bool
propagate_error
(
T1
&&
o1
,
Ts
&&
...
os
)
template
<
typename
T1
,
typename
...
Ts
>
bool
propagate_error
(
T1
&&
o1
,
Ts
&&
...
os
)
{
return
propagate_error
(
hb_forward
<
T1
>
(
o1
))
&&
{
return
propagate_error
(
hb_forward
<
T1
>
(
o1
))
&&
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录