blob: 804dae9665e8ea29521024db0263e753ad14c4d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
*
* (C) Copyright IBM Corp. 1998-2004 - 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
{
Offset defaultLangSysTableOffset;
le_uint16 langSysCount;
LangSysRecord langSysRecordArray[ANY_NUMBER];
const LangSysTable *findLanguage(LETag languageTag, le_bool exactMatch = FALSE) const;
};
typedef TagAndOffsetRecord ScriptRecord;
struct ScriptListTable
{
le_uint16 scriptCount;
ScriptRecord scriptRecordArray[ANY_NUMBER];
const ScriptTable *findScript(LETag scriptTag) const;
const LangSysTable *findLanguage(LETag scriptTag, LETag languageTag, le_bool exactMatch = FALSE) const;
};
U_NAMESPACE_END
#endif
|