Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1922ffe7
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看板
提交
1922ffe7
编写于
4月 21, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Const correctness
上级
e032ed9f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
17 deletion
+17
-17
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+2
-2
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+15
-15
未找到文件。
src/hb-ot-layout-gsub-private.hh
浏览文件 @
1922ffe7
...
@@ -591,10 +591,10 @@ struct ReverseChainSingleSubstFormat1
...
@@ -591,10 +591,10 @@ struct ReverseChainSingleSubstFormat1
if
(
match_backtrack
(
APPLY_ARG
,
if
(
match_backtrack
(
APPLY_ARG
,
backtrack
.
len
,
(
USHORT
*
)
backtrack
.
const_array
(),
backtrack
.
len
,
(
USHORT
*
)
backtrack
.
const_array
(),
match_coverage
,
DE
CONST_CHARP
(
this
))
&&
match_coverage
,
CONST_CHARP
(
this
))
&&
match_lookahead
(
APPLY_ARG
,
match_lookahead
(
APPLY_ARG
,
lookahead
.
len
,
(
USHORT
*
)
lookahead
.
const_array
(),
lookahead
.
len
,
(
USHORT
*
)
lookahead
.
const_array
(),
match_coverage
,
DE
CONST_CHARP
(
this
),
match_coverage
,
CONST_CHARP
(
this
),
1
))
1
))
{
{
IN_CURGLYPH
()
=
substitute
[
index
];
IN_CURGLYPH
()
=
substitute
[
index
];
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
1922ffe7
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
TRACE_APPLY_ARG_INIT
TRACE_APPLY_ARG_INIT
typedef
bool
(
*
match_func_t
)
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
char
*
data
);
typedef
bool
(
*
match_func_t
)
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
c
onst
c
har
*
data
);
typedef
bool
(
*
apply_lookup_func_t
)
(
APPLY_ARG_DEF
,
unsigned
int
lookup_index
);
typedef
bool
(
*
apply_lookup_func_t
)
(
APPLY_ARG_DEF
,
unsigned
int
lookup_index
);
struct
ContextFuncs
struct
ContextFuncs
...
@@ -91,18 +91,18 @@ struct ContextFuncs
...
@@ -91,18 +91,18 @@ struct ContextFuncs
};
};
static
inline
bool
match_glyph
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
char
*
data
HB_GNUC_UNUSED
)
static
inline
bool
match_glyph
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
c
onst
c
har
*
data
HB_GNUC_UNUSED
)
{
{
return
glyph_id
==
value
;
return
glyph_id
==
value
;
}
}
static
inline
bool
match_class
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
char
*
data
)
static
inline
bool
match_class
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
c
onst
c
har
*
data
)
{
{
const
ClassDef
&
class_def
=
*
reinterpret_cast
<
const
ClassDef
*>
(
data
);
const
ClassDef
&
class_def
=
*
reinterpret_cast
<
const
ClassDef
*>
(
data
);
return
class_def
.
get_class
(
glyph_id
)
==
value
;
return
class_def
.
get_class
(
glyph_id
)
==
value
;
}
}
static
inline
bool
match_coverage
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
char
*
data
)
static
inline
bool
match_coverage
(
hb_codepoint_t
glyph_id
,
const
USHORT
&
value
,
c
onst
c
har
*
data
)
{
{
const
OffsetTo
<
Coverage
>
&
coverage
=
(
const
OffsetTo
<
Coverage
>&
)
value
;
const
OffsetTo
<
Coverage
>
&
coverage
=
(
const
OffsetTo
<
Coverage
>&
)
value
;
return
(
data
+
coverage
)
(
glyph_id
)
!=
NOT_COVERED
;
return
(
data
+
coverage
)
(
glyph_id
)
!=
NOT_COVERED
;
...
@@ -113,7 +113,7 @@ static inline bool match_input (APPLY_ARG_DEF,
...
@@ -113,7 +113,7 @@ static inline bool match_input (APPLY_ARG_DEF,
unsigned
int
count
,
/* Including the first glyph (not matched) */
unsigned
int
count
,
/* Including the first glyph (not matched) */
const
USHORT
input
[],
/* Array of input values--start with second glyph */
const
USHORT
input
[],
/* Array of input values--start with second glyph */
match_func_t
match_func
,
match_func_t
match_func
,
char
*
match_data
,
c
onst
c
har
*
match_data
,
unsigned
int
*
context_length_out
)
unsigned
int
*
context_length_out
)
{
{
unsigned
int
i
,
j
;
unsigned
int
i
,
j
;
...
@@ -143,7 +143,7 @@ static inline bool match_backtrack (APPLY_ARG_DEF,
...
@@ -143,7 +143,7 @@ static inline bool match_backtrack (APPLY_ARG_DEF,
unsigned
int
count
,
unsigned
int
count
,
const
USHORT
backtrack
[],
const
USHORT
backtrack
[],
match_func_t
match_func
,
match_func_t
match_func
,
char
*
match_data
)
c
onst
c
har
*
match_data
)
{
{
if
(
HB_UNLIKELY
(
buffer
->
out_pos
<
count
))
if
(
HB_UNLIKELY
(
buffer
->
out_pos
<
count
))
return
false
;
return
false
;
...
@@ -168,7 +168,7 @@ static inline bool match_lookahead (APPLY_ARG_DEF,
...
@@ -168,7 +168,7 @@ static inline bool match_lookahead (APPLY_ARG_DEF,
unsigned
int
count
,
unsigned
int
count
,
const
USHORT
lookahead
[],
const
USHORT
lookahead
[],
match_func_t
match_func
,
match_func_t
match_func
,
char
*
match_data
,
c
onst
c
har
*
match_data
,
unsigned
int
offset
)
unsigned
int
offset
)
{
{
unsigned
int
i
,
j
;
unsigned
int
i
,
j
;
...
@@ -271,7 +271,7 @@ static inline bool apply_lookup (APPLY_ARG_DEF,
...
@@ -271,7 +271,7 @@ static inline bool apply_lookup (APPLY_ARG_DEF,
struct
ContextLookupContext
struct
ContextLookupContext
{
{
ContextFuncs
funcs
;
ContextFuncs
funcs
;
char
*
match_data
;
c
onst
c
har
*
match_data
;
};
};
static
inline
bool
context_lookup
(
APPLY_ARG_DEF
,
static
inline
bool
context_lookup
(
APPLY_ARG_DEF
,
...
@@ -411,7 +411,7 @@ struct ContextFormat2
...
@@ -411,7 +411,7 @@ struct ContextFormat2
*/
*/
struct
ContextLookupContext
lookup_context
=
{
struct
ContextLookupContext
lookup_context
=
{
{
match_class
,
apply_func
},
{
match_class
,
apply_func
},
DE
CONST_CHARP
(
&
class_def
)
CONST_CHARP
(
&
class_def
)
};
};
return
rule_set
.
apply
(
APPLY_ARG
,
lookup_context
);
return
rule_set
.
apply
(
APPLY_ARG
,
lookup_context
);
}
}
...
@@ -451,7 +451,7 @@ struct ContextFormat3
...
@@ -451,7 +451,7 @@ struct ContextFormat3
const
LookupRecord
*
lookupRecord
=
&
CONST_CAST
(
LookupRecord
,
coverage
,
coverage
[
0
].
get_size
()
*
glyphCount
);
const
LookupRecord
*
lookupRecord
=
&
CONST_CAST
(
LookupRecord
,
coverage
,
coverage
[
0
].
get_size
()
*
glyphCount
);
struct
ContextLookupContext
lookup_context
=
{
struct
ContextLookupContext
lookup_context
=
{
{
match_coverage
,
apply_func
},
{
match_coverage
,
apply_func
},
DE
CONST_CHARP
(
this
)
CONST_CHARP
(
this
)
};
};
return
context_lookup
(
APPLY_ARG
,
return
context_lookup
(
APPLY_ARG
,
glyphCount
,
(
const
USHORT
*
)
(
coverage
+
1
),
glyphCount
,
(
const
USHORT
*
)
(
coverage
+
1
),
...
@@ -522,7 +522,7 @@ struct Context
...
@@ -522,7 +522,7 @@ struct Context
struct
ChainContextLookupContext
struct
ChainContextLookupContext
{
{
ContextFuncs
funcs
;
ContextFuncs
funcs
;
char
*
match_data
[
3
];
c
onst
c
har
*
match_data
[
3
];
};
};
static
inline
bool
chain_context_lookup
(
APPLY_ARG_DEF
,
static
inline
bool
chain_context_lookup
(
APPLY_ARG_DEF
,
...
@@ -696,9 +696,9 @@ struct ChainContextFormat2
...
@@ -696,9 +696,9 @@ struct ChainContextFormat2
*/
*/
struct
ChainContextLookupContext
lookup_context
=
{
struct
ChainContextLookupContext
lookup_context
=
{
{
match_class
,
apply_func
},
{
match_class
,
apply_func
},
{
DE
CONST_CHARP
(
&
backtrack_class_def
),
{
CONST_CHARP
(
&
backtrack_class_def
),
DE
CONST_CHARP
(
&
input_class_def
),
CONST_CHARP
(
&
input_class_def
),
DE
CONST_CHARP
(
&
lookahead_class_def
)}
CONST_CHARP
(
&
lookahead_class_def
)}
};
};
return
rule_set
.
apply
(
APPLY_ARG
,
lookup_context
);
return
rule_set
.
apply
(
APPLY_ARG
,
lookup_context
);
}
}
...
@@ -752,7 +752,7 @@ struct ChainContextFormat3
...
@@ -752,7 +752,7 @@ struct ChainContextFormat3
const
ArrayOf
<
LookupRecord
>
&
lookup
=
CONST_NEXT
(
ArrayOf
<
LookupRecord
>
,
lookahead
);
const
ArrayOf
<
LookupRecord
>
&
lookup
=
CONST_NEXT
(
ArrayOf
<
LookupRecord
>
,
lookahead
);
struct
ChainContextLookupContext
lookup_context
=
{
struct
ChainContextLookupContext
lookup_context
=
{
{
match_coverage
,
apply_func
},
{
match_coverage
,
apply_func
},
{
DECONST_CHARP
(
this
),
DECONST_CHARP
(
this
),
DE
CONST_CHARP
(
this
)}
{
CONST_CHARP
(
this
),
CONST_CHARP
(
this
),
CONST_CHARP
(
this
)}
};
};
return
chain_context_lookup
(
APPLY_ARG
,
return
chain_context_lookup
(
APPLY_ARG
,
backtrack
.
len
,
(
const
USHORT
*
)
backtrack
.
const_array
(),
backtrack
.
len
,
(
const
USHORT
*
)
backtrack
.
const_array
(),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录