Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
445364d8
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看板
提交
445364d8
编写于
1月 08, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[iter] Rename hb_is_[sorted_]iterator() -> hb_is_[sorted_]iterator_of()
上级
a6c013b1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
12 deletion
+15
-12
src/hb-iter.hh
src/hb-iter.hh
+9
-6
src/hb-open-type.hh
src/hb-open-type.hh
+2
-2
src/hb-ot-layout-common.hh
src/hb-ot-layout-common.hh
+3
-3
src/test-iter.cc
src/test-iter.cc
+1
-1
未找到文件。
src/hb-iter.hh
浏览文件 @
445364d8
...
...
@@ -162,7 +162,7 @@ struct hb_is_iterable { enum { value = _hb_is_iterable<T, hb_true_t>::value }; }
/* hb_is_iterator() / hb_is_sorted_iterator() */
template
<
typename
Iter
>
struct
_hb_is_iterator
struct
_hb_is_iterator
_of
{
char
operator
()
(...)
{
return
0
;
};
template
<
typename
Item
>
int
operator
()
(
hb_iter_t
<
Iter
,
Item
>
*
)
{
return
0
;
};
...
...
@@ -172,13 +172,16 @@ struct _hb_is_iterator
static_assert
(
sizeof
(
char
)
!=
sizeof
(
int
),
""
);
};
template
<
typename
Iter
,
typename
Item
>
struct
hb_is_iterator
{
enum
{
value
=
sizeof
(
int
)
==
sizeof
(
hb_declval
(
_hb_is_iterator
<
Iter
>
)
(
hb_declval
(
Iter
*
)))
};
};
#define hb_is_iterator(Iter, Item) hb_is_iterator<Iter, Item>::value
struct
hb_is_iterator_of
{
enum
{
value
=
sizeof
(
int
)
==
sizeof
(
hb_declval
(
_hb_is_iterator_of
<
Iter
>
)
(
hb_declval
(
Iter
*
)))
};
};
#define hb_is_iterator_of(Iter, Item) hb_is_iterator_of<Iter, Item>::value
#define hb_is_iterator(Iter) hb_is_iterator_of (Iter, typename Iter::item_t)
#define hb_is_sorted_iterator(Iter, Item) \
hb_is_iterator (Iter, Item) && \
#define hb_is_sorted_iterator
_of
(Iter, Item) \
hb_is_iterator
_of
(Iter, Item) && \
Iter::is_sorted_iterator
#define hb_is_sorted_iterator(Iter) \
hb_is_sorted_iterator_of (Iter, typename Iter::item_t)
/*
* Algorithms operating on iterators or iteratables.
...
...
src/hb-open-type.hh
浏览文件 @
445364d8
...
...
@@ -554,7 +554,7 @@ struct ArrayOf
return_trace
(
true
);
}
template
<
typename
Iterator
>
hb_enable_if_t
(
hb_is_iterator
(
Iterator
,
const
Type
),
hb_enable_if_t
(
hb_is_iterator
_of
(
Iterator
,
const
Type
),
bool
)
serialize
(
hb_serialize_context_t
*
c
,
Iterator
items
)
{
...
...
@@ -822,7 +822,7 @@ struct SortedArrayOf : ArrayOf<Type, LenType>
return_trace
(
ret
);
}
template
<
typename
Iterator
>
hb_enable_if_t
(
hb_is_sorted_iterator
(
Iterator
,
const
Type
),
hb_enable_if_t
(
hb_is_sorted_iterator
_of
(
Iterator
,
const
Type
),
bool
)
serialize
(
hb_serialize_context_t
*
c
,
Iterator
items
)
{
...
...
src/hb-ot-layout-common.hh
浏览文件 @
445364d8
...
...
@@ -827,7 +827,7 @@ struct CoverageFormat1
}
template
<
typename
Iterator
>
hb_enable_if_t
(
hb_is_sorted_iterator
(
Iterator
,
const
GlyphID
),
hb_enable_if_t
(
hb_is_sorted_iterator
_of
(
Iterator
,
const
GlyphID
),
bool
)
serialize
(
hb_serialize_context_t
*
c
,
Iterator
glyphs
)
{
...
...
@@ -896,7 +896,7 @@ struct CoverageFormat2
}
template
<
typename
Iterator
>
hb_enable_if_t
(
hb_is_sorted_iterator
(
Iterator
,
const
GlyphID
),
hb_enable_if_t
(
hb_is_sorted_iterator
_of
(
Iterator
,
const
GlyphID
),
bool
)
serialize
(
hb_serialize_context_t
*
c
,
Iterator
glyphs
)
{
...
...
@@ -1047,7 +1047,7 @@ struct Coverage
}
template
<
typename
Iterator
>
hb_enable_if_t
(
hb_is_sorted_iterator
(
Iterator
,
const
GlyphID
),
hb_enable_if_t
(
hb_is_sorted_iterator
_of
(
Iterator
,
const
GlyphID
),
bool
)
serialize
(
hb_serialize_context_t
*
c
,
Iterator
glyphs
)
{
...
...
src/test-iter.cc
浏览文件 @
445364d8
...
...
@@ -66,7 +66,7 @@ struct some_array_t
template
<
typename
Iter
>
static
hb_enable_if_t
(
hb_is_iterator
(
Iter
,
typename
Iter
::
item_t
),
hb_enable_if_t
(
hb_is_iterator
(
Iter
),
void
)
test_iterator
(
Iter
it
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录