]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/ICUFeatures.h
ICU-57166.0.1.tar.gz
[apple/icu.git] / icuSources / layout / ICUFeatures.h
CommitLineData
b75a7d8f 1/*
b75a7d8f 2 *
57a6839d 3 * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
b75a7d8f
A
4 *
5 */
6
729e4ab9
A
7#ifndef __ICUFEATURES_H
8#define __ICUFEATURES_H
b75a7d8f
A
9
10/**
11 * \file
12 * \internal
13 */
14
15#include "LETypes.h"
16#include "OpenTypeTables.h"
17
18U_NAMESPACE_BEGIN
19
20struct FeatureRecord
21{
22 ATag featureTag;
23 Offset featureTableOffset;
24};
25
26struct FeatureTable
27{
28 Offset featureParamsOffset;
29 le_uint16 lookupCount;
30 le_uint16 lookupListIndexArray[ANY_NUMBER];
31};
57a6839d 32LE_VAR_ARRAY(FeatureTable, lookupListIndexArray)
b75a7d8f
A
33
34struct FeatureListTable
35{
36 le_uint16 featureCount;
37 FeatureRecord featureRecordArray[ANY_NUMBER];
38
57a6839d 39 LEReferenceTo<FeatureTable> getFeatureTable(const LETableReference &base, le_uint16 featureIndex, LETag *featureTag, LEErrorCode &success) const;
b75a7d8f 40
57a6839d
A
41#if 0
42 const LEReferenceTo<FeatureTable> getFeatureTable(const LETableReference &base, LETag featureTag, LEErrorCode &success) const;
43#endif
b75a7d8f
A
44};
45
57a6839d
A
46LE_VAR_ARRAY(FeatureListTable, featureRecordArray)
47
b75a7d8f
A
48U_NAMESPACE_END
49#endif