5891N/A/*
5891N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5891N/A *
5891N/A * This code is free software; you can redistribute it and/or modify it
5891N/A * under the terms of the GNU General Public License version 2 only, as
5891N/A * published by the Free Software Foundation. Oracle designates this
5891N/A * particular file as subject to the "Classpath" exception as provided
5891N/A * by Oracle in the LICENSE file that accompanied this code.
5891N/A *
5891N/A * This code is distributed in the hope that it will be useful, but WITHOUT
5891N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5891N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5891N/A * version 2 for more details (a copy is included in the LICENSE file that
5891N/A * accompanied this code).
5891N/A *
5891N/A * You should have received a copy of the GNU General Public License version
5891N/A * 2 along with this work; if not, write to the Free Software Foundation,
5891N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5891N/A *
5891N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5891N/A * or visit www.oracle.com if you need additional information or have any
5891N/A * questions.
5891N/A *
5891N/A */
5891N/A
5891N/A/*
5891N/A *
5891N/A * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
5891N/A *
5891N/A */
5891N/A
5891N/A#ifndef __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR2_H
5891N/A#define __CONTEXTUALGLYPHSUBSTITUTIONPROCESSOR2_H
5891N/A
5891N/A/**
5891N/A * \file
5891N/A * \internal
5891N/A */
5891N/A
5891N/A#include "LETypes.h"
5891N/A#include "MorphTables.h"
5891N/A#include "SubtableProcessor2.h"
5891N/A#include "StateTableProcessor2.h"
5891N/A#include "ContextualGlyphSubstitution.h"
5891N/A
5891N/AU_NAMESPACE_BEGIN
5891N/A
5891N/Aclass LEGlyphStorage;
5891N/A
5891N/Aclass ContextualGlyphSubstitutionProcessor2 : public StateTableProcessor2
5891N/A{
5891N/Apublic:
5891N/A virtual void beginStateTable();
5891N/A
5980N/A virtual le_uint16 processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex2 index, LEErrorCode &success);
5891N/A
5891N/A virtual void endStateTable();
5891N/A
5980N/A ContextualGlyphSubstitutionProcessor2(const LEReferenceTo<MorphSubtableHeader2> &morphSubtableHeader, LEErrorCode &success);
5891N/A virtual ~ContextualGlyphSubstitutionProcessor2();
5891N/A
5891N/A /**
5891N/A * ICU "poor man's RTTI", returns a UClassID for the actual class.
5891N/A *
5891N/A * @stable ICU 2.8
5891N/A */
5891N/A virtual UClassID getDynamicClassID() const;
5891N/A
5891N/A /**
5891N/A * ICU "poor man's RTTI", returns a UClassID for this class.
5891N/A *
5891N/A * @stable ICU 2.8
5891N/A */
5891N/A static UClassID getStaticClassID();
5891N/A
5891N/Aprivate:
5891N/A ContextualGlyphSubstitutionProcessor2();
5980N/A TTGlyphID lookup(le_uint32 offset, LEGlyphID gid, LEErrorCode &success);
5891N/A
5891N/Aprotected:
5980N/A LEReferenceToArrayOf<le_uint32> perGlyphTable;
5980N/A LEReferenceToArrayOf<ContextualGlyphStateEntry2> entryTable;
5891N/A
5891N/A le_int16 perGlyphTableFormat;
5891N/A le_int32 markGlyph;
5891N/A
5980N/A LEReferenceTo<ContextualGlyphHeader2> contextualGlyphHeader;
5891N/A
5891N/A};
5891N/A
5891N/AU_NAMESPACE_END
5891N/A#endif