Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/font/layout/ContextualGlyphInsertionProc2.h
38918 views
/*1* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.2*3* This code is free software; you can redistribute it and/or modify it4* under the terms of the GNU General Public License version 2 only, as5* published by the Free Software Foundation. Oracle designates this6* particular file as subject to the "Classpath" exception as provided7* by Oracle in the LICENSE file that accompanied this code.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425/*26*27* (C) Copyright IBM Corp. and others 2013 - All Rights Reserved28*29*/3031#ifndef __CONTEXTUALGLYPHINSERTIONPROCESSOR2_H32#define __CONTEXTUALGLYPHINSERTIONPROCESSOR2_H3334/**35* \file36* \internal37*/3839#include "LETypes.h"40#include "MorphTables.h"41#include "SubtableProcessor2.h"42#include "StateTableProcessor2.h"43#include "ContextualGlyphInsertionProc2.h"44#include "ContextualGlyphInsertion.h"4546U_NAMESPACE_BEGIN4748class LEGlyphStorage;4950class ContextualGlyphInsertionProcessor2 : public StateTableProcessor251{52public:53virtual void beginStateTable();5455virtual le_uint16 processStateEntry(LEGlyphStorage &glyphStorage,56le_int32 &currGlyph, EntryTableIndex2 index, LEErrorCode &success);5758virtual void endStateTable();5960ContextualGlyphInsertionProcessor2(const LEReferenceTo<MorphSubtableHeader2> &morphSubtableHeader, LEErrorCode &success);61virtual ~ContextualGlyphInsertionProcessor2();6263/**64* ICU "poor man's RTTI", returns a UClassID for the actual class.65*66* @stable ICU 2.867*/68virtual UClassID getDynamicClassID() const;6970/**71* ICU "poor man's RTTI", returns a UClassID for this class.72*73* @stable ICU 2.874*/75static UClassID getStaticClassID();7677private:78ContextualGlyphInsertionProcessor2();7980/**81* Perform the actual insertion82* @param atGlyph index of glyph to insert at83* @param index index into the insertionTable (in/out)84* @param count number of insertions85* @param isKashidaLike Kashida like (vs Split Vowel like). No effect currently.86* @param isBefore if true, insert extra glyphs before the marked glyph87*/88void doInsertion(LEGlyphStorage &glyphStorage,89le_int16 atGlyph,90le_int16 &index,91le_int16 count,92le_bool isKashidaLike,93le_bool isBefore,94LEErrorCode &success);959697protected:98le_int32 markGlyph;99LEReferenceToArrayOf<le_uint16> insertionTable;100LEReferenceToArrayOf<ContextualGlyphInsertionStateEntry2> entryTable;101LEReferenceTo<ContextualGlyphInsertionHeader2> contextualGlyphHeader;102};103104U_NAMESPACE_END105#endif106107108