author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* |
sl@0 | 3 |
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved |
sl@0 | 4 |
* |
sl@0 | 5 |
*/ |
sl@0 | 6 |
|
sl@0 | 7 |
#ifndef __LIGATURESUBSTITUTIONPROCESSOR_H |
sl@0 | 8 |
#define __LIGATURESUBSTITUTIONPROCESSOR_H |
sl@0 | 9 |
|
sl@0 | 10 |
/** |
sl@0 | 11 |
* \file |
sl@0 | 12 |
* \internal |
sl@0 | 13 |
*/ |
sl@0 | 14 |
|
sl@0 | 15 |
#include "LETypes.h" |
sl@0 | 16 |
#include "MorphTables.h" |
sl@0 | 17 |
#include "SubtableProcessor.h" |
sl@0 | 18 |
#include "StateTableProcessor.h" |
sl@0 | 19 |
#include "LigatureSubstitution.h" |
sl@0 | 20 |
|
sl@0 | 21 |
U_NAMESPACE_BEGIN |
sl@0 | 22 |
|
sl@0 | 23 |
class LEGlyphStorage; |
sl@0 | 24 |
|
sl@0 | 25 |
#define nComponents 16 |
sl@0 | 26 |
|
sl@0 | 27 |
class LigatureSubstitutionProcessor : public StateTableProcessor |
sl@0 | 28 |
{ |
sl@0 | 29 |
public: |
sl@0 | 30 |
virtual void beginStateTable(); |
sl@0 | 31 |
|
sl@0 | 32 |
virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index); |
sl@0 | 33 |
|
sl@0 | 34 |
virtual void endStateTable(); |
sl@0 | 35 |
|
sl@0 | 36 |
LigatureSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader); |
sl@0 | 37 |
virtual ~LigatureSubstitutionProcessor(); |
sl@0 | 38 |
|
sl@0 | 39 |
/** |
sl@0 | 40 |
* ICU "poor man's RTTI", returns a UClassID for the actual class. |
sl@0 | 41 |
* |
sl@0 | 42 |
* @stable ICU 2.8 |
sl@0 | 43 |
*/ |
sl@0 | 44 |
virtual UClassID getDynamicClassID() const; |
sl@0 | 45 |
|
sl@0 | 46 |
/** |
sl@0 | 47 |
* ICU "poor man's RTTI", returns a UClassID for this class. |
sl@0 | 48 |
* |
sl@0 | 49 |
* @stable ICU 2.8 |
sl@0 | 50 |
*/ |
sl@0 | 51 |
static UClassID getStaticClassID(); |
sl@0 | 52 |
|
sl@0 | 53 |
private: |
sl@0 | 54 |
LigatureSubstitutionProcessor(); |
sl@0 | 55 |
|
sl@0 | 56 |
protected: |
sl@0 | 57 |
ByteOffset ligatureActionTableOffset; |
sl@0 | 58 |
ByteOffset componentTableOffset; |
sl@0 | 59 |
ByteOffset ligatureTableOffset; |
sl@0 | 60 |
|
sl@0 | 61 |
const LigatureSubstitutionStateEntry *entryTable; |
sl@0 | 62 |
|
sl@0 | 63 |
le_int32 componentStack[nComponents]; |
sl@0 | 64 |
le_int16 m; |
sl@0 | 65 |
|
sl@0 | 66 |
const LigatureSubstitutionHeader *ligatureSubstitutionHeader; |
sl@0 | 67 |
|
sl@0 | 68 |
}; |
sl@0 | 69 |
|
sl@0 | 70 |
U_NAMESPACE_END |
sl@0 | 71 |
#endif |