Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2cb08458
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看板
提交
2cb08458
编写于
4月 21, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename const_array() to array() (overloaded)
上级
2e2f43ed
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
19 deletion
+19
-19
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
+2
-2
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+3
-3
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+8
-8
未找到文件。
src/hb-open-type-private.hh
浏览文件 @
2cb08458
...
...
@@ -513,7 +513,7 @@ struct LongOffsetTo : GenericOffsetTo<LongOffset, Type> {};
template
<
typename
LenType
,
typename
Type
>
struct
GenericArrayOf
{
const
Type
*
const_
array
(
void
)
const
{
return
&
StructAfter
<
Type
>
(
len
);
}
const
Type
*
array
(
void
)
const
{
return
&
StructAfter
<
Type
>
(
len
);
}
Type
*
array
(
void
)
{
return
&
StructAfter
<
Type
>
(
len
);
}
const
Type
*
const_sub_array
(
unsigned
int
start_offset
,
unsigned
int
*
pcount
/* IN/OUT */
)
const
...
...
@@ -525,13 +525,13 @@ struct GenericArrayOf
count
-=
start_offset
;
count
=
MIN
(
count
,
*
pcount
);
*
pcount
=
count
;
return
const_
array
()
+
start_offset
;
return
array
()
+
start_offset
;
}
inline
const
Type
&
operator
[]
(
unsigned
int
i
)
const
{
if
(
HB_UNLIKELY
(
i
>=
len
))
return
Null
(
Type
);
return
const_
array
()[
i
];
return
array
()[
i
];
}
inline
unsigned
int
get_size
()
const
{
return
len
.
get_size
()
+
len
*
Type
::
get_size
();
}
...
...
@@ -612,7 +612,7 @@ struct OffsetListOf : OffsetArrayOf<Type>
inline
const
Type
&
operator
[]
(
unsigned
int
i
)
const
{
if
(
HB_UNLIKELY
(
i
>=
this
->
len
))
return
Null
(
Type
);
return
this
+
this
->
const_
array
()[
i
];
return
this
+
this
->
array
()[
i
];
}
inline
bool
sanitize
(
SANITIZE_ARG_DEF
)
{
...
...
@@ -631,13 +631,13 @@ struct OffsetListOf : OffsetArrayOf<Type>
template
<
typename
Type
>
struct
HeadlessArrayOf
{
const
Type
*
const_
array
(
void
)
const
{
return
&
StructAfter
<
Type
>
(
len
);
}
const
Type
*
array
(
void
)
const
{
return
&
StructAfter
<
Type
>
(
len
);
}
Type
*
array
(
void
)
{
return
&
StructAfter
<
Type
>
(
len
);
}
inline
const
Type
&
operator
[]
(
unsigned
int
i
)
const
{
if
(
HB_UNLIKELY
(
i
>=
len
||
!
i
))
return
Null
(
Type
);
return
const_
array
()[
i
-
1
];
return
array
()[
i
-
1
];
}
inline
unsigned
int
get_size
()
const
{
return
len
.
get_size
()
+
(
len
?
len
-
1
:
0
)
*
Type
::
get_size
();
}
...
...
src/hb-ot-layout-common-private.hh
浏览文件 @
2cb08458
...
...
@@ -88,7 +88,7 @@ struct RecordArrayOf : ArrayOf<Record<Type> > {
Tag
t
;
t
.
set
(
tag
);
// TODO bsearch
const
Record
<
Type
>
*
a
=
this
->
const_
array
();
const
Record
<
Type
>
*
a
=
this
->
array
();
unsigned
int
count
=
this
->
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -122,7 +122,7 @@ struct IndexArray : ArrayOf<USHORT>
{
if
(
HB_UNLIKELY
(
i
>=
this
->
len
))
return
NO_INDEX
;
return
this
->
const_
array
()[
i
];
return
this
->
array
()[
i
];
}
inline
unsigned
int
get_indexes
(
unsigned
int
start_offset
,
unsigned
int
*
_count
/* IN/OUT */
,
...
...
src/hb-ot-layout-gsub-private.hh
浏览文件 @
2cb08458
...
...
@@ -159,7 +159,7 @@ struct Sequence
return
false
;
_hb_buffer_add_output_glyphs_be16
(
buffer
,
1
,
substitute
.
len
,
(
const
uint16_t
*
)
substitute
.
const_
array
(),
substitute
.
len
,
(
const
uint16_t
*
)
substitute
.
array
(),
0xFFFF
,
0xFFFF
);
/* This is a guess only ... */
...
...
@@ -590,10 +590,10 @@ struct ReverseChainSingleSubstFormat1
const
ArrayOf
<
GlyphID
>
&
substitute
=
StructAfter
<
ArrayOf
<
GlyphID
>
>
(
lookahead
);
if
(
match_backtrack
(
APPLY_ARG
,
backtrack
.
len
,
(
USHORT
*
)
backtrack
.
const_
array
(),
backtrack
.
len
,
(
USHORT
*
)
backtrack
.
array
(),
match_coverage
,
ConstCharP
(
this
))
&&
match_lookahead
(
APPLY_ARG
,
lookahead
.
len
,
(
USHORT
*
)
lookahead
.
const_
array
(),
lookahead
.
len
,
(
USHORT
*
)
lookahead
.
array
(),
match_coverage
,
ConstCharP
(
this
),
1
))
{
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
2cb08458
...
...
@@ -573,10 +573,10 @@ struct ChainRule
const
ArrayOf
<
USHORT
>
&
lookahead
=
StructAfter
<
ArrayOf
<
USHORT
>
>
(
input
);
const
ArrayOf
<
LookupRecord
>
&
lookup
=
StructAfter
<
ArrayOf
<
LookupRecord
>
>
(
lookahead
);
return
chain_context_lookup
(
APPLY_ARG
,
backtrack
.
len
,
backtrack
.
const_
array
(),
input
.
len
,
input
.
const_
array
(),
lookahead
.
len
,
lookahead
.
const_
array
(),
lookup
.
len
,
lookup
.
const_
array
(),
backtrack
.
len
,
backtrack
.
array
(),
input
.
len
,
input
.
array
(),
lookahead
.
len
,
lookahead
.
array
(),
lookup
.
len
,
lookup
.
array
(),
lookup_context
);
return
false
;
}
...
...
@@ -755,10 +755,10 @@ struct ChainContextFormat3
{
ConstCharP
(
this
),
ConstCharP
(
this
),
ConstCharP
(
this
)}
};
return
chain_context_lookup
(
APPLY_ARG
,
backtrack
.
len
,
(
const
USHORT
*
)
backtrack
.
const_
array
(),
input
.
len
,
(
const
USHORT
*
)
input
.
const_
array
()
+
1
,
lookahead
.
len
,
(
const
USHORT
*
)
lookahead
.
const_
array
(),
lookup
.
len
,
lookup
.
const_
array
(),
backtrack
.
len
,
(
const
USHORT
*
)
backtrack
.
array
(),
input
.
len
,
(
const
USHORT
*
)
input
.
array
()
+
1
,
lookahead
.
len
,
(
const
USHORT
*
)
lookahead
.
array
(),
lookup
.
len
,
lookup
.
array
(),
lookup_context
);
return
false
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录