From 499b4bef2a5b6d49374ab4977509d1fbf7bd6038 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sat, 25 Feb 2017 16:48:22 +0100 Subject: [PATCH] BASE: more consistent naming (with spec and Harfbuzz code base) --- src/hb-ot-layout-base-table.hh | 44 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/hb-ot-layout-base-table.hh b/src/hb-ot-layout-base-table.hh index 059c8f718..f811c4ab2 100644 --- a/src/hb-ot-layout-base-table.hh +++ b/src/hb-ot-layout-base-table.hh @@ -144,7 +144,7 @@ struct FeatMinMaxRecord { }; -struct MinMaxTable { +struct MinMax { inline bool sanitize (hb_sanitize_context_t *c) const { @@ -152,17 +152,17 @@ struct MinMaxTable { return_trace (c->check_struct (this) && minCoord.sanitize (c, this) && maxCoord.sanitize (c, this) && - featMinMaxRecordTable.sanitize (c, this)); + featMinMaxRecords.sanitize (c, this)); } protected: OffsetTo minCoord; OffsetTo maxCoord; USHORT featMinMaxCount; - ArrayOf featMinMaxRecordTable; + ArrayOf featMinMaxRecords; public: - DEFINE_SIZE_ARRAY (8, featMinMaxRecordTable); + DEFINE_SIZE_ARRAY (8, featMinMaxRecords); }; @@ -177,33 +177,33 @@ struct BaseLangSysRecord { protected: Tag baseLangSysTag; - OffsetTo minMax; + OffsetTo minMax; public: DEFINE_SIZE_STATIC (6); }; -struct BaseValuesTable { +struct BaseValues { inline bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); return_trace (c->check_struct (this) && - baseCoordTable.sanitize (c, this)); + baseCoords.sanitize (c, this)); } protected: USHORT defaultIndex; USHORT baseCoordCount; - OffsetArrayOf baseCoordTable; + OffsetArrayOf baseCoords; public: - DEFINE_SIZE_ARRAY (6, baseCoordTable); + DEFINE_SIZE_ARRAY (6, baseCoords); }; -struct BaseScriptTable { +struct BaseScript { inline bool sanitize (hb_sanitize_context_t *c) const { @@ -211,17 +211,17 @@ struct BaseScriptTable { return_trace (c->check_struct (this) && baseValues.sanitize (c, this) && defaultMinMax.sanitize (c, this) && - baseLangSysRecordTable.sanitize (c, this)); + baseLangSysRecords.sanitize (c, this)); } protected: - OffsetTo baseValues; - OffsetTo defaultMinMax; + OffsetTo baseValues; + OffsetTo defaultMinMax; USHORT baseLangSysCount; - ArrayOf baseLangSysRecordTable; + ArrayOf baseLangSysRecords; public: - DEFINE_SIZE_ARRAY (8, baseLangSysRecordTable); + DEFINE_SIZE_ARRAY (8, baseLangSysRecords); }; @@ -236,7 +236,7 @@ struct BaseScriptRecord { protected: Tag baseScriptTag; - OffsetTo baseScript; + OffsetTo baseScript; public: DEFINE_SIZE_STATIC (6); @@ -248,15 +248,15 @@ struct BaseScriptList { { TRACE_SANITIZE (this); return_trace (c->check_struct (this) && - baseScriptRecordTable.sanitize (c, this)); + baseScriptRecords.sanitize (c, this)); } protected: USHORT baseScriptCount; - ArrayOf baseScriptRecordTable; + ArrayOf baseScriptRecords; public: - DEFINE_SIZE_ARRAY (4, baseScriptRecordTable); + DEFINE_SIZE_ARRAY (4, baseScriptRecords); }; @@ -283,15 +283,15 @@ struct BaseTagList { TRACE_SANITIZE (this); return_trace (c->check_struct (this) && - baseTagListTable.sanitize (c, this)); + baselineTags.sanitize (c, this)); } protected: USHORT baseTagCount; - ArrayOf baseTagListTable; + ArrayOf baselineTags; public: - DEFINE_SIZE_ARRAY (4, baseTagListTable); + DEFINE_SIZE_ARRAY (4, baselineTags); }; struct Axis