2016-06-15 18:58:17 +00:00
|
|
|
// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2016-05-31 21:45:07 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2014 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LIGATURESUBSTITUTIONPROCESSOR_H
|
|
|
|
#define __LIGATURESUBSTITUTIONPROCESSOR_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "MorphTables.h"
|
|
|
|
#include "SubtableProcessor.h"
|
|
|
|
#include "StateTableProcessor.h"
|
|
|
|
#include "LigatureSubstitution.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2004-04-12 18:51:31 +00:00
|
|
|
class LEGlyphStorage;
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#define nComponents 16
|
|
|
|
|
|
|
|
class LigatureSubstitutionProcessor : public StateTableProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void beginStateTable();
|
|
|
|
|
2004-04-12 18:51:31 +00:00
|
|
|
virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index);
|
2000-11-28 20:56:52 +00:00
|
|
|
|
|
|
|
virtual void endStateTable();
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
LigatureSubstitutionProcessor(const LEReferenceTo<MorphSubtableHeader> &morphSubtableHeader, LEErrorCode &success);
|
2000-11-28 20:56:52 +00:00
|
|
|
virtual ~LigatureSubstitutionProcessor();
|
|
|
|
|
2002-06-29 00:04:16 +00:00
|
|
|
/**
|
|
|
|
* ICU "poor man's RTTI", returns a UClassID for the actual class.
|
|
|
|
*
|
2014-09-05 22:09:11 +00:00
|
|
|
* @deprecated ICU 54. See {@link icu::LayoutEngine}
|
2002-06-29 00:04:16 +00:00
|
|
|
*/
|
2004-10-19 06:25:41 +00:00
|
|
|
virtual UClassID getDynamicClassID() const;
|
2002-06-29 00:04:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* ICU "poor man's RTTI", returns a UClassID for this class.
|
|
|
|
*
|
2014-09-05 22:09:11 +00:00
|
|
|
* @deprecated ICU 54. See {@link icu::LayoutEngine}
|
2002-06-29 00:04:16 +00:00
|
|
|
*/
|
2004-10-19 06:25:41 +00:00
|
|
|
static UClassID getStaticClassID();
|
2002-06-29 00:04:16 +00:00
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
private:
|
|
|
|
LigatureSubstitutionProcessor();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
ByteOffset ligatureActionTableOffset;
|
|
|
|
ByteOffset componentTableOffset;
|
|
|
|
ByteOffset ligatureTableOffset;
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
LEReferenceToArrayOf<LigatureSubstitutionStateEntry> entryTable;
|
2000-11-28 20:56:52 +00:00
|
|
|
|
|
|
|
le_int32 componentStack[nComponents];
|
|
|
|
le_int16 m;
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
LEReferenceTo<LigatureSubstitutionHeader> ligatureSubstitutionHeader;
|
2002-06-29 00:04:16 +00:00
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|