All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.icu.lang.UProperty Maven / Gradle / Ivy

Go to download

International Component for Unicode for Java (ICU4J) is a mature, widely used Java library providing Unicode and Globalization support

There is a newer version: 76.1
Show newest version
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/**
*******************************************************************************
* Copyright (C) 1996-2016, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/

package com.ibm.icu.lang;

/**
 * 

Selection constants for Unicode properties. *

These constants are used in functions like * UCharacter.hasBinaryProperty(int) to select one of the Unicode properties. * *

The properties APIs are intended to reflect Unicode properties as * defined in the Unicode Character Database (UCD) and Unicode Technical * Reports (UTR). *

For details about the properties see * UAX #44: Unicode Character Database. * *

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. * @author Syn Wee Quek * @stable ICU 2.6 * @see com.ibm.icu.lang.UCharacter */ public interface UProperty { // public data member -------------------------------------------------- /** * Special value indicating undefined property. * @internal * @deprecated This API is ICU internal only. */ @Deprecated public static final int UNDEFINED = -1; /** *

Binary property Alphabetic. *

Property for UCharacter.isUAlphabetic(), different from the property * in UCharacter.isalpha(). *

Lu + Ll + Lt + Lm + Lo + Nl + Other_Alphabetic. * @stable ICU 2.6 */ public static final int ALPHABETIC = 0; /** * First constant for binary Unicode properties. * @stable ICU 2.6 */ public static final int BINARY_START = ALPHABETIC; /** * Binary property ASCII_Hex_Digit (0-9 A-F a-f). * @stable ICU 2.6 */ public static final int ASCII_HEX_DIGIT = 1; /** *

Binary property Bidi_Control. *

Format controls which have specific functions in the Bidi Algorithm. * * @stable ICU 2.6 */ public static final int BIDI_CONTROL = 2; /** *

Binary property Bidi_Mirrored. *

Characters that may change display in RTL text. *

Property for UCharacter.isMirrored(). *

See Bidi Algorithm; UTR 9. * @stable ICU 2.6 */ public static final int BIDI_MIRRORED = 3; /** *

Binary property Dash. *

Variations of dashes. * @stable ICU 2.6 */ public static final int DASH = 4; /** *

Binary property Default_Ignorable_Code_Point (new). * *

Property that indicates codepoint is ignorable in most processing. * *

Codepoints (2060..206F, FFF0..FFFB, E0000..E0FFF) + * Other_Default_Ignorable_Code_Point + (Cf + Cc + Cs - White_Space) * @stable ICU 2.6 */ public static final int DEFAULT_IGNORABLE_CODE_POINT = 5; /** *

Binary property Deprecated (new). *

The usage of deprecated characters is strongly discouraged. * @stable ICU 2.6 */ public static final int DEPRECATED = 6; /** *

Binary property Diacritic. *

Characters that linguistically modify the meaning of another * character to which they apply. * @stable ICU 2.6 */ public static final int DIACRITIC = 7; /** *

Binary property Extender. *

Extend the value or shape of a preceding alphabetic character, e.g. * length and iteration marks. * @stable ICU 2.6 */ public static final int EXTENDER = 8; /** *

Binary property Full_Composition_Exclusion. *

CompositionExclusions.txt + Singleton Decompositions + * Non-Starter Decompositions. * @stable ICU 2.6 */ public static final int FULL_COMPOSITION_EXCLUSION = 9; /** *

Binary property Grapheme_Base (new). *

For programmatic determination of grapheme cluster boundaries. * [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ * @stable ICU 2.6 */ public static final int GRAPHEME_BASE = 10; /** *

Binary property Grapheme_Extend (new). *

For programmatic determination of grapheme cluster boundaries. *

Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ * @stable ICU 2.6 */ public static final int GRAPHEME_EXTEND = 11; /** *

Binary property Grapheme_Link (new). *

For programmatic determination of grapheme cluster boundaries. * @stable ICU 2.6 */ public static final int GRAPHEME_LINK = 12; /** *

Binary property Hex_Digit. *

Characters commonly used for hexadecimal numbers. * @stable ICU 2.6 */ public static final int HEX_DIGIT = 13; /** *

Binary property Hyphen. *

Dashes used to mark connections between pieces of words, plus the * Katakana middle dot. * @stable ICU 2.6 */ public static final int HYPHEN = 14; /** *

Binary property ID_Continue. *

Characters that can continue an identifier. *

ID_Start+Mn+Mc+Nd+Pc * @stable ICU 2.6 */ public static final int ID_CONTINUE = 15; /** *

Binary property ID_Start. *

Characters that can start an identifier. *

Lu+Ll+Lt+Lm+Lo+Nl * @stable ICU 2.6 */ public static final int ID_START = 16; /** *

Binary property Ideographic. *

CJKV ideographs. * @stable ICU 2.6 */ public static final int IDEOGRAPHIC = 17; /** *

Binary property IDS_Binary_Operator (new). *

For programmatic determination of Ideographic Description Sequences. * * @stable ICU 2.6 */ public static final int IDS_BINARY_OPERATOR = 18; /** *

Binary property IDS_Trinary_Operator (new). *

For programmatic determination of Ideographic Description * Sequences. * @stable ICU 2.6 */ public static final int IDS_TRINARY_OPERATOR = 19; /** *

Binary property Join_Control. *

Format controls for cursive joining and ligation. * @stable ICU 2.6 */ public static final int JOIN_CONTROL = 20; /** *

Binary property Logical_Order_Exception (new). *

Characters that do not use logical order and require special * handling in most processing. * @stable ICU 2.6 */ public static final int LOGICAL_ORDER_EXCEPTION = 21; /** *

Binary property Lowercase. *

Same as UCharacter.isULowercase(), different from * UCharacter.islower(). *

Ll+Other_Lowercase * @stable ICU 2.6 */ public static final int LOWERCASE = 22; /**

Binary property Math. *

Sm+Other_Math * @stable ICU 2.6 */ public static final int MATH = 23; /** *

Binary property Noncharacter_Code_Point. *

Code points that are explicitly defined as illegal for the encoding * of characters. * @stable ICU 2.6 */ public static final int NONCHARACTER_CODE_POINT = 24; /** *

Binary property Quotation_Mark. * @stable ICU 2.6 */ public static final int QUOTATION_MARK = 25; /** *

Binary property Radical (new). *

For programmatic determination of Ideographic Description * Sequences. * @stable ICU 2.6 */ public static final int RADICAL = 26; /** *

Binary property Soft_Dotted (new). *

Characters with a "soft dot", like i or j. *

An accent placed on these characters causes the dot to disappear. * @stable ICU 2.6 */ public static final int SOFT_DOTTED = 27; /** *

Binary property Terminal_Punctuation. *

Punctuation characters that generally mark the end of textual * units. * @stable ICU 2.6 */ public static final int TERMINAL_PUNCTUATION = 28; /** *

Binary property Unified_Ideograph (new). *

For programmatic determination of Ideographic Description * Sequences. * @stable ICU 2.6 */ public static final int UNIFIED_IDEOGRAPH = 29; /** *

Binary property Uppercase. *

Same as UCharacter.isUUppercase(), different from * UCharacter.isUpperCase(). *

Lu+Other_Uppercase * @stable ICU 2.6 */ public static final int UPPERCASE = 30; /** *

Binary property White_Space. *

Same as UCharacter.isUWhiteSpace(), different from * UCharacter.isSpace() and UCharacter.isWhitespace(). * Space characters+TAB+CR+LF-ZWSP-ZWNBSP * @stable ICU 2.6 */ public static final int WHITE_SPACE = 31; /** *

Binary property XID_Continue. *

ID_Continue modified to allow closure under normalization forms * NFKC and NFKD. * @stable ICU 2.6 */ public static final int XID_CONTINUE = 32; /** *

Binary property XID_Start. *

ID_Start modified to allow closure under normalization forms NFKC * and NFKD. * @stable ICU 2.6 */ public static final int XID_START = 33; /** *

Binary property Case_Sensitive. *

Either the source of a case * mapping or in the target of a case mapping. Not the same as * the general category Cased_Letter. * @stable ICU 2.6 */ public static final int CASE_SENSITIVE = 34; /** * Binary property STerm (new in Unicode 4.0.1). * Sentence Terminal. Used in UAX #29: Text Boundaries * (http://www.unicode.org/reports/tr29/) * @stable ICU 3.0 */ public static final int S_TERM = 35; /** * Binary property Variation_Selector (new in Unicode 4.0.1). * Indicates all those characters that qualify as Variation Selectors. * For details on the behavior of these characters, * see StandardizedVariants.html and 15.6 Variation Selectors. * @stable ICU 3.0 */ public static final int VARIATION_SELECTOR = 36; /** * Binary property NFD_Inert. * ICU-specific property for characters that are inert under NFD, * i.e., they do not interact with adjacent characters. * Used for example in normalizing transforms in incremental mode * to find the boundary of safely normalizable text despite possible * text additions. * * There is one such property per normalization form. * These properties are computed as follows - an inert character is: * a) unassigned, or ALL of the following: * b) of combining class 0. * c) not decomposed by this normalization form. * AND if NFC or NFKC, * d) can never compose with a previous character. * e) can never compose with a following character. * f) can never change if another character is added. * Example: a-breve might satisfy all but f, but if you * add an ogonek it changes to a-ogonek + breve * * See also com.ibm.text.UCD.NFSkippable in the ICU4J repository, * and icu/source/common/unormimp.h . * @stable ICU 3.0 */ public static final int NFD_INERT = 37; /** * Binary property NFKD_Inert. * ICU-specific property for characters that are inert under NFKD, * i.e., they do not interact with adjacent characters. * Used for example in normalizing transforms in incremental mode * to find the boundary of safely normalizable text despite possible * text additions. * @see #NFD_INERT * @stable ICU 3.0 */ public static final int NFKD_INERT = 38; /** * Binary property NFC_Inert. * ICU-specific property for characters that are inert under NFC, * i.e., they do not interact with adjacent characters. * Used for example in normalizing transforms in incremental mode * to find the boundary of safely normalizable text despite possible * text additions. * @see #NFD_INERT * @stable ICU 3.0 */ public static final int NFC_INERT = 39; /** * Binary property NFKC_Inert. * ICU-specific property for characters that are inert under NFKC, * i.e., they do not interact with adjacent characters. * Used for example in normalizing transforms in incremental mode * to find the boundary of safely normalizable text despite possible * text additions. * @see #NFD_INERT * @stable ICU 3.0 */ public static final int NFKC_INERT = 40; /** * Binary Property Segment_Starter. * ICU-specific property for characters that are starters in terms of * Unicode normalization and combining character sequences. * They have ccc=0 and do not occur in non-initial position of the * canonical decomposition of any character * (like " in NFD(a-umlaut) and a Jamo T in an NFD(Hangul LVT)). * ICU uses this property for segmenting a string for generating a set of * canonically equivalent strings, e.g. for canonical closure while * processing collation tailoring rules. * @stable ICU 3.0 */ public static final int SEGMENT_STARTER = 41; /** * Binary property Pattern_Syntax (new in Unicode 4.1). * See UAX #31 Identifier and Pattern Syntax * (http://www.unicode.org/reports/tr31/) * @stable ICU 3.4 */ public static final int PATTERN_SYNTAX = 42; /** * Binary property Pattern_White_Space (new in Unicode 4.1). * See UAX #31 Identifier and Pattern Syntax * (http://www.unicode.org/reports/tr31/) * @stable ICU 3.4 */ public static final int PATTERN_WHITE_SPACE = 43; /** * Binary property alnum (a C/POSIX character class). * Implemented according to the UTS #18 Annex C Standard Recommendation. * See the UCharacter class documentation. * @stable ICU 3.4 */ public static final int POSIX_ALNUM = 44; /** * Binary property blank (a C/POSIX character class). * Implemented according to the UTS #18 Annex C Standard Recommendation. * See the UCharacter class documentation. * @stable ICU 3.4 */ public static final int POSIX_BLANK = 45; /** * Binary property graph (a C/POSIX character class). * Implemented according to the UTS #18 Annex C Standard Recommendation. * See the UCharacter class documentation. * @stable ICU 3.4 */ public static final int POSIX_GRAPH = 46; /** * Binary property print (a C/POSIX character class). * Implemented according to the UTS #18 Annex C Standard Recommendation. * See the UCharacter class documentation. * @stable ICU 3.4 */ public static final int POSIX_PRINT = 47; /** * Binary property xdigit (a C/POSIX character class). * Implemented according to the UTS #18 Annex C Standard Recommendation. * See the UCharacter class documentation. * @stable ICU 3.4 */ public static final int POSIX_XDIGIT = 48; /** * Binary property Cased. * For Lowercase, Uppercase and Titlecase characters. * @stable ICU 4.4 */ public static final int CASED=49; /** * Binary property Case_Ignorable. * Used in context-sensitive case mappings. * @stable ICU 4.4 */ public static final int CASE_IGNORABLE=50; /** * Binary property Changes_When_Lowercased. * @stable ICU 4.4 */ public static final int CHANGES_WHEN_LOWERCASED=51; /** * Binary property Changes_When_Uppercased. * @stable ICU 4.4 */ public static final int CHANGES_WHEN_UPPERCASED=52; /** * Binary property Changes_When_Titlecased. * @stable ICU 4.4 */ public static final int CHANGES_WHEN_TITLECASED=53; /** * Binary property Changes_When_Casefolded. * @stable ICU 4.4 */ public static final int CHANGES_WHEN_CASEFOLDED=54; /** * Binary property Changes_When_Casemapped. * @stable ICU 4.4 */ public static final int CHANGES_WHEN_CASEMAPPED=55; /** * Binary property Changes_When_NFKC_Casefolded. * @stable ICU 4.4 */ public static final int CHANGES_WHEN_NFKC_CASEFOLDED=56; /** * Binary property Emoji. * See http://www.unicode.org/reports/tr51/#Emoji_Properties * * @stable ICU 57 */ public static final int EMOJI=57; /** * Binary property Emoji_Presentation. * See http://www.unicode.org/reports/tr51/#Emoji_Properties * * @stable ICU 57 */ public static final int EMOJI_PRESENTATION=58; /** * Binary property Emoji_Modifier. * See http://www.unicode.org/reports/tr51/#Emoji_Properties * * @stable ICU 57 */ public static final int EMOJI_MODIFIER=59; /** * Binary property Emoji_Modifier_Base. * See http://www.unicode.org/reports/tr51/#Emoji_Properties * * @stable ICU 57 */ public static final int EMOJI_MODIFIER_BASE=60; /** * Binary property Emoji_Component. * See http://www.unicode.org/reports/tr51/#Emoji_Properties * * @stable ICU 60 */ public static final int EMOJI_COMPONENT=61; /** * Binary property Regional_Indicator. * * @stable ICU 60 */ public static final int REGIONAL_INDICATOR=62; /** * Binary property Prepended_Concatenation_Mark. * * @stable ICU 60 */ public static final int PREPENDED_CONCATENATION_MARK=63; /** * Binary property Extended_Pictographic. * See http://www.unicode.org/reports/tr51/#Emoji_Properties * * @stable ICU 62 */ public static final int EXTENDED_PICTOGRAPHIC=64; /** * Binary property of strings Basic_Emoji. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int BASIC_EMOJI=65; /** * Binary property of strings Emoji_Keycap_Sequence. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int EMOJI_KEYCAP_SEQUENCE=66; /** * Binary property of strings RGI_Emoji_Modifier_Sequence. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int RGI_EMOJI_MODIFIER_SEQUENCE=67; /** * Binary property of strings RGI_Emoji_Flag_Sequence. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int RGI_EMOJI_FLAG_SEQUENCE=68; /** * Binary property of strings RGI_Emoji_Tag_Sequence. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int RGI_EMOJI_TAG_SEQUENCE=69; /** * Binary property of strings RGI_Emoji_ZWJ_Sequence. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int RGI_EMOJI_ZWJ_SEQUENCE=70; /** * Binary property of strings RGI_Emoji. * See https://www.unicode.org/reports/tr51/#Emoji_Sets * * @stable ICU 70 */ public static final int RGI_EMOJI=71; /** * Binary property IDS_Unary_Operator. * For programmatic determination of Ideographic Description Sequences. * * @draft ICU 74 */ public static final int IDS_UNARY_OPERATOR = 72; /** * Binary property ID_Compat_Math_Start. *

Used in mathematical identifier profile in UAX #31. * * @draft ICU 74 */ public static final int ID_COMPAT_MATH_START = 73; /** * Binary property ID_Compat_Math_Continue. *

Used in mathematical identifier profile in UAX #31. * * @draft ICU 74 */ public static final int ID_COMPAT_MATH_CONTINUE = 74; /** * One more than the last constant for binary Unicode properties. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated public static final int BINARY_LIMIT = 75; /** * Enumerated property Bidi_Class. * Same as UCharacter.getDirection(int), returns UCharacterDirection values. * @stable ICU 2.4 */ public static final int BIDI_CLASS = 0x1000; /** * First constant for enumerated/integer Unicode properties. * @stable ICU 2.4 */ public static final int INT_START = BIDI_CLASS; /** * Enumerated property Block. * Same as UCharacter.UnicodeBlock.of(int), returns UCharacter.UnicodeBlock * values. * @stable ICU 2.4 */ public static final int BLOCK = 0x1001; /** * Enumerated property Canonical_Combining_Class. * Same as UCharacter.getCombiningClass(int), returns 8-bit numeric values. * @stable ICU 2.4 */ public static final int CANONICAL_COMBINING_CLASS = 0x1002; /** * Enumerated property Decomposition_Type. * Returns UCharacter.DecompositionType values. * @stable ICU 2.4 */ public static final int DECOMPOSITION_TYPE = 0x1003; /** * Enumerated property East_Asian_Width. * See http://www.unicode.org/reports/tr11/ * Returns UCharacter.EastAsianWidth values. * @stable ICU 2.4 */ public static final int EAST_ASIAN_WIDTH = 0x1004; /** * Enumerated property General_Category. * Same as UCharacter.getType(int), returns UCharacterCategory values. * @stable ICU 2.4 */ public static final int GENERAL_CATEGORY = 0x1005; /** * Enumerated property Joining_Group. * Returns UCharacter.JoiningGroup values. * @stable ICU 2.4 */ public static final int JOINING_GROUP = 0x1006; /** * Enumerated property Joining_Type. * Returns UCharacter.JoiningType values. * @stable ICU 2.4 */ public static final int JOINING_TYPE = 0x1007; /** * Enumerated property Line_Break. * Returns UCharacter.LineBreak values. * @stable ICU 2.4 */ public static final int LINE_BREAK = 0x1008; /** * Enumerated property Numeric_Type. * Returns UCharacter.NumericType values. * @stable ICU 2.4 */ public static final int NUMERIC_TYPE = 0x1009; /** * Enumerated property Script. * Same as UScript.getScript(int), returns UScript values. * @stable ICU 2.4 */ public static final int SCRIPT = 0x100A; /** * Enumerated property Hangul_Syllable_Type, new in Unicode 4. * Returns UCharacter.HangulSyllableType values. * @stable ICU 2.6 */ public static final int HANGUL_SYLLABLE_TYPE = 0x100B; /** * Enumerated property NFD_Quick_Check. * Returns numeric values compatible with Normalizer.QuickCheckResult. * @stable ICU 3.0 */ public static final int NFD_QUICK_CHECK = 0x100C; /** * Enumerated property NFKD_Quick_Check. * Returns numeric values compatible with Normalizer.QuickCheckResult. * @stable ICU 3.0 */ public static final int NFKD_QUICK_CHECK = 0x100D; /** * Enumerated property NFC_Quick_Check. * Returns numeric values compatible with Normalizer.QuickCheckResult. * @stable ICU 3.0 */ public static final int NFC_QUICK_CHECK = 0x100E; /** * Enumerated property NFKC_Quick_Check. * Returns numeric values compatible with Normalizer.QuickCheckResult. * @stable ICU 3.0 */ public static final int NFKC_QUICK_CHECK = 0x100F; /** * Enumerated property Lead_Canonical_Combining_Class. * ICU-specific property for the ccc of the first code point * of the decomposition, or lccc(c)=ccc(NFD(c)[0]). * Useful for checking for canonically ordered text; * see Normalizer.FCD and http://www.unicode.org/notes/tn5/#FCD . * Returns 8-bit numeric values like CANONICAL_COMBINING_CLASS. * @stable ICU 3.0 */ public static final int LEAD_CANONICAL_COMBINING_CLASS = 0x1010; /** * Enumerated property Trail_Canonical_Combining_Class. * ICU-specific property for the ccc of the last code point * of the decomposition, or lccc(c)=ccc(NFD(c)[last]). * Useful for checking for canonically ordered text; * see Normalizer.FCD and http://www.unicode.org/notes/tn5/#FCD . * Returns 8-bit numeric values like CANONICAL_COMBINING_CLASS. * @stable ICU 3.0 */ public static final int TRAIL_CANONICAL_COMBINING_CLASS = 0x1011; /** * Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1). * Used in UAX #29: Text Boundaries * (http://www.unicode.org/reports/tr29/) * Returns UCharacter.GraphemeClusterBreak values. * @stable ICU 3.4 */ public static final int GRAPHEME_CLUSTER_BREAK = 0x1012; /** * Enumerated property Sentence_Break (new in Unicode 4.1). * Used in UAX #29: Text Boundaries * (http://www.unicode.org/reports/tr29/) * Returns UCharacter.SentenceBreak values. * @stable ICU 3.4 */ public static final int SENTENCE_BREAK = 0x1013; /** * Enumerated property Word_Break (new in Unicode 4.1). * Used in UAX #29: Text Boundaries * (http://www.unicode.org/reports/tr29/) * Returns UCharacter.WordBreak values. * @stable ICU 3.4 */ public static final int WORD_BREAK = 0x1014; /** * Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3). * Used in UAX #9: Unicode Bidirectional Algorithm * (http://www.unicode.org/reports/tr9/) * Returns UCharacter.BidiPairedBracketType values. * @stable ICU 52 */ public static final int BIDI_PAIRED_BRACKET_TYPE = 0x1015; /** * Enumerated property Indic_Positional_Category. * New in Unicode 6.0 as provisional property Indic_Matra_Category; * renamed and changed to informative in Unicode 8.0. * See http://www.unicode.org/reports/tr44/#IndicPositionalCategory.txt * @stable ICU 63 */ public static final int INDIC_POSITIONAL_CATEGORY = 0x1016; /** * Enumerated property Indic_Syllabic_Category. * New in Unicode 6.0 as provisional; informative since Unicode 8.0. * See http://www.unicode.org/reports/tr44/#IndicSyllabicCategory.txt * @stable ICU 63 */ public static final int INDIC_SYLLABIC_CATEGORY = 0x1017; /** * Enumerated property Vertical_Orientation. * Used for UAX #50 Unicode Vertical Text Layout (https://www.unicode.org/reports/tr50/). * New as a UCD property in Unicode 10.0. * @stable ICU 63 */ public static final int VERTICAL_ORIENTATION = 0x1018; /** * One more than the last constant for enumerated/integer Unicode properties. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated public static final int INT_LIMIT = 0x1019; /** * 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; /** * First constant for bit-mask Unicode properties. * @stable ICU 2.4 */ public static final int MASK_START = GENERAL_CATEGORY_MASK; /** * One more than the last constant for bit-mask Unicode properties. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated public static final int MASK_LIMIT = 0x2001; /** * Double property Numeric_Value. * Corresponds to UCharacter.getUnicodeNumericValue(int). * @stable ICU 2.4 */ public static final int NUMERIC_VALUE = 0x3000; /** * First constant for double Unicode properties. * @stable ICU 2.4 */ public static final int DOUBLE_START = NUMERIC_VALUE; /** * One more than the last constant for double Unicode properties. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated public static final int DOUBLE_LIMIT = 0x3001; /** * String property Age. * Corresponds to UCharacter.getAge(int). * @stable ICU 2.4 */ public static final int AGE = 0x4000; /** * First constant for string Unicode properties. * @stable ICU 2.4 */ public static final int STRING_START = AGE; /** * String property Bidi_Mirroring_Glyph. * Corresponds to UCharacter.getMirror(int). * @stable ICU 2.4 */ public static final int BIDI_MIRRORING_GLYPH = 0x4001; /** * String property Case_Folding. * Corresponds to UCharacter.foldCase(String, boolean). * @stable ICU 2.4 */ public static final int CASE_FOLDING = 0x4002; /** * Deprecated string property ISO_Comment. * Corresponds to UCharacter.getISOComment(int). * @deprecated ICU 49 */ @Deprecated public static final int ISO_COMMENT = 0x4003; /** * String property Lowercase_Mapping. * Corresponds to UCharacter.toLowerCase(String). * @stable ICU 2.4 */ public static final int LOWERCASE_MAPPING = 0x4004; /** * String property Name. * Corresponds to UCharacter.getName(int). * @stable ICU 2.4 */ public static final int NAME = 0x4005; /** * String property Simple_Case_Folding. * Corresponds to UCharacter.foldCase(int, boolean). * @stable ICU 2.4 */ public static final int SIMPLE_CASE_FOLDING = 0x4006; /** * String property Simple_Lowercase_Mapping. * Corresponds to UCharacter.toLowerCase(int). * @stable ICU 2.4 */ public static final int SIMPLE_LOWERCASE_MAPPING = 0x4007; /** * String property Simple_Titlecase_Mapping. * Corresponds to UCharacter.toTitleCase(int). * @stable ICU 2.4 */ public static final int SIMPLE_TITLECASE_MAPPING = 0x4008; /** * String property Simple_Uppercase_Mapping. * Corresponds to UCharacter.toUpperCase(int). * @stable ICU 2.4 */ public static final int SIMPLE_UPPERCASE_MAPPING = 0x4009; /** * String property Titlecase_Mapping. * Corresponds to UCharacter.toTitleCase(String). * @stable ICU 2.4 */ public static final int TITLECASE_MAPPING = 0x400A; /** * String property Unicode_1_Name. * This property is of little practical value. * Beginning with ICU 49, ICU APIs return null or an empty string for this property. * Corresponds to UCharacter.getName1_0(int). * @deprecated ICU 49 */ @Deprecated public static final int UNICODE_1_NAME = 0x400B; /** * String property Uppercase_Mapping. * Corresponds to UCharacter.toUpperCase(String). * @stable ICU 2.4 */ public static final int UPPERCASE_MAPPING = 0x400C; /** * String property Bidi_Paired_Bracket (new in Unicode 6.3). * Corresponds to UCharacter.getBidiPairedBracket. * @stable ICU 52 */ public static final int BIDI_PAIRED_BRACKET = 0x400D; /** * One more than the last constant for string Unicode properties. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated public static final int STRING_LIMIT = 0x400E; /** * Miscellaneous property Script_Extensions (new in Unicode 6.0). * Some characters are commonly used in multiple scripts. * For more information, see UAX #24: http://www.unicode.org/reports/tr24/. * Corresponds to UScript.hasScript and UScript.getScriptExtensions. * @stable ICU 4.6 */ public static final int SCRIPT_EXTENSIONS=0x7000; /** * First constant for Unicode properties with unusual value types. * @stable ICU 4.6 */ public static final int OTHER_PROPERTY_START=SCRIPT_EXTENSIONS; /** * One more than the last constant for Unicode properties with unusual value types. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated public static final int OTHER_PROPERTY_LIMIT=0x7001; /** * Selector constants for UCharacter.getPropertyName() and * UCharacter.getPropertyValueName(). These selectors are used to * choose which name is returned for a given property or value. * All properties and values have a long name. Most have a short * name, but some do not. Unicode allows for additional names, * beyond the long and short name, which would be indicated by * LONG + i, where i=1, 2,... * * @see UCharacter#getPropertyName * @see UCharacter#getPropertyValueName * @stable ICU 2.4 */ public interface NameChoice { /** * Selector for the abbreviated name of a property or value. * Most properties and values have a short name; those that do * not return null. * @stable ICU 2.4 */ static final int SHORT = 0; /** * Selector for the long name of a property or value. All * properties and values have a long name. * @stable ICU 2.4 */ static final int LONG = 1; /** * The number of predefined property name choices. Individual * properties or values may have more than COUNT aliases. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ @Deprecated static final int COUNT = 2; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy