]>
Commit | Line | Data |
---|---|---|
51004dcb A |
1 | /* |
2 | * | |
b331163b | 3 | * (C) Copyright IBM Corp. and others 1998-2014 - All Rights Reserved |
51004dcb A |
4 | * |
5 | */ | |
6 | ||
7 | #ifndef __LIGATURESUBSTITUTIONPROCESSOR2_H | |
8 | #define __LIGATURESUBSTITUTIONPROCESSOR2_H | |
9 | ||
10 | /** | |
11 | * \file | |
12 | * \internal | |
13 | */ | |
14 | ||
15 | #include "LETypes.h" | |
16 | #include "MorphTables.h" | |
17 | #include "SubtableProcessor2.h" | |
18 | #include "StateTableProcessor2.h" | |
19 | #include "LigatureSubstitution.h" | |
20 | ||
21 | U_NAMESPACE_BEGIN | |
22 | ||
23 | class LEGlyphStorage; | |
24 | ||
25 | #define nComponents 16 | |
26 | ||
27 | class LigatureSubstitutionProcessor2 : public StateTableProcessor2 | |
28 | { | |
29 | public: | |
30 | virtual void beginStateTable(); | |
31 | ||
57a6839d A |
32 | virtual le_uint16 processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, |
33 | EntryTableIndex2 index, LEErrorCode &success); | |
51004dcb A |
34 | |
35 | virtual void endStateTable(); | |
36 | ||
57a6839d | 37 | LigatureSubstitutionProcessor2(const LEReferenceTo<MorphSubtableHeader2> &morphSubtableHeader, LEErrorCode &success); |
51004dcb A |
38 | virtual ~LigatureSubstitutionProcessor2(); |
39 | ||
40 | /** | |
41 | * ICU "poor man's RTTI", returns a UClassID for the actual class. | |
42 | * | |
b331163b | 43 | * @deprecated ICU 54. See {@link icu::LayoutEngine} |
51004dcb A |
44 | */ |
45 | virtual UClassID getDynamicClassID() const; | |
46 | ||
47 | /** | |
48 | * ICU "poor man's RTTI", returns a UClassID for this class. | |
49 | * | |
b331163b | 50 | * @deprecated ICU 54. See {@link icu::LayoutEngine} |
51004dcb A |
51 | */ |
52 | static UClassID getStaticClassID(); | |
53 | ||
54 | private: | |
55 | LigatureSubstitutionProcessor2(); | |
56 | ||
57 | protected: | |
58 | le_uint32 ligActionOffset; | |
59 | le_uint32 componentOffset; | |
60 | le_uint32 ligatureOffset; | |
61 | ||
57a6839d | 62 | LEReferenceToArrayOf<LigatureSubstitutionStateEntry2> entryTable; |
51004dcb A |
63 | |
64 | le_int32 componentStack[nComponents]; | |
65 | le_int16 m; | |
66 | ||
57a6839d | 67 | const LEReferenceTo<LigatureSubstitutionHeader2> ligatureSubstitutionHeader; |
51004dcb A |
68 | |
69 | }; | |
70 | ||
71 | U_NAMESPACE_END | |
72 | #endif |