]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/ContextualGlyphSubstProc2.h
ICU-59180.0.1.tar.gz
[apple/icu.git] / icuSources / layout / ContextualGlyphSubstProc2.h
CommitLineData
51004dcb
A
1/*
2 *
b331163b 3 * (C) Copyright IBM Corp. and others 1998-2014 - All Rights Reserved
51004dcb
A
4 *
5 */
6
7#ifndef __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR2_H
8#define __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR2_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 "ContextualGlyphSubstitution.h"
20
21U_NAMESPACE_BEGIN
22
23class LEGlyphStorage;
24
25class ContextualGlyphSubstitutionProcessor2 : public StateTableProcessor2
26{
27public:
28 virtual void beginStateTable();
29
57a6839d 30 virtual le_uint16 processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex2 index, LEErrorCode &success);
51004dcb
A
31
32 virtual void endStateTable();
33
57a6839d 34 ContextualGlyphSubstitutionProcessor2(const LEReferenceTo<MorphSubtableHeader2> &morphSubtableHeader, LEErrorCode &success);
51004dcb
A
35 virtual ~ContextualGlyphSubstitutionProcessor2();
36
37 /**
38 * ICU "poor man's RTTI", returns a UClassID for the actual class.
39 *
b331163b 40 * @deprecated ICU 54. See {@link icu::LayoutEngine}
51004dcb
A
41 */
42 virtual UClassID getDynamicClassID() const;
43
44 /**
45 * ICU "poor man's RTTI", returns a UClassID for this class.
46 *
b331163b 47 * @deprecated ICU 54. See {@link icu::LayoutEngine}
51004dcb
A
48 */
49 static UClassID getStaticClassID();
50
51private:
52 ContextualGlyphSubstitutionProcessor2();
57a6839d 53 TTGlyphID lookup(le_uint32 offset, LEGlyphID gid, LEErrorCode &success);
51004dcb
A
54
55protected:
57a6839d
A
56 LEReferenceToArrayOf<le_uint32> perGlyphTable;
57 LEReferenceToArrayOf<ContextualGlyphStateEntry2> entryTable;
51004dcb
A
58
59 le_int16 perGlyphTableFormat;
60 le_int32 markGlyph;
61
57a6839d 62 LEReferenceTo<ContextualGlyphHeader2> contextualGlyphHeader;
51004dcb
A
63
64};
65
66U_NAMESPACE_END
67#endif