Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
7f97d2cd
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7f97d2cd
编写于
10月 01, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Pedantic
上级
28414369
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
src/hb-open-type-private.hh
src/hb-open-type-private.hh
+6
-6
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-common-private.hh
+1
-1
src/hb-ot-layout-gdef-private.hh
src/hb-ot-layout-gdef-private.hh
+5
-5
src/hb-ot-layout-gpos-private.hh
src/hb-ot-layout-gpos-private.hh
+3
-3
未找到文件。
src/hb-open-type-private.hh
浏览文件 @
7f97d2cd
...
...
@@ -126,7 +126,7 @@ static const void *_NullPool[64 / sizeof (void *)];
/* Generic nul-content Null objects. */
template
<
typename
Type
>
static
inline
const
Type
&
Null
()
{
static
inline
const
Type
&
Null
(
void
)
{
ASSERT_STATIC
(
Type
::
min_size
<=
sizeof
(
_NullPool
));
return
*
CastP
<
Type
>
(
_NullPool
);
}
...
...
@@ -135,7 +135,7 @@ static inline const Type& Null () {
#define DEFINE_NULL_DATA(Type, data) \
static const char _Null##Type[Type::min_size + 1] = data;
/* +1 is for nul-termination in data */
\
template <> \
inline const Type& Null<Type> () { \
inline const Type& Null<Type> (
void
) { \
return *CastP<Type> (_Null##Type); \
}
/* The following line really exists such that we end in a place needing semicolon */
\
ASSERT_STATIC (Type::min_size + 1 <= sizeof (_Null##Type))
...
...
@@ -373,7 +373,7 @@ class BEInt<Type, 2>
{
public:
inline
void
set
(
Type
i
)
{
hb_be_uint16_put
(
v
,
i
);
}
inline
operator
Type
()
const
{
return
hb_be_uint16_get
(
v
);
}
inline
operator
Type
(
void
)
const
{
return
hb_be_uint16_get
(
v
);
}
inline
bool
operator
==
(
const
BEInt
<
Type
,
2
>&
o
)
const
{
return
hb_be_uint16_cmp
(
v
,
o
.
v
);
}
inline
bool
operator
!=
(
const
BEInt
<
Type
,
2
>&
o
)
const
{
return
!
(
*
this
==
o
);
}
private:
uint8_t
v
[
2
];
...
...
@@ -383,7 +383,7 @@ class BEInt<Type, 4>
{
public:
inline
void
set
(
Type
i
)
{
hb_be_uint32_put
(
v
,
i
);
}
inline
operator
Type
()
const
{
return
hb_be_uint32_get
(
v
);
}
inline
operator
Type
(
void
)
const
{
return
hb_be_uint32_get
(
v
);
}
inline
bool
operator
==
(
const
BEInt
<
Type
,
4
>&
o
)
const
{
return
hb_be_uint32_cmp
(
v
,
o
.
v
);
}
inline
bool
operator
!=
(
const
BEInt
<
Type
,
4
>&
o
)
const
{
return
!
(
*
this
==
o
);
}
private:
uint8_t
v
[
4
];
...
...
@@ -571,7 +571,7 @@ struct GenericArrayOf
if
(
unlikely
(
i
>=
len
))
return
Null
(
Type
);
return
array
[
i
];
}
inline
unsigned
int
get_size
()
const
inline
unsigned
int
get_size
(
void
)
const
{
return
len
.
static_size
+
len
*
Type
::
static_size
;
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
{
...
...
@@ -677,7 +677,7 @@ struct HeadlessArrayOf
if
(
unlikely
(
i
>=
len
||
!
i
))
return
Null
(
Type
);
return
array
[
i
-
1
];
}
inline
unsigned
int
get_size
()
const
inline
unsigned
int
get_size
(
void
)
const
{
return
len
.
static_size
+
(
len
?
len
-
1
:
0
)
*
Type
::
static_size
;
}
inline
bool
sanitize_shallow
(
hb_sanitize_context_t
*
c
)
{
...
...
src/hb-ot-layout-common-private.hh
浏览文件 @
7f97d2cd
...
...
@@ -566,7 +566,7 @@ struct Device
return
delta
;
}
inline
unsigned
int
get_size
()
const
inline
unsigned
int
get_size
(
void
)
const
{
unsigned
int
f
=
deltaFormat
;
if
(
unlikely
(
f
<
1
||
f
>
3
||
startSize
>
endSize
))
return
3
*
USHORT
::
static_size
;
...
...
src/hb-ot-layout-gdef-private.hh
浏览文件 @
7f97d2cd
...
...
@@ -333,22 +333,22 @@ struct GDEF
ComponentGlyph
=
4
};
inline
bool
has_glyph_classes
()
const
{
return
glyphClassDef
!=
0
;
}
inline
bool
has_glyph_classes
(
void
)
const
{
return
glyphClassDef
!=
0
;
}
inline
hb_ot_layout_class_t
get_glyph_class
(
hb_codepoint_t
glyph
)
const
{
return
(
this
+
glyphClassDef
).
get_class
(
glyph
);
}
inline
bool
has_mark_attachment_types
()
const
{
return
markAttachClassDef
!=
0
;
}
inline
bool
has_mark_attachment_types
(
void
)
const
{
return
markAttachClassDef
!=
0
;
}
inline
hb_ot_layout_class_t
get_mark_attachment_type
(
hb_codepoint_t
glyph
)
const
{
return
(
this
+
markAttachClassDef
).
get_class
(
glyph
);
}
inline
bool
has_attach_points
()
const
{
return
attachList
!=
0
;
}
inline
bool
has_attach_points
(
void
)
const
{
return
attachList
!=
0
;
}
inline
unsigned
int
get_attach_points
(
hb_codepoint_t
glyph_id
,
unsigned
int
start_offset
,
unsigned
int
*
point_count
/* IN/OUT */
,
unsigned
int
*
point_array
/* OUT */
)
const
{
return
(
this
+
attachList
).
get_attach_points
(
glyph_id
,
start_offset
,
point_count
,
point_array
);
}
inline
bool
has_lig_carets
()
const
{
return
ligCaretList
!=
0
;
}
inline
bool
has_lig_carets
(
void
)
const
{
return
ligCaretList
!=
0
;
}
inline
unsigned
int
get_lig_carets
(
hb_ot_layout_context_t
*
c
,
hb_codepoint_t
glyph_id
,
unsigned
int
start_offset
,
...
...
@@ -356,7 +356,7 @@ struct GDEF
int
*
caret_array
/* OUT */
)
const
{
return
(
this
+
ligCaretList
).
get_lig_carets
(
c
,
glyph_id
,
start_offset
,
caret_count
,
caret_array
);
}
inline
bool
has_mark_sets
()
const
{
return
version
>=
0x00010002
&&
markGlyphSetsDef
[
0
]
!=
0
;
}
inline
bool
has_mark_sets
(
void
)
const
{
return
version
>=
0x00010002
&&
markGlyphSetsDef
[
0
]
!=
0
;
}
inline
bool
mark_set_covers
(
unsigned
int
set_index
,
hb_codepoint_t
glyph_id
)
const
{
return
version
>=
0x00010002
&&
(
this
+
markGlyphSetsDef
[
0
]).
covers
(
set_index
,
glyph_id
);
}
...
...
src/hb-ot-layout-gpos-private.hh
浏览文件 @
7f97d2cd
...
...
@@ -84,9 +84,9 @@ struct ValueFormat : USHORT
* PosTable (may be NULL) */
#endif
inline
unsigned
int
get_len
()
const
inline
unsigned
int
get_len
(
void
)
const
{
return
_hb_popcount32
((
unsigned
int
)
*
this
);
}
inline
unsigned
int
get_size
()
const
inline
unsigned
int
get_size
(
void
)
const
{
return
get_len
()
*
Value
::
static_size
;
}
void
apply_value
(
hb_ot_layout_context_t
*
layout
,
...
...
@@ -154,7 +154,7 @@ struct ValueFormat : USHORT
public:
inline
bool
has_device
()
const
{
inline
bool
has_device
(
void
)
const
{
unsigned
int
format
=
*
this
;
return
(
format
&
devices
)
!=
0
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录