]> git.saurik.com Git - apple/icu.git/blob - icuSources/layout/ContextualGlyphSubstProc.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / layout / ContextualGlyphSubstProc.h
1 /*
2 * @(#)ContextualGlyphSubstProc.h 1.6 00/03/15
3 *
4 * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
5 *
6 */
7
8 #ifndef __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR_H
9 #define __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR_H
10
11 /**
12 * \file
13 * \internal
14 */
15
16 #include "LETypes.h"
17 #include "MorphTables.h"
18 #include "SubtableProcessor.h"
19 #include "StateTableProcessor.h"
20 #include "ContextualGlyphSubstitution.h"
21
22 U_NAMESPACE_BEGIN
23
24 class ContextualGlyphSubstitutionProcessor : public StateTableProcessor
25 {
26 public:
27 virtual void beginStateTable();
28
29 virtual ByteOffset processStateEntry(LEGlyphID *glyphs, le_int32 *charIndices, le_int32 &currGlyph,
30 le_int32 glyphCount, EntryTableIndex index);
31
32 virtual void endStateTable();
33
34 ContextualGlyphSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader);
35 virtual ~ContextualGlyphSubstitutionProcessor();
36
37 /**
38 * ICU "poor man's RTTI", returns a UClassID for the actual class.
39 *
40 * @draft ICU 2.2
41 */
42 virtual inline UClassID getDynamicClassID() const { return getStaticClassID(); }
43
44 /**
45 * ICU "poor man's RTTI", returns a UClassID for this class.
46 *
47 * @draft ICU 2.2
48 */
49 static inline UClassID getStaticClassID() { return (UClassID)&fgClassID; }
50
51 private:
52 ContextualGlyphSubstitutionProcessor();
53
54 protected:
55 ByteOffset substitutionTableOffset;
56 const ContextualGlyphSubstitutionStateEntry *entryTable;
57
58 le_int32 markGlyph;
59
60 const ContextualGlyphSubstitutionHeader *contextualGlyphSubstitutionHeader;
61
62 private:
63
64 /**
65 * The address of this static class variable serves as this class's ID
66 * for ICU "poor man's RTTI".
67 */
68 static const char fgClassID;
69 };
70
71 U_NAMESPACE_END
72 #endif