3 * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
7 #ifndef __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR2_H
8 #define __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR2_H
16 #include "MorphTables.h"
17 #include "SubtableProcessor2.h"
18 #include "StateTableProcessor2.h"
19 #include "ContextualGlyphSubstitution.h"
25 class ContextualGlyphSubstitutionProcessor2
: public StateTableProcessor2
28 virtual void beginStateTable();
30 virtual le_uint16
processStateEntry(LEGlyphStorage
&glyphStorage
, le_int32
&currGlyph
, EntryTableIndex2 index
);
32 virtual void endStateTable();
34 ContextualGlyphSubstitutionProcessor2(const MorphSubtableHeader2
*morphSubtableHeader
);
35 virtual ~ContextualGlyphSubstitutionProcessor2();
38 * ICU "poor man's RTTI", returns a UClassID for the actual class.
42 virtual UClassID
getDynamicClassID() const;
45 * ICU "poor man's RTTI", returns a UClassID for this class.
49 static UClassID
getStaticClassID();
52 ContextualGlyphSubstitutionProcessor2();
53 TTGlyphID
lookup(le_uint32 offset
, LEGlyphID gid
);
56 const le_uint32
* perGlyphTable
;
57 const ContextualGlyphStateEntry2
*entryTable
;
59 le_int16 perGlyphTableFormat
;
62 const ContextualGlyphHeader2
*contextualGlyphHeader
;