scuffed-code/icu4c/source/layout/ScriptAndLanguage.h

54 lines
1.1 KiB
C
Raw Normal View History

/*
* @(#)ScriptAndLanguage.h 1.5 00/03/15
*
* (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved
*
*/
#ifndef __SCRIPTANDLANGUAGE_H
#define __SCRIPTANDLANGUAGE_H
/**
* \file
* \internal
*/
#include "LETypes.h"
#include "OpenTypeTables.h"
U_NAMESPACE_BEGIN
typedef TagAndOffsetRecord LangSysRecord;
struct LangSysTable
{
Offset lookupOrderOffset;
le_uint16 reqFeatureIndex;
le_uint16 featureCount;
le_uint16 featureIndexArray[ANY_NUMBER];
};
struct ScriptTable
{
2002-04-02 03:33:42 +00:00
Offset defaultLangSysTableOffset;
le_uint16 langSysCount;
LangSysRecord langSysRecordArray[ANY_NUMBER];
const LangSysTable *findLanguage(LETag languageTag, le_bool exactMatch = false) const;
};
typedef TagAndOffsetRecord ScriptRecord;
struct ScriptListTable
{
2002-04-02 03:33:42 +00:00
le_uint16 scriptCount;
ScriptRecord scriptRecordArray[ANY_NUMBER];
2002-04-02 03:33:42 +00:00
const ScriptTable *findScript(LETag scriptTag) const;
const LangSysTable *findLanguage(LETag scriptTag, LETag languageTag, le_bool exactMatch = false) const;
};
U_NAMESPACE_END
#endif