[cmap] Move code around

This commit is contained in:
Behdad Esfahbod 2018-11-22 22:17:49 -05:00
parent 758c9d68e2
commit e4a4555d1e
1 changed files with 10 additions and 8 deletions

View File

@ -863,14 +863,6 @@ struct cmap
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,
subset_plan *cmap_plan) const
{
@ -1171,6 +1163,16 @@ struct cmap
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:
HBUINT16 version; /* Table version number (0). */
SortedArrayOf<EncodingRecord>