0N/A/*
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A/*
0N/A/**
0N/A *******************************************************************************
0N/A * Copyright (C) 2004, International Business Machines Corporation and *
0N/A * others. All Rights Reserved. *
0N/A *******************************************************************************
0N/A */
0N/A// CHANGELOG
0N/A// 2005-05-19 Edward Wang
0N/A// - copy this file from icu4jsrc_3_2/src/com/ibm/icu/lang/UCharacterEnums.java
0N/A// - move from package com.ibm.icu.lang to package sun.net.idn
0N/A//
0N/A
0N/Apackage sun.net.idn;
0N/A
0N/A/**
0N/A * A container for the different 'enumerated types' used by UCharacter.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/Aclass UCharacterEnums {
0N/A
0N/A /** This is just a namespace, it is not instantiatable. */
0N/A private UCharacterEnums() {};
0N/A
0N/A /**
0N/A * 'Enum' for the CharacterCategory constants. These constants are
0N/A * compatible in name <b>but not in value</b> with those defined in
0N/A * <code>java.lang.Character</code>.
0N/A * @see UCharacterCategory
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static interface ECharacterCategory {
0N/A /**
0N/A * Unassigned character type
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int UNASSIGNED = 0;
0N/A
0N/A /**
0N/A * Character type Cn
0N/A * Not Assigned (no characters in [UnicodeData.txt] have this property)
0N/A * @stable ICU 2.6
0N/A */
0N/A public static final int GENERAL_OTHER_TYPES = 0;
0N/A
0N/A /**
0N/A * Character type Lu
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int UPPERCASE_LETTER = 1;
0N/A
0N/A /**
0N/A * Character type Ll
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int LOWERCASE_LETTER = 2;
0N/A
0N/A /**
0N/A * Character type Lt
0N/A * @stable ICU 2.1
0N/A */
0N/A
0N/A public static final int TITLECASE_LETTER = 3;
0N/A
0N/A /**
0N/A * Character type Lm
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int MODIFIER_LETTER = 4;
0N/A
0N/A /**
0N/A * Character type Lo
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int OTHER_LETTER = 5;
0N/A
0N/A /**
0N/A * Character type Mn
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int NON_SPACING_MARK = 6;
0N/A
0N/A /**
0N/A * Character type Me
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int ENCLOSING_MARK = 7;
0N/A
0N/A /**
0N/A * Character type Mc
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int COMBINING_SPACING_MARK = 8;
0N/A
0N/A /**
0N/A * Character type Nd
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int DECIMAL_DIGIT_NUMBER = 9;
0N/A
0N/A /**
0N/A * Character type Nl
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int LETTER_NUMBER = 10;
0N/A
0N/A /**
0N/A * Character type No
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int OTHER_NUMBER = 11;
0N/A
0N/A /**
0N/A * Character type Zs
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int SPACE_SEPARATOR = 12;
0N/A
0N/A /**
0N/A * Character type Zl
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int LINE_SEPARATOR = 13;
0N/A
0N/A /**
0N/A * Character type Zp
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int PARAGRAPH_SEPARATOR = 14;
0N/A
0N/A /**
0N/A * Character type Cc
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int CONTROL = 15;
0N/A
0N/A /**
0N/A * Character type Cf
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int FORMAT = 16;
0N/A
0N/A /**
0N/A * Character type Co
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int PRIVATE_USE = 17;
0N/A
0N/A /**
0N/A * Character type Cs
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int SURROGATE = 18;
0N/A
0N/A /**
0N/A * Character type Pd
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int DASH_PUNCTUATION = 19;
0N/A
0N/A /**
0N/A * Character type Ps
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int START_PUNCTUATION = 20;
0N/A
0N/A /**
0N/A * Character type Pe
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int END_PUNCTUATION = 21;
0N/A
0N/A /**
0N/A * Character type Pc
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int CONNECTOR_PUNCTUATION = 22;
0N/A
0N/A /**
0N/A * Character type Po
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int OTHER_PUNCTUATION = 23;
0N/A
0N/A /**
0N/A * Character type Sm
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int MATH_SYMBOL = 24;
0N/A
0N/A /**
0N/A * Character type Sc
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int CURRENCY_SYMBOL = 25;
0N/A
0N/A /**
0N/A * Character type Sk
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int MODIFIER_SYMBOL = 26;
0N/A
0N/A /**
0N/A * Character type So
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int OTHER_SYMBOL = 27;
0N/A
0N/A /**
0N/A * Character type Pi
0N/A * @see #INITIAL_QUOTE_PUNCTUATION
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int INITIAL_PUNCTUATION = 28;
0N/A
0N/A /**
0N/A * Character type Pi
0N/A * This name is compatible with java.lang.Character's name for this type.
0N/A * @see #INITIAL_PUNCTUATION
0N/A * @draft ICU 2.8
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final int INITIAL_QUOTE_PUNCTUATION = 28;
0N/A
0N/A /**
0N/A * Character type Pf
0N/A * @see #FINAL_QUOTE_PUNCTUATION
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int FINAL_PUNCTUATION = 29;
0N/A
0N/A /**
0N/A * Character type Pf
0N/A * This name is compatible with java.lang.Character's name for this type.
0N/A * @see #FINAL_PUNCTUATION
0N/A * @draft ICU 2.8
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final int FINAL_QUOTE_PUNCTUATION = 29;
0N/A
0N/A /**
0N/A * Character type count
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int CHAR_CATEGORY_COUNT = 30;
0N/A }
0N/A
0N/A /**
0N/A * 'Enum' for the CharacterDirection constants. There are two sets
0N/A * of names, those used in ICU, and those used in the JDK. The
0N/A * JDK constants are compatible in name <b>but not in value</b>
0N/A * with those defined in <code>java.lang.Character</code>.
0N/A * @see UCharacterDirection
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static interface ECharacterDirection {
0N/A /**
0N/A * Directional type L
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int LEFT_TO_RIGHT = 0;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for LEFT_TO_RIGHT.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_LEFT_TO_RIGHT = (byte)LEFT_TO_RIGHT;
0N/A
0N/A /**
0N/A * Directional type R
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int RIGHT_TO_LEFT = 1;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for RIGHT_TO_LEFT.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_RIGHT_TO_LEFT = (byte)RIGHT_TO_LEFT;
0N/A
0N/A /**
0N/A * Directional type EN
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int EUROPEAN_NUMBER = 2;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for EUROPEAN_NUMBER.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_EUROPEAN_NUMBER = (byte)EUROPEAN_NUMBER;
0N/A
0N/A /**
0N/A * Directional type ES
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int EUROPEAN_NUMBER_SEPARATOR = 3;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for EUROPEAN_NUMBER_SEPARATOR.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = (byte)EUROPEAN_NUMBER_SEPARATOR;
0N/A
0N/A /**
0N/A * Directional type ET
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int EUROPEAN_NUMBER_TERMINATOR = 4;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for EUROPEAN_NUMBER_TERMINATOR.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = (byte)EUROPEAN_NUMBER_TERMINATOR;
0N/A
0N/A /**
0N/A * Directional type AN
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int ARABIC_NUMBER = 5;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for ARABIC_NUMBER.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_ARABIC_NUMBER = (byte)ARABIC_NUMBER;
0N/A
0N/A /**
0N/A * Directional type CS
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int COMMON_NUMBER_SEPARATOR = 6;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for COMMON_NUMBER_SEPARATOR.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = (byte)COMMON_NUMBER_SEPARATOR;
0N/A
0N/A /**
0N/A * Directional type B
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int BLOCK_SEPARATOR = 7;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for BLOCK_SEPARATOR.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR = (byte)BLOCK_SEPARATOR;
0N/A
0N/A /**
0N/A * Directional type S
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int SEGMENT_SEPARATOR = 8;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for SEGMENT_SEPARATOR.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR = (byte)SEGMENT_SEPARATOR;
0N/A
0N/A /**
0N/A * Directional type WS
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int WHITE_SPACE_NEUTRAL = 9;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for WHITE_SPACE_NEUTRAL.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_WHITESPACE = (byte)WHITE_SPACE_NEUTRAL;
0N/A
0N/A /**
0N/A * Directional type ON
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int OTHER_NEUTRAL = 10;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for OTHER_NEUTRAL.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_OTHER_NEUTRALS = (byte)OTHER_NEUTRAL;
0N/A
0N/A /**
0N/A * Directional type LRE
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int LEFT_TO_RIGHT_EMBEDDING = 11;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for LEFT_TO_RIGHT_EMBEDDING.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = (byte)LEFT_TO_RIGHT_EMBEDDING;
0N/A
0N/A /**
0N/A * Directional type LRO
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int LEFT_TO_RIGHT_OVERRIDE = 12;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for LEFT_TO_RIGHT_OVERRIDE.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = (byte)LEFT_TO_RIGHT_OVERRIDE;
0N/A
0N/A /**
0N/A * Directional type AL
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int RIGHT_TO_LEFT_ARABIC = 13;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for RIGHT_TO_LEFT_ARABIC.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = (byte)RIGHT_TO_LEFT_ARABIC;
0N/A
0N/A /**
0N/A * Directional type RLE
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int RIGHT_TO_LEFT_EMBEDDING = 14;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for RIGHT_TO_LEFT_EMBEDDING.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = (byte)RIGHT_TO_LEFT_EMBEDDING;
0N/A
0N/A /**
0N/A * Directional type RLO
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int RIGHT_TO_LEFT_OVERRIDE = 15;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for RIGHT_TO_LEFT_OVERRIDE.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = (byte)RIGHT_TO_LEFT_OVERRIDE;
0N/A
0N/A /**
0N/A * Directional type PDF
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int POP_DIRECTIONAL_FORMAT = 16;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for POP_DIRECTIONAL_FORMAT.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = (byte)POP_DIRECTIONAL_FORMAT;
0N/A
0N/A /**
0N/A * Directional type NSM
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int DIR_NON_SPACING_MARK = 17;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for DIR_NON_SPACING_MARK.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_NON_SPACING_MARK = (byte)DIR_NON_SPACING_MARK;
0N/A
0N/A /**
0N/A * Directional type BN
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int BOUNDARY_NEUTRAL = 18;
0N/A
0N/A /**
0N/A * JDK-compatible synonum for BOUNDARY_NEUTRAL.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL = (byte)BOUNDARY_NEUTRAL;
0N/A
0N/A /**
0N/A * Number of directional types
0N/A * @stable ICU 2.1
0N/A */
0N/A public static final int CHAR_DIRECTION_COUNT = 19;
0N/A
0N/A /**
0N/A * Undefined bidirectional character type. Undefined <code>char</code>
0N/A * values have undefined directionality in the Unicode specification.
0N/A * @draft ICU 3.0
0N/A * @deprecated This is a draft API and might change in a future release of ICU.
0N/A */
0N/A public static final byte DIRECTIONALITY_UNDEFINED = -1;
0N/A }
0N/A}