Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
fca0923b
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看板
提交
fca0923b
编写于
7月 20, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor
上级
26b60249
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
38 addition
and
24 deletion
+38
-24
src/hb-icu.cc
src/hb-icu.cc
+38
-24
未找到文件。
src/hb-icu.cc
浏览文件 @
fca0923b
...
@@ -63,18 +63,18 @@ hb_icu_script_from_script (hb_script_t script)
...
@@ -63,18 +63,18 @@ hb_icu_script_from_script (hb_script_t script)
static
unsigned
int
static
unsigned
int
hb_icu_
get
_combining_class
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_icu_
unicode
_combining_class
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
unicode
,
hb_codepoint_t
unicode
,
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
{
return
u_getCombiningClass
(
unicode
);
return
u_getCombiningClass
(
unicode
);
}
}
static
unsigned
int
static
unsigned
int
hb_icu_
get
_eastasian_width
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_icu_
unicode
_eastasian_width
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
unicode
,
hb_codepoint_t
unicode
,
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
{
switch
(
u_getIntPropertyValue
(
unicode
,
UCHAR_EAST_ASIAN_WIDTH
))
switch
(
u_getIntPropertyValue
(
unicode
,
UCHAR_EAST_ASIAN_WIDTH
))
{
{
...
@@ -91,9 +91,9 @@ hb_icu_get_eastasian_width (hb_unicode_funcs_t *ufuncs HB_UNUSED,
...
@@ -91,9 +91,9 @@ hb_icu_get_eastasian_width (hb_unicode_funcs_t *ufuncs HB_UNUSED,
}
}
static
hb_unicode_general_category_t
static
hb_unicode_general_category_t
hb_icu_
get
_general_category
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_icu_
unicode
_general_category
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
unicode
,
hb_codepoint_t
unicode
,
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
{
switch
(
u_getIntPropertyValue
(
unicode
,
UCHAR_GENERAL_CATEGORY
))
switch
(
u_getIntPropertyValue
(
unicode
,
UCHAR_GENERAL_CATEGORY
))
{
{
...
@@ -142,17 +142,17 @@ hb_icu_get_general_category (hb_unicode_funcs_t *ufuncs HB_UNUSED,
...
@@ -142,17 +142,17 @@ hb_icu_get_general_category (hb_unicode_funcs_t *ufuncs HB_UNUSED,
}
}
static
hb_codepoint_t
static
hb_codepoint_t
hb_icu_
get
_mirroring
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_icu_
unicode
_mirroring
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
unicode
,
hb_codepoint_t
unicode
,
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
{
return
u_charMirror
(
unicode
);
return
u_charMirror
(
unicode
);
}
}
static
hb_script_t
static
hb_script_t
hb_icu_
get
_script
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_icu_
unicode
_script
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
unicode
,
hb_codepoint_t
unicode
,
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
{
UErrorCode
status
=
U_ZERO_ERROR
;
UErrorCode
status
=
U_ZERO_ERROR
;
UScriptCode
scriptCode
=
uscript_getScript
(
unicode
,
&
status
);
UScriptCode
scriptCode
=
uscript_getScript
(
unicode
,
&
status
);
...
@@ -163,6 +163,26 @@ hb_icu_get_script (hb_unicode_funcs_t *ufuncs HB_UNUSED,
...
@@ -163,6 +163,26 @@ hb_icu_get_script (hb_unicode_funcs_t *ufuncs HB_UNUSED,
return
hb_icu_script_to_script
(
scriptCode
);
return
hb_icu_script_to_script
(
scriptCode
);
}
}
static
hb_bool_t
hb_icu_unicode_compose
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
a
,
hb_codepoint_t
b
,
hb_codepoint_t
*
ab
,
void
*
user_data
HB_UNUSED
)
{
return
FALSE
;
}
static
hb_bool_t
hb_icu_unicode_decompose
(
hb_unicode_funcs_t
*
ufuncs
HB_UNUSED
,
hb_codepoint_t
ab
,
hb_codepoint_t
*
a
,
hb_codepoint_t
*
b
,
void
*
user_data
HB_UNUSED
)
{
return
FALSE
;
}
extern
HB_INTERNAL
hb_unicode_funcs_t
_hb_unicode_funcs_icu
;
extern
HB_INTERNAL
hb_unicode_funcs_t
_hb_unicode_funcs_icu
;
hb_unicode_funcs_t
_hb_icu_unicode_funcs
=
{
hb_unicode_funcs_t
_hb_icu_unicode_funcs
=
{
HB_OBJECT_HEADER_STATIC
,
HB_OBJECT_HEADER_STATIC
,
...
@@ -170,15 +190,9 @@ hb_unicode_funcs_t _hb_icu_unicode_funcs = {
...
@@ -170,15 +190,9 @@ hb_unicode_funcs_t _hb_icu_unicode_funcs = {
NULL
,
/* parent */
NULL
,
/* parent */
TRUE
,
/* immutable */
TRUE
,
/* immutable */
{
{
hb_icu_get_combining_class
,
#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_icu_unicode_##name,
hb_icu_get_eastasian_width
,
HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
hb_icu_get_general_category
,
#undef HB_UNICODE_FUNC_IMPLEMENT
hb_icu_get_mirroring
,
hb_icu_get_script
,
/* TODO
hb_icu_compose,
hb_icu_decompose,
*/
}
}
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录