]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/GlyphSubstitutionTables.cpp
ICU-57166.0.1.tar.gz
[apple/icu.git] / icuSources / layout / GlyphSubstitutionTables.cpp
CommitLineData
b75a7d8f 1/*
b75a7d8f 2 *
57a6839d 3 * (C) Copyright IBM Corp. 1998-2013 - 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
57a6839d
A
20le_int32 GlyphSubstitutionTableHeader::process(const LEReferenceTo<GlyphSubstitutionTableHeader> &base,
21 LEGlyphStorage &glyphStorage,
729e4ab9
A
22 le_bool rightToLeft,
23 LETag scriptTag,
24 LETag languageTag,
57a6839d 25 const LEReferenceTo<GlyphDefinitionTableHeader> &glyphDefinitionTableHeader,
729e4ab9
A
26 const LEGlyphFilter *filter,
27 const FeatureMap *featureMap,
28 le_int32 featureMapCount,
29 le_bool featureOrder,
30 LEErrorCode &success) const
b75a7d8f 31{
729e4ab9
A
32 if (LE_FAILURE(success)) {
33 return 0;
34 }
b75a7d8f 35
57a6839d 36 GlyphSubstitutionLookupProcessor processor(base, scriptTag, languageTag, filter, featureMap, featureMapCount, featureOrder, success);
729e4ab9 37 return processor.process(glyphStorage, NULL, rightToLeft, glyphDefinitionTableHeader, NULL, success);
b75a7d8f
A
38}
39
40U_NAMESPACE_END