3 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
7 #ifndef __LIGATURESUBSTITUTIONPROCESSOR_H
8 #define __LIGATURESUBSTITUTIONPROCESSOR_H
16 #include "MorphTables.h"
17 #include "SubtableProcessor.h"
18 #include "StateTableProcessor.h"
19 #include "LigatureSubstitution.h"
25 #define nComponents 16
27 class LigatureSubstitutionProcessor
: public StateTableProcessor
30 virtual void beginStateTable();
32 virtual ByteOffset
processStateEntry(LEGlyphStorage
&glyphStorage
, le_int32
&currGlyph
, EntryTableIndex index
);
34 virtual void endStateTable();
36 LigatureSubstitutionProcessor(const MorphSubtableHeader
*morphSubtableHeader
);
37 virtual ~LigatureSubstitutionProcessor();
40 * ICU "poor man's RTTI", returns a UClassID for the actual class.
44 virtual UClassID
getDynamicClassID() const;
47 * ICU "poor man's RTTI", returns a UClassID for this class.
51 static UClassID
getStaticClassID();
54 LigatureSubstitutionProcessor();
57 ByteOffset ligatureActionTableOffset
;
58 ByteOffset componentTableOffset
;
59 ByteOffset ligatureTableOffset
;
61 const LigatureSubstitutionStateEntry
*entryTable
;
63 le_int32 componentStack
[nComponents
];
66 const LigatureSubstitutionHeader
*ligatureSubstitutionHeader
;