2016-06-15 18:58:17 +00:00
|
|
|
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2010-01-07 22:57:20 +00:00
|
|
|
/*
|
|
|
|
*
|
2016-05-31 21:45:07 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved
|
2010-01-07 22:57:20 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ICUFEATURES_H
|
|
|
|
#define __ICUFEATURES_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "LETypes.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
struct FeatureRecord
|
|
|
|
{
|
|
|
|
ATag featureTag;
|
|
|
|
Offset featureTableOffset;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FeatureTable
|
|
|
|
{
|
|
|
|
Offset featureParamsOffset;
|
|
|
|
le_uint16 lookupCount;
|
|
|
|
le_uint16 lookupListIndexArray[ANY_NUMBER];
|
|
|
|
};
|
2013-04-18 21:24:51 +00:00
|
|
|
LE_VAR_ARRAY(FeatureTable, lookupListIndexArray)
|
2010-01-07 22:57:20 +00:00
|
|
|
|
|
|
|
struct FeatureListTable
|
|
|
|
{
|
|
|
|
le_uint16 featureCount;
|
|
|
|
FeatureRecord featureRecordArray[ANY_NUMBER];
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
LEReferenceTo<FeatureTable> getFeatureTable(const LETableReference &base, le_uint16 featureIndex, LETag *featureTag, LEErrorCode &success) const;
|
2010-01-07 22:57:20 +00:00
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
#if 0
|
|
|
|
const LEReferenceTo<FeatureTable> getFeatureTable(const LETableReference &base, LETag featureTag, LEErrorCode &success) const;
|
|
|
|
#endif
|
2010-01-07 22:57:20 +00:00
|
|
|
};
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
LE_VAR_ARRAY(FeatureListTable, featureRecordArray)
|
|
|
|
|
2010-01-07 22:57:20 +00:00
|
|
|
U_NAMESPACE_END
|
|
|
|
#endif
|