diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-20 18:13:48 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-20 18:13:48 +0000 |
commit | e5786f530f9555469c01435f86039b06aa53feba (patch) | |
tree | c868e8d32282422d7d445b729db95c3fcdafb6d0 /Build/source/libs/icu/icu-xetex/layout/Lookups.cpp | |
parent | ebaa1768b43c8606d923d2e861b5286b74207b3e (diff) |
new build system: build icu libs and xetex plus misc updates
git-svn-id: svn://tug.org/texlive/trunk@12759 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-xetex/layout/Lookups.cpp')
-rw-r--r-- | Build/source/libs/icu/icu-xetex/layout/Lookups.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-xetex/layout/Lookups.cpp b/Build/source/libs/icu/icu-xetex/layout/Lookups.cpp new file mode 100644 index 00000000000..67f62952e9c --- /dev/null +++ b/Build/source/libs/icu/icu-xetex/layout/Lookups.cpp @@ -0,0 +1,44 @@ +/* + * + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved + * + */ + +#include "LETypes.h" +#include "OpenTypeTables.h" +#include "Lookups.h" +#include "CoverageTables.h" +#include "LESwaps.h" + +U_NAMESPACE_BEGIN + +const LookupTable *LookupListTable::getLookupTable(le_uint16 lookupTableIndex) const +{ + if (lookupTableIndex >= SWAPW(lookupCount)) { + return 0; + } + + Offset lookupTableOffset = lookupTableOffsetArray[lookupTableIndex]; + + return (const LookupTable *) ((char *) this + SWAPW(lookupTableOffset)); +} + +const LookupSubtable *LookupTable::getLookupSubtable(le_uint16 subtableIndex) const +{ + if (subtableIndex >= SWAPW(subTableCount)) { + return 0; + } + + Offset subtableOffset = subTableOffsetArray[subtableIndex]; + + return (const LookupSubtable *) ((char *) this + SWAPW(subtableOffset)); +} + +le_int32 LookupSubtable::getGlyphCoverage(Offset tableOffset, LEGlyphID glyphID) const +{ + const CoverageTable *coverageTable = (const CoverageTable *) ((char *) this + SWAPW(tableOffset)); + + return coverageTable->getGlyphCoverage(glyphID); +} + +U_NAMESPACE_END |