Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/font/layout/DefaultCharMapper.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* (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved27*28*/2930#ifndef __DEFAULTCHARMAPPER_H31#define __DEFAULTCHARMAPPER_H3233/**34* \file35* \internal36*/3738#include "LETypes.h"39#include "LEFontInstance.h"4041U_NAMESPACE_BEGIN4243/**44* This class is an instance of LECharMapper which45* implements control character filtering and bidi46* mirroring.47*48* @see LECharMapper49*/50class DefaultCharMapper : public UMemory, public LECharMapper51{52private:53le_bool fFilterControls;54le_bool fMirror;55le_bool fZWJ;5657static const LEUnicode32 controlChars[];5859static const le_int32 controlCharsCount;6061static const LEUnicode32 controlCharsZWJ[];6263static const le_int32 controlCharsZWJCount;6465static const LEUnicode32 mirroredChars[];66static const LEUnicode32 srahCderorrim[];6768static const le_int32 mirroredCharsCount;6970public:71DefaultCharMapper(le_bool filterControls, le_bool mirror, le_bool zwj = 0)72: fFilterControls(filterControls), fMirror(mirror), fZWJ(zwj)73{74// nothing75};7677~DefaultCharMapper()78{79// nada80};8182LEUnicode32 mapChar(LEUnicode32 ch) const;83};8485U_NAMESPACE_END86#endif878889