1 /* |
|
2 * Portions Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. |
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 * |
|
5 * This code is free software; you can redistribute it and/or modify it |
|
6 * under the terms of the GNU General Public License version 2 only, as |
|
7 * published by the Free Software Foundation. Sun designates this |
|
8 * particular file as subject to the "Classpath" exception as provided |
|
9 * by Sun in the LICENSE file that accompanied this code. |
|
10 * |
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
|
15 * accompanied this code). |
|
16 * |
|
17 * You should have received a copy of the GNU General Public License version |
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 * |
|
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 * CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 * have any questions. |
|
24 */ |
|
25 |
|
26 /* |
|
27 ******************************************************************************* |
|
28 * (C) Copyright IBM Corp. 1996-2005 - All Rights Reserved * |
|
29 * * |
|
30 * The original version of this source code and documentation is copyrighted * |
|
31 * and owned by IBM, These materials are provided under terms of a License * |
|
32 * Agreement between IBM and Sun. This technology is protected by multiple * |
|
33 * US and International patents. This notice and attribution to IBM may not * |
|
34 * to removed. * |
|
35 ******************************************************************************* |
|
36 */ |
|
37 |
|
38 package sun.text.normalizer; |
|
39 |
|
40 /** |
|
41 * <p>Selection constants for Unicode properties. </p> |
|
42 * <p>These constants are used in functions like |
|
43 * UCharacter.hasBinaryProperty(int) to select one of the Unicode properties. |
|
44 * </p> |
|
45 * <p>The properties APIs are intended to reflect Unicode properties as |
|
46 * defined in the Unicode Character Database (UCD) and Unicode Technical |
|
47 * Reports (UTR).</p> |
|
48 * <p>For details about the properties see <a href=http://www.unicode.org> |
|
49 * http://www.unicode.org</a>.</p> |
|
50 * <p>For names of Unicode properties see the UCD file PropertyAliases.txt. |
|
51 * </p> |
|
52 * <p>Important: If ICU is built with UCD files from Unicode versions below |
|
53 * 3.2, then properties marked with "new" are not or not fully |
|
54 * available. Check UCharacter.getUnicodeVersion() to be sure.</p> |
|
55 * @author Syn Wee Quek |
|
56 * @stable ICU 2.6 |
|
57 * @see com.ibm.icu.lang.UCharacter |
|
58 */ |
|
59 public interface UProperty |
|
60 { |
|
61 // public data member -------------------------------------------------- |
|
62 |
|
63 /** |
|
64 * Enumerated property Hangul_Syllable_Type, new in Unicode 4. |
|
65 * Returns HangulSyllableType values. |
|
66 * @stable ICU 2.6 |
|
67 */ |
|
68 public static final int HANGUL_SYLLABLE_TYPE = 0x100B; |
|
69 |
|
70 /** |
|
71 * Bitmask property General_Category_Mask. |
|
72 * This is the General_Category property returned as a bit mask. |
|
73 * When used in UCharacter.getIntPropertyValue(c), |
|
74 * returns bit masks for UCharacterCategory values where exactly one bit is set. |
|
75 * When used with UCharacter.getPropertyValueName() and UCharacter.getPropertyValueEnum(), |
|
76 * a multi-bit mask is used for sets of categories like "Letters". |
|
77 * @stable ICU 2.4 |
|
78 */ |
|
79 public static final int GENERAL_CATEGORY_MASK = 0x2000; |
|
80 } |
|