/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* ******************************************************************************* * (C) Copyright IBM Corp. 1996-2005 - All Rights Reserved * * * * The original version of this source code and documentation is copyrighted * * and owned by IBM, These materials are provided under terms of a License * * Agreement between IBM and Sun. This technology is protected by multiple * * US and International patents. This notice and attribution to IBM may not * * to removed. * ******************************************************************************* */ package sun.text.normalizer; /** * <p>Selection constants for Unicode properties. </p> * <p>These constants are used in functions like * UCharacter.hasBinaryProperty(int) to select one of the Unicode properties. * </p> * <p>The properties APIs are intended to reflect Unicode properties as * defined in the Unicode Character Database (UCD) and Unicode Technical * Reports (UTR).</p> * <p>For details about the properties see <a href=http://www.unicode.org> * http://www.unicode.org</a>.</p> * <p>For names of Unicode properties see the UCD file PropertyAliases.txt. * </p> * <p>Important: If ICU is built with UCD files from Unicode versions below * 3.2, then properties marked with "new" are not or not fully * available. Check UCharacter.getUnicodeVersion() to be sure.</p> * @author Syn Wee Quek * @stable ICU 2.6 * @see com.ibm.icu.lang.UCharacter */ public interface UProperty { // public data member -------------------------------------------------- /** * Enumerated property Hangul_Syllable_Type, new in Unicode 4. * Returns HangulSyllableType values. * @stable ICU 2.6 */ public static final int HANGUL_SYLLABLE_TYPE = 0x100B; /** * Bitmask property General_Category_Mask. * This is the General_Category property returned as a bit mask. * When used in UCharacter.getIntPropertyValue(c), * returns bit masks for UCharacterCategory values where exactly one bit is set. * When used with UCharacter.getPropertyValueName() and UCharacter.getPropertyValueEnum(), * a multi-bit mask is used for sets of categories like "Letters". * @stable ICU 2.4 */ public static final int GENERAL_CATEGORY_MASK = 0x2000; }