]> git.saurik.com Git - apple/icu.git/blob - icuSources/layout/ContextualGlyphSubstProc.h
ICU-59180.0.1.tar.gz
[apple/icu.git] / icuSources / layout / ContextualGlyphSubstProc.h
1 /*
2 *
3 * (C) Copyright IBM Corp. 1998-2014 - All Rights Reserved
4 *
5 */
6
7 #ifndef __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR_H
8 #define __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR_H
9
10 /**
11 * \file
12 * \internal
13 */
14
15 #include "LETypes.h"
16 #include "MorphTables.h"
17 #include "SubtableProcessor.h"
18 #include "StateTableProcessor.h"
19 #include "ContextualGlyphSubstitution.h"
20
21 U_NAMESPACE_BEGIN
22
23 class LEGlyphStorage;
24
25 class ContextualGlyphSubstitutionProcessor : public StateTableProcessor
26 {
27 public:
28 virtual void beginStateTable();
29
30 virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index);
31
32 virtual void endStateTable();
33
34 ContextualGlyphSubstitutionProcessor(const LEReferenceTo<MorphSubtableHeader> &morphSubtableHeader, LEErrorCode &success);
35 virtual ~ContextualGlyphSubstitutionProcessor();
36
37 /**
38 * ICU "poor man's RTTI", returns a UClassID for the actual class.
39 *
40 * @deprecated ICU 54. See {@link icu::LayoutEngine}
41 */
42 virtual UClassID getDynamicClassID() const;
43
44 /**
45 * ICU "poor man's RTTI", returns a UClassID for this class.
46 *
47 * @deprecated ICU 54. See {@link icu::LayoutEngine}
48 */
49 static UClassID getStaticClassID();
50
51 private:
52 ContextualGlyphSubstitutionProcessor();
53
54 protected:
55 ByteOffset substitutionTableOffset;
56 LEReferenceToArrayOf<ContextualGlyphSubstitutionStateEntry> entryTable;
57 LEReferenceToArrayOf<le_int16> int16Table;
58 le_int32 markGlyph;
59
60 LEReferenceTo<ContextualGlyphSubstitutionHeader> contextualGlyphSubstitutionHeader;
61
62 };
63
64 U_NAMESPACE_END
65 #endif