1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/ScriptAndLanguage.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,52 @@
1.4 +/*
1.5 + *
1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
1.7 + *
1.8 + */
1.9 +
1.10 +#ifndef __SCRIPTANDLANGUAGE_H
1.11 +#define __SCRIPTANDLANGUAGE_H
1.12 +
1.13 +/**
1.14 + * \file
1.15 + * \internal
1.16 + */
1.17 +
1.18 +#include "LETypes.h"
1.19 +#include "OpenTypeTables.h"
1.20 +
1.21 +U_NAMESPACE_BEGIN
1.22 +
1.23 +typedef TagAndOffsetRecord LangSysRecord;
1.24 +
1.25 +struct LangSysTable
1.26 +{
1.27 + Offset lookupOrderOffset;
1.28 + le_uint16 reqFeatureIndex;
1.29 + le_uint16 featureCount;
1.30 + le_uint16 featureIndexArray[ANY_NUMBER];
1.31 +};
1.32 +
1.33 +struct ScriptTable
1.34 +{
1.35 + Offset defaultLangSysTableOffset;
1.36 + le_uint16 langSysCount;
1.37 + LangSysRecord langSysRecordArray[ANY_NUMBER];
1.38 +
1.39 + const LangSysTable *findLanguage(LETag languageTag, le_bool exactMatch = FALSE) const;
1.40 +};
1.41 +
1.42 +typedef TagAndOffsetRecord ScriptRecord;
1.43 +
1.44 +struct ScriptListTable
1.45 +{
1.46 + le_uint16 scriptCount;
1.47 + ScriptRecord scriptRecordArray[ANY_NUMBER];
1.48 +
1.49 + const ScriptTable *findScript(LETag scriptTag) const;
1.50 + const LangSysTable *findLanguage(LETag scriptTag, LETag languageTag, le_bool exactMatch = FALSE) const;
1.51 +};
1.52 +
1.53 +U_NAMESPACE_END
1.54 +#endif
1.55 +