提交 e4a4555d 编写于 作者: B Behdad Esfahbod

[cmap] Move code around

上级 758c9d68
...@@ -863,14 +863,6 @@ struct cmap ...@@ -863,14 +863,6 @@ struct cmap
hb_vector_t<CmapSubtableLongGroup> format12_groups; hb_vector_t<CmapSubtableLongGroup> format12_groups;
}; };
inline bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (c->check_struct (this) &&
likely (version == 0) &&
encodingRecord.sanitize (c, this));
}
inline bool _create_plan (const hb_subset_plan_t *plan, inline bool _create_plan (const hb_subset_plan_t *plan,
subset_plan *cmap_plan) const subset_plan *cmap_plan) const
{ {
...@@ -1171,6 +1163,16 @@ struct cmap ...@@ -1171,6 +1163,16 @@ struct cmap
return &(this+encodingRecord[result].subtable); return &(this+encodingRecord[result].subtable);
} }
public:
inline bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (c->check_struct (this) &&
likely (version == 0) &&
encodingRecord.sanitize (c, this));
}
protected: protected:
HBUINT16 version; /* Table version number (0). */ HBUINT16 version; /* Table version number (0). */
SortedArrayOf<EncodingRecord> SortedArrayOf<EncodingRecord>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册