]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/GlyphSubstitutionTables.cpp
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / layout / GlyphSubstitutionTables.cpp
CommitLineData
b75a7d8f 1/*
b75a7d8f 2 *
729e4ab9 3 * (C) Copyright IBM Corp. 1998-2008 - All Rights Reserved
b75a7d8f
A
4 *
5 */
6
7#include "LETypes.h"
8#include "LEGlyphFilter.h"
9#include "OpenTypeTables.h"
10#include "Lookups.h"
11#include "GlyphDefinitionTables.h"
b75a7d8f
A
12#include "GlyphSubstitutionTables.h"
13#include "GlyphSubstLookupProc.h"
14#include "ScriptAndLanguage.h"
374ca955 15#include "LEGlyphStorage.h"
b75a7d8f
A
16#include "LESwaps.h"
17
18U_NAMESPACE_BEGIN
19
729e4ab9
A
20le_int32 GlyphSubstitutionTableHeader::process(LEGlyphStorage &glyphStorage,
21 le_bool rightToLeft,
22 LETag scriptTag,
23 LETag languageTag,
24 const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
25 const LEGlyphFilter *filter,
26 const FeatureMap *featureMap,
27 le_int32 featureMapCount,
28 le_bool featureOrder,
29 LEErrorCode &success) const
b75a7d8f 30{
729e4ab9
A
31 if (LE_FAILURE(success)) {
32 return 0;
33 }
b75a7d8f 34
729e4ab9
A
35 GlyphSubstitutionLookupProcessor processor(this, scriptTag, languageTag, filter, featureMap, featureMapCount, featureOrder, success);
36 return processor.process(glyphStorage, NULL, rightToLeft, glyphDefinitionTableHeader, NULL, success);
b75a7d8f
A
37}
38
39U_NAMESPACE_END