Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2dc1141d
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看板
提交
2dc1141d
编写于
11月 24, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[OTLayout] Remove operator() from ClassDef
上级
b67881b1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
8 deletion
+6
-8
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-common-private.hh
+0
-2
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+2
-2
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+4
-4
未找到文件。
src/hb-ot-layout-common-private.hh
浏览文件 @
2dc1141d
...
...
@@ -754,8 +754,6 @@ struct ClassDefFormat2
struct
ClassDef
{
inline
unsigned
int
operator
()
(
hb_codepoint_t
glyph_id
)
const
{
return
get_class
(
glyph_id
);
}
inline
unsigned
int
get_class
(
hb_codepoint_t
glyph_id
)
const
{
switch
(
u
.
format
)
{
...
...
src/hb-ot-layout-gpos-table.hh
浏览文件 @
2dc1141d
...
...
@@ -736,8 +736,8 @@ struct PairPosFormat2
unsigned
int
len2
=
valueFormat2
.
get_len
();
unsigned
int
record_len
=
len1
+
len2
;
unsigned
int
klass1
=
(
this
+
classDef1
)
(
c
->
buffer
->
cur
().
codepoint
);
unsigned
int
klass2
=
(
this
+
classDef2
)
(
c
->
buffer
->
info
[
skippy_iter
.
idx
].
codepoint
);
unsigned
int
klass1
=
(
this
+
classDef1
)
.
get_class
(
c
->
buffer
->
cur
().
codepoint
);
unsigned
int
klass2
=
(
this
+
classDef2
)
.
get_class
(
c
->
buffer
->
info
[
skippy_iter
.
idx
].
codepoint
);
if
(
unlikely
(
klass1
>=
class1Count
||
klass2
>=
class2Count
))
return
TRACE_RETURN
(
false
);
const
Value
*
v
=
&
values
[
record_len
*
(
klass1
*
class2Count
+
klass2
)];
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
2dc1141d
...
...
@@ -1192,7 +1192,7 @@ struct ContextFormat2
TRACE_WOULD_APPLY
(
this
);
const
ClassDef
&
class_def
=
this
+
classDef
;
unsigned
int
index
=
class_def
(
c
->
glyphs
[
0
]);
unsigned
int
index
=
class_def
.
get_class
(
c
->
glyphs
[
0
]);
const
RuleSet
&
rule_set
=
this
+
ruleSet
[
index
];
struct
ContextApplyLookupContext
lookup_context
=
{
{
match_class
},
...
...
@@ -1213,7 +1213,7 @@ struct ContextFormat2
if
(
likely
(
index
==
NOT_COVERED
))
return
TRACE_RETURN
(
false
);
const
ClassDef
&
class_def
=
this
+
classDef
;
index
=
class_def
(
c
->
buffer
->
cur
().
codepoint
);
index
=
class_def
.
get_class
(
c
->
buffer
->
cur
().
codepoint
);
const
RuleSet
&
rule_set
=
this
+
ruleSet
[
index
];
struct
ContextApplyLookupContext
lookup_context
=
{
{
match_class
},
...
...
@@ -1752,7 +1752,7 @@ struct ChainContextFormat2
const
ClassDef
&
input_class_def
=
this
+
inputClassDef
;
unsigned
int
index
=
input_class_def
(
c
->
glyphs
[
0
]);
unsigned
int
index
=
input_class_def
.
get_class
(
c
->
glyphs
[
0
]);
const
ChainRuleSet
&
rule_set
=
this
+
ruleSet
[
index
];
struct
ChainContextApplyLookupContext
lookup_context
=
{
{
match_class
},
...
...
@@ -1776,7 +1776,7 @@ struct ChainContextFormat2
const
ClassDef
&
input_class_def
=
this
+
inputClassDef
;
const
ClassDef
&
lookahead_class_def
=
this
+
lookaheadClassDef
;
index
=
input_class_def
(
c
->
buffer
->
cur
().
codepoint
);
index
=
input_class_def
.
get_class
(
c
->
buffer
->
cur
().
codepoint
);
const
ChainRuleSet
&
rule_set
=
this
+
ruleSet
[
index
];
struct
ChainContextApplyLookupContext
lookup_context
=
{
{
match_class
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录