sl@0
|
1 |
/*
|
sl@0
|
2 |
*
|
sl@0
|
3 |
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
|
sl@0
|
4 |
*
|
sl@0
|
5 |
*/
|
sl@0
|
6 |
|
sl@0
|
7 |
#ifndef __SCRIPTANDLANGUAGE_H
|
sl@0
|
8 |
#define __SCRIPTANDLANGUAGE_H
|
sl@0
|
9 |
|
sl@0
|
10 |
/**
|
sl@0
|
11 |
* \file
|
sl@0
|
12 |
* \internal
|
sl@0
|
13 |
*/
|
sl@0
|
14 |
|
sl@0
|
15 |
#include "LETypes.h"
|
sl@0
|
16 |
#include "OpenTypeTables.h"
|
sl@0
|
17 |
|
sl@0
|
18 |
U_NAMESPACE_BEGIN
|
sl@0
|
19 |
|
sl@0
|
20 |
typedef TagAndOffsetRecord LangSysRecord;
|
sl@0
|
21 |
|
sl@0
|
22 |
struct LangSysTable
|
sl@0
|
23 |
{
|
sl@0
|
24 |
Offset lookupOrderOffset;
|
sl@0
|
25 |
le_uint16 reqFeatureIndex;
|
sl@0
|
26 |
le_uint16 featureCount;
|
sl@0
|
27 |
le_uint16 featureIndexArray[ANY_NUMBER];
|
sl@0
|
28 |
};
|
sl@0
|
29 |
|
sl@0
|
30 |
struct ScriptTable
|
sl@0
|
31 |
{
|
sl@0
|
32 |
Offset defaultLangSysTableOffset;
|
sl@0
|
33 |
le_uint16 langSysCount;
|
sl@0
|
34 |
LangSysRecord langSysRecordArray[ANY_NUMBER];
|
sl@0
|
35 |
|
sl@0
|
36 |
const LangSysTable *findLanguage(LETag languageTag, le_bool exactMatch = FALSE) const;
|
sl@0
|
37 |
};
|
sl@0
|
38 |
|
sl@0
|
39 |
typedef TagAndOffsetRecord ScriptRecord;
|
sl@0
|
40 |
|
sl@0
|
41 |
struct ScriptListTable
|
sl@0
|
42 |
{
|
sl@0
|
43 |
le_uint16 scriptCount;
|
sl@0
|
44 |
ScriptRecord scriptRecordArray[ANY_NUMBER];
|
sl@0
|
45 |
|
sl@0
|
46 |
const ScriptTable *findScript(LETag scriptTag) const;
|
sl@0
|
47 |
const LangSysTable *findLanguage(LETag scriptTag, LETag languageTag, le_bool exactMatch = FALSE) const;
|
sl@0
|
48 |
};
|
sl@0
|
49 |
|
sl@0
|
50 |
U_NAMESPACE_END
|
sl@0
|
51 |
#endif
|
sl@0
|
52 |
|