diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2006-07-25 12:37:43 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2006-07-25 12:37:43 +0000 |
commit | 10c60368cd42904bd991453f02b684ebe02ef915 (patch) | |
tree | c6fb06ccf22a81c80af08f79df1b436120703de4 /Build/source/libs/icu-xetex/layout/LigatureSubstProc.h | |
parent | 4d8b2aac6036acbb6878236c27e2fb110dad8643 (diff) |
adding ICU library sources used by xetex
git-svn-id: svn://tug.org/texlive/trunk@1915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu-xetex/layout/LigatureSubstProc.h')
-rw-r--r-- | Build/source/libs/icu-xetex/layout/LigatureSubstProc.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Build/source/libs/icu-xetex/layout/LigatureSubstProc.h b/Build/source/libs/icu-xetex/layout/LigatureSubstProc.h new file mode 100644 index 00000000000..ef5b1edb5fc --- /dev/null +++ b/Build/source/libs/icu-xetex/layout/LigatureSubstProc.h @@ -0,0 +1,71 @@ +/* + * + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved + * + */ + +#ifndef __LIGATURESUBSTITUTIONPROCESSOR_H +#define __LIGATURESUBSTITUTIONPROCESSOR_H + +/** + * \file + * \internal + */ + +#include "LETypes.h" +#include "MorphTables.h" +#include "SubtableProcessor.h" +#include "StateTableProcessor.h" +#include "LigatureSubstitution.h" + +U_NAMESPACE_BEGIN + +class LEGlyphStorage; + +#define nComponents 16 + +class LigatureSubstitutionProcessor : public StateTableProcessor +{ +public: + virtual void beginStateTable(); + + virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index); + + virtual void endStateTable(); + + LigatureSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader); + virtual ~LigatureSubstitutionProcessor(); + + /** + * ICU "poor man's RTTI", returns a UClassID for the actual class. + * + * @stable ICU 2.8 + */ + virtual UClassID getDynamicClassID() const; + + /** + * ICU "poor man's RTTI", returns a UClassID for this class. + * + * @stable ICU 2.8 + */ + static UClassID getStaticClassID(); + +private: + LigatureSubstitutionProcessor(); + +protected: + ByteOffset ligatureActionTableOffset; + ByteOffset componentTableOffset; + ByteOffset ligatureTableOffset; + + const LigatureSubstitutionStateEntry *entryTable; + + le_int32 componentStack[nComponents]; + le_int16 m; + + const LigatureSubstitutionHeader *ligatureSubstitutionHeader; + +}; + +U_NAMESPACE_END +#endif |