OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2013 Google, Inc. | 2 * Copyright © 2013 Google, Inc. |
3 * | 3 * |
4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
5 * | 5 * |
6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
10 * all copies of this software. | 10 * all copies of this software. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 211 |
212 inline bool sanitize (hb_sanitize_context_t *c) const | 212 inline bool sanitize (hb_sanitize_context_t *c) const |
213 { | 213 { |
214 TRACE_SANITIZE (this); | 214 TRACE_SANITIZE (this); |
215 return_trace (version.sanitize (c) && | 215 return_trace (version.sanitize (c) && |
216 likely (version.major == 1) && | 216 likely (version.major == 1) && |
217 scriptList.sanitize (c, this)); | 217 scriptList.sanitize (c, this)); |
218 } | 218 } |
219 | 219 |
220 protected: | 220 protected: |
221 FixedVersion» version;» /* Version of the JSTF table--initially set | 221 FixedVersion<>version;» /* Version of the JSTF table--initially set |
222 * to 0x00010000u */ | 222 * to 0x00010000u */ |
223 RecordArrayOf<JstfScript> | 223 RecordArrayOf<JstfScript> |
224 scriptList; /* Array of JstfScripts--listed | 224 scriptList; /* Array of JstfScripts--listed |
225 * alphabetically by ScriptTag */ | 225 * alphabetically by ScriptTag */ |
226 public: | 226 public: |
227 DEFINE_SIZE_ARRAY (6, scriptList); | 227 DEFINE_SIZE_ARRAY (6, scriptList); |
228 }; | 228 }; |
229 | 229 |
230 | 230 |
231 } /* namespace OT */ | 231 } /* namespace OT */ |
232 | 232 |
233 | 233 |
234 #endif /* HB_OT_LAYOUT_JSTF_TABLE_HH */ | 234 #endif /* HB_OT_LAYOUT_JSTF_TABLE_HH */ |
OLD | NEW |