KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > icu > lang > UProperty


1 /**
2 *******************************************************************************
3 * Copyright (C) 1996-2006, international Business Machines Corporation and *
4 * others. All Rights Reserved. *
5 *******************************************************************************
6 */

7
8 package com.ibm.icu.lang;
9
10 /**
11  * <p>Selection constants for Unicode properties. </p>
12  * <p>These constants are used in functions like
13  * UCharacter.hasBinaryProperty(int) to select one of the Unicode properties.
14  * </p>
15  * <p>The properties APIs are intended to reflect Unicode properties as
16  * defined in the Unicode Character Database (UCD) and Unicode Technical
17  * Reports (UTR).</p>
18  * <p>For details about the properties see <a HREF=http://www.unicode.org>
19  * http://www.unicode.org</a>.</p>
20  * <p>For names of Unicode properties see the UCD file PropertyAliases.txt.
21  * </p>
22  * <p>Important: If ICU is built with UCD files from Unicode versions below
23  * 3.2, then properties marked with "new" are not or not fully
24  * available. Check UCharacter.getUnicodeVersion() to be sure.</p>
25  * @author Syn Wee Quek
26  * @stable ICU 2.6
27  * @see com.ibm.icu.lang.UCharacter
28  */

29 public interface UProperty
30 {
31     // public data member --------------------------------------------------
32

33     /**
34      * <p>Binary property Alphabetic. </p>
35      * <p>Property for UCharacter.isUAlphabetic(), different from the property
36      * in UCharacter.isalpha().</p>
37      * <p>Lu + Ll + Lt + Lm + Lo + Nl + Other_Alphabetic.</p>
38      * @stable ICU 2.6
39      */

40     public static final int ALPHABETIC = 0;
41
42     /**
43      * First constant for binary Unicode properties.
44      * @stable ICU 2.6
45      */

46     public static final int BINARY_START = ALPHABETIC;
47
48     /**
49      * Binary property ASCII_Hex_Digit (0-9 A-F a-f).
50      * @stable ICU 2.6
51      */

52     public static final int ASCII_HEX_DIGIT = 1;
53
54     /**
55      * <p>Binary property Bidi_Control.</p>
56      * <p>Format controls which have specific functions in the Bidi Algorithm.
57      * </p>
58      * @stable ICU 2.6
59      */

60     public static final int BIDI_CONTROL = 2;
61
62     /**
63      * <p>Binary property Bidi_Mirrored.</p>
64      * <p>Characters that may change display in RTL text.</p>
65      * <p>Property for UCharacter.isMirrored().</p>
66      * <p>See Bidi Algorithm; UTR 9.</p>
67      * @stable ICU 2.6
68      */

69     public static final int BIDI_MIRRORED = 3;
70
71     /**
72      * <p>Binary property Dash.</p>
73      * <p>Variations of dashes.</p>
74      * @stable ICU 2.6
75      */

76     public static final int DASH = 4;
77
78     /**
79      * <p>Binary property Default_Ignorable_Code_Point (new).
80      * </p>
81      * <p>Property that indicates codepoint is ignorable in most processing.
82      * </p>
83      * <p>Codepoints (2060..206F, FFF0..FFFB, E0000..E0FFF) +
84      * Other_Default_Ignorable_Code_Point + (Cf + Cc + Cs - White_Space)</p>
85      * @stable ICU 2.6
86      */

87     public static final int DEFAULT_IGNORABLE_CODE_POINT = 5;
88
89     /**
90      * <p>Binary property Deprecated (new).</p>
91      * <p>The usage of deprecated characters is strongly discouraged.</p>
92      * @stable ICU 2.6
93      */

94     public static final int DEPRECATED = 6;
95
96     /**
97      * <p>Binary property Diacritic.</p>
98      * <p>Characters that linguistically modify the meaning of another
99      * character to which they apply.</p>
100      * @stable ICU 2.6
101      */

102     public static final int DIACRITIC = 7;
103
104     /**
105      * <p>Binary property Extender.</p>
106      * <p>Extend the value or shape of a preceding alphabetic character, e.g.
107      * length and iteration marks.</p>
108      * @stable ICU 2.6
109      */

110     public static final int EXTENDER = 8;
111
112     /**
113      * <p>Binary property Full_Composition_Exclusion.</p>
114      * <p>CompositionExclusions.txt + Singleton Decompositions +
115      * Non-Starter Decompositions.</p>
116      * @stable ICU 2.6
117      */

118     public static final int FULL_COMPOSITION_EXCLUSION = 9;
119
120     /**
121      * <p>Binary property Grapheme_Base (new).</p>
122      * <p>For programmatic determination of grapheme cluster boundaries.
123      * [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ</p>
124      * @stable ICU 2.6
125      */

126     public static final int GRAPHEME_BASE = 10;
127
128     /**
129      * <p>Binary property Grapheme_Extend (new).</p>
130      * <p>For programmatic determination of grapheme cluster boundaries.</p>
131      * <p>Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ</p>
132      * @stable ICU 2.6
133      */

134     public static final int GRAPHEME_EXTEND = 11;
135
136     /**
137      * <p>Binary property Grapheme_Link (new).</p>
138      * <p>For programmatic determination of grapheme cluster boundaries.</p>
139      * @stable ICU 2.6
140      */

141     public static final int GRAPHEME_LINK = 12;
142
143     /**
144      * <p>Binary property Hex_Digit.</p>
145      * <p>Characters commonly used for hexadecimal numbers.</p>
146      * @stable ICU 2.6
147      */

148     public static final int HEX_DIGIT = 13;
149
150     /**
151      * <p>Binary property Hyphen.</p>
152      * <p>Dashes used to mark connections between pieces of words, plus the
153      * Katakana middle dot.</p>
154      * @stable ICU 2.6
155      */

156     public static final int HYPHEN = 14;
157
158     /**
159      * <p>Binary property ID_Continue.</p>
160      * <p>Characters that can continue an identifier.</p>
161      * <p>ID_Start+Mn+Mc+Nd+Pc</p>
162      * @stable ICU 2.6
163      */

164     public static final int ID_CONTINUE = 15;
165
166     /**
167      * <p>Binary property ID_Start.</p>
168      * <p>Characters that can start an identifier.</p>
169      * <p>Lu+Ll+Lt+Lm+Lo+Nl</p>
170      * @stable ICU 2.6
171      */

172     public static final int ID_START = 16;
173
174     /**
175      * <p>Binary property Ideographic.</p>
176      * <p>CJKV ideographs.</p>
177      * @stable ICU 2.6
178      */

179     public static final int IDEOGRAPHIC = 17;
180
181     /**
182      * <p>Binary property IDS_Binary_Operator (new).</p>
183      * <p>For programmatic determination of Ideographic Description Sequences.
184      * </p>
185      * @stable ICU 2.6
186      */

187     public static final int IDS_BINARY_OPERATOR = 18;
188
189     /**
190      * <p>Binary property IDS_Trinary_Operator (new).</p>
191      * <p?For programmatic determination of Ideographic Description
192      * Sequences.</p>
193      * @stable ICU 2.6
194      */

195     public static final int IDS_TRINARY_OPERATOR = 19;
196
197     /**
198      * <p>Binary property Join_Control.</p>
199      * <p>Format controls for cursive joining and ligation.</p>
200      * @stable ICU 2.6
201      */

202     public static final int JOIN_CONTROL = 20;
203
204     /**
205      * <p>Binary property Logical_Order_Exception (new).</p>
206      * <p>Characters that do not use logical order and require special
207      * handling in most processing.</p>
208      * @stable ICU 2.6
209      */

210     public static final int LOGICAL_ORDER_EXCEPTION = 21;
211
212     /**
213      * <p>Binary property Lowercase.</p>
214      * <p>Same as UCharacter.isULowercase(), different from
215      * UCharacter.islower().</p>
216      * <p>Ll+Other_Lowercase</p>
217      * @stable ICU 2.6
218      */

219     public static final int LOWERCASE = 22;
220
221     /** <p>Binary property Math.</p>
222      * <p>Sm+Other_Math</p>
223      * @stable ICU 2.6
224      */

225     public static final int MATH = 23;
226
227     /**
228      * <p>Binary property Noncharacter_Code_Point.</p>
229      * <p>Code points that are explicitly defined as illegal for the encoding
230      * of characters.</p>
231      * @stable ICU 2.6
232      */

233     public static final int NONCHARACTER_CODE_POINT = 24;
234
235     /**
236      * <p>Binary property Quotation_Mark.</p>
237      * @stable ICU 2.6
238      */

239     public static final int QUOTATION_MARK = 25;
240
241     /**
242      * <p>Binary property Radical (new).</p>
243      * <p>For programmatic determination of Ideographic Description
244      * Sequences.</p>
245      * @stable ICU 2.6
246      */

247     public static final int RADICAL = 26;
248
249     /**
250      * <p>Binary property Soft_Dotted (new).</p>
251      * <p>Characters with a "soft dot", like i or j.</p>
252      * <p>An accent placed on these characters causes the dot to disappear.</p>
253      * @stable ICU 2.6
254      */

255     public static final int SOFT_DOTTED = 27;
256
257     /**
258      * <p>Binary property Terminal_Punctuation.</p>
259      * <p>Punctuation characters that generally mark the end of textual
260      * units.</p>
261      * @stable ICU 2.6
262      */

263     public static final int TERMINAL_PUNCTUATION = 28;
264
265     /**
266      * <p>Binary property Unified_Ideograph (new).</p>
267      * <p>For programmatic determination of Ideographic Description
268      * Sequences.</p>
269      * @stable ICU 2.6
270      */

271     public static final int UNIFIED_IDEOGRAPH = 29;
272
273     /**
274      * <p>Binary property Uppercase.</p>
275      * <p>Same as UCharacter.isUUppercase(), different from
276      * UCharacter.isUpperCase().</p>
277      * <p>Lu+Other_Uppercase</p>
278      * @stable ICU 2.6
279      */

280     public static final int UPPERCASE = 30;
281
282     /**
283      * <p>Binary property White_Space.</p>
284      * <p>Same as UCharacter.isUWhiteSpace(), different from
285      * UCharacter.isSpace() and UCharacter.isWhitespace().</p>
286      * Space characters+TAB+CR+LF-ZWSP-ZWNBSP</p>
287      * @stable ICU 2.6
288      */

289     public static final int WHITE_SPACE = 31;
290
291     /**
292      * <p>Binary property XID_Continue.</p>
293      * <p>ID_Continue modified to allow closure under normalization forms
294      * NFKC and NFKD.</p>
295      * @stable ICU 2.6
296      */

297     public static final int XID_CONTINUE = 32;
298
299     /**
300      * <p>Binary property XID_Start.</p>
301      * <p>ID_Start modified to allow closure under normalization forms NFKC
302      * and NFKD.</p>
303      * @stable ICU 2.6
304      */

305     public static final int XID_START = 33;
306
307     /**
308      * <p>Binary property Case_Sensitive.</p>
309      * <p>Either the source of a case
310      * mapping or _in_ the target of a case mapping. Not the same as
311      * the general category Cased_Letter.</p>
312      * @stable ICU 2.6
313      */

314     public static final int CASE_SENSITIVE = 34;
315
316     /**
317      * Binary property STerm (new in Unicode 4.0.1).
318      * Sentence Terminal. Used in UAX #29: Text Boundaries
319      * (http://www.unicode.org/reports/tr29/)
320      * @stable ICU 3.0
321      */

322     public static final int S_TERM = 35;
323
324     /**
325      * Binary property Variation_Selector (new in Unicode 4.0.1).
326      * Indicates all those characters that qualify as Variation Selectors.
327      * For details on the behavior of these characters,
328      * see StandardizedVariants.html and 15.6 Variation Selectors.
329      * @stable ICU 3.0
330      */

331     public static final int VARIATION_SELECTOR = 36;
332
333     /**
334      * Binary property NFD_Inert.
335      * ICU-specific property for characters that are inert under NFD,
336      * i.e., they do not interact with adjacent characters.
337      * Used for example in normalizing transforms in incremental mode
338      * to find the boundary of safely normalizable text despite possible
339      * text additions.
340      *
341      * There is one such property per normalization form.
342      * These properties are computed as follows - an inert character is:
343      * a) unassigned, or ALL of the following:
344      * b) of combining class 0.
345      * c) not decomposed by this normalization form.
346      * AND if NFC or NFKC,
347      * d) can never compose with a previous character.
348      * e) can never compose with a following character.
349      * f) can never change if another character is added.
350      * Example: a-breve might satisfy all but f, but if you
351      * add an ogonek it changes to a-ogonek + breve
352      *
353      * See also com.ibm.text.UCD.NFSkippable in the ICU4J repository,
354      * and icu/source/common/unormimp.h .
355      * @stable ICU 3.0
356      */

357     public static final int NFD_INERT = 37;
358
359     /**
360      * Binary property NFKD_Inert.
361      * ICU-specific property for characters that are inert under NFKD,
362      * i.e., they do not interact with adjacent characters.
363      * Used for example in normalizing transforms in incremental mode
364      * to find the boundary of safely normalizable text despite possible
365      * text additions.
366      * @see #NFD_INERT
367      * @stable ICU 3.0
368      */

369     public static final int NFKD_INERT = 38;
370
371     /**
372      * Binary property NFC_Inert.
373      * ICU-specific property for characters that are inert under NFC,
374      * i.e., they do not interact with adjacent characters.
375      * Used for example in normalizing transforms in incremental mode
376      * to find the boundary of safely normalizable text despite possible
377      * text additions.
378      * @see #NFD_INERT
379      * @stable ICU 3.0
380      */

381     public static final int NFC_INERT = 39;
382
383     /**
384      * Binary property NFKC_Inert.
385      * ICU-specific property for characters that are inert under NFKC,
386      * i.e., they do not interact with adjacent characters.
387      * Used for example in normalizing transforms in incremental mode
388      * to find the boundary of safely normalizable text despite possible
389      * text additions.
390      * @see #NFD_INERT
391      * @stable ICU 3.0
392      */

393     public static final int NFKC_INERT = 40;
394
395     /**
396      * Binary Property Segment_Starter.
397      * ICU-specific property for characters that are starters in terms of
398      * Unicode normalization and combining character sequences.
399      * They have ccc=0 and do not occur in non-initial position of the
400      * canonical decomposition of any character
401      * (like " in NFD(a-umlaut) and a Jamo T in an NFD(Hangul LVT)).
402      * ICU uses this property for segmenting a string for generating a set of
403      * canonically equivalent strings, e.g. for canonical closure while
404      * processing collation tailoring rules.
405      * @stable ICU 3.0
406      */

407     public static final int SEGMENT_STARTER = 41;
408
409     /**
410      * Binary property Pattern_Syntax (new in Unicode 4.1).
411      * See UAX #31 Identifier and Pattern Syntax
412      * (http://www.unicode.org/reports/tr31/)
413      * @draft ICU 3.4
414      * @provisional This API might change or be removed in a future release.
415      */

416     public static final int PATTERN_SYNTAX = 42;
417
418     /**
419      * Binary property Pattern_White_Space (new in Unicode 4.1).
420      * See UAX #31 Identifier and Pattern Syntax
421      * (http://www.unicode.org/reports/tr31/)
422      * @draft ICU 3.4
423      * @provisional This API might change or be removed in a future release.
424      */

425     public static final int PATTERN_WHITE_SPACE = 43;
426
427     /**
428      * Binary property alnum (a C/POSIX character class).
429      * Implemented according to the UTS #18 Annex C Standard Recommendation.
430      * See the UCharacter class documentation.
431      * @draft ICU 3.4
432      * @provisional This API might change or be removed in a future release.
433      */

434     public static final int POSIX_ALNUM = 44;
435
436     /**
437      * Binary property blank (a C/POSIX character class).
438      * Implemented according to the UTS #18 Annex C Standard Recommendation.
439      * See the UCharacter class documentation.
440      * @draft ICU 3.4
441      * @provisional This API might change or be removed in a future release.
442      */

443     public static final int POSIX_BLANK = 45;
444
445     /**
446      * Binary property graph (a C/POSIX character class).
447      * Implemented according to the UTS #18 Annex C Standard Recommendation.
448      * See the UCharacter class documentation.
449      * @draft ICU 3.4
450      * @provisional This API might change or be removed in a future release.
451      */

452     public static final int POSIX_GRAPH = 46;
453
454     /**
455      * Binary property print (a C/POSIX character class).
456      * Implemented according to the UTS #18 Annex C Standard Recommendation.
457      * See the UCharacter class documentation.
458      * @draft ICU 3.4
459      * @provisional This API might change or be removed in a future release.
460      */

461     public static final int POSIX_PRINT = 47;
462
463     /**
464      * Binary property xdigit (a C/POSIX character class).
465      * Implemented according to the UTS #18 Annex C Standard Recommendation.
466      * See the UCharacter class documentation.
467      * @draft ICU 3.4
468      * @provisional This API might change or be removed in a future release.
469      */

470     public static final int POSIX_XDIGIT = 48;
471
472     /**
473      * <p>One more than the last constant for binary Unicode properties.</p>
474      * @stable ICU 2.6
475      */

476     public static final int BINARY_LIMIT = 49;
477     
478     /**
479      * Enumerated property Bidi_Class.
480      * Same as UCharacter.getDirection(int), returns UCharacterDirection values.
481      * @stable ICU 2.4
482      */

483     public static final int BIDI_CLASS = 0x1000;
484
485     /**
486      * First constant for enumerated/integer Unicode properties.
487      * @stable ICU 2.4
488      */

489     public static final int INT_START = BIDI_CLASS;
490
491     /**
492      * Enumerated property Block.
493      * Same as UCharacter.UnicodeBlock.of(int), returns UCharacter.UnicodeBlock
494      * values.
495      * @stable ICU 2.4
496      */

497     public static final int BLOCK = 0x1001;
498
499     /**
500      * Enumerated property Canonical_Combining_Class.
501      * Same as UCharacter.getCombiningClass(int), returns 8-bit numeric values.
502      * @stable ICU 2.4
503      */

504     public static final int CANONICAL_COMBINING_CLASS = 0x1002;
505
506     /**
507      * Enumerated property Decomposition_Type.
508      * Returns UCharacter.DecompositionType values.
509      * @stable ICU 2.4
510      */

511     public static final int DECOMPOSITION_TYPE = 0x1003;
512
513     /**
514      * Enumerated property East_Asian_Width.
515      * See http://www.unicode.org/reports/tr11/
516      * Returns UCharacter.EastAsianWidth values.
517      * @stable ICU 2.4
518      */

519     public static final int EAST_ASIAN_WIDTH = 0x1004;
520
521     /**
522      * Enumerated property General_Category.
523      * Same as UCharacter.getType(int), returns UCharacterCategory values.
524      * @stable ICU 2.4
525      */

526     public static final int GENERAL_CATEGORY = 0x1005;
527
528     /**
529      * Enumerated property Joining_Group.
530      * Returns UCharacter.JoiningGroup values.
531      * @stable ICU 2.4
532      */

533     public static final int JOINING_GROUP = 0x1006;
534
535     /**
536      * Enumerated property Joining_Type.
537      * Returns UCharacter.JoiningType values.
538      * @stable ICU 2.4
539      */

540     public static final int JOINING_TYPE = 0x1007;
541
542     /**
543      * Enumerated property Line_Break.
544      * Returns UCharacter.LineBreak values.
545      * @stable ICU 2.4
546      */

547     public static final int LINE_BREAK = 0x1008;
548
549     /**
550      * Enumerated property Numeric_Type.
551      * Returns UCharacter.NumericType values.
552      * @stable ICU 2.4
553      */

554     public static final int NUMERIC_TYPE = 0x1009;
555
556     /**
557      * Enumerated property Script.
558      * Same as UScript.getScript(int), returns UScript values.
559      * @stable ICU 2.4
560      */

561     public static final int SCRIPT = 0x100A;
562     
563     /**
564      * Enumerated property Hangul_Syllable_Type, new in Unicode 4.
565      * Returns HangulSyllableType values.
566      * @stable ICU 2.6
567      */

568     public static final int HANGUL_SYLLABLE_TYPE = 0x100B;
569
570     /**
571      * Enumerated property NFD_Quick_Check.
572      * Returns numeric values compatible with Normalizer.QuickCheckResult.
573      * @stable ICU 3.0
574      */

575     public static final int NFD_QUICK_CHECK = 0x100C;
576
577     /**
578      * Enumerated property NFKD_Quick_Check.
579      * Returns numeric values compatible with Normalizer.QuickCheckResult.
580      * @stable ICU 3.0
581      */

582     public static final int NFKD_QUICK_CHECK = 0x100D;
583
584     /**
585      * Enumerated property NFC_Quick_Check.
586      * Returns numeric values compatible with Normalizer.QuickCheckResult.
587      * @stable ICU 3.0
588      */

589     public static final int NFC_QUICK_CHECK = 0x100E;
590
591     /**
592      * Enumerated property NFKC_Quick_Check.
593      * Returns numeric values compatible with Normalizer.QuickCheckResult.
594      * @stable ICU 3.0
595      */

596     public static final int NFKC_QUICK_CHECK = 0x100F;
597
598     /**
599      * Enumerated property Lead_Canonical_Combining_Class.
600      * ICU-specific property for the ccc of the first code point
601      * of the decomposition, or lccc(c)=ccc(NFD(c)[0]).
602      * Useful for checking for canonically ordered text;
603      * see Normalizer.FCD and http://www.unicode.org/notes/tn5/#FCD .
604      * Returns 8-bit numeric values like CANONICAL_COMBINING_CLASS.
605      * @stable ICU 3.0
606      */

607     public static final int LEAD_CANONICAL_COMBINING_CLASS = 0x1010;
608
609     /**
610      * Enumerated property Trail_Canonical_Combining_Class.
611      * ICU-specific property for the ccc of the last code point
612      * of the decomposition, or lccc(c)=ccc(NFD(c)[last]).
613      * Useful for checking for canonically ordered text;
614      * see Normalizer.FCD and http://www.unicode.org/notes/tn5/#FCD .
615      * Returns 8-bit numeric values like CANONICAL_COMBINING_CLASS.
616      * @stable ICU 3.0
617      */

618     public static final int TRAIL_CANONICAL_COMBINING_CLASS = 0x1011;
619
620     /**
621      * Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1).
622      * Used in UAX #29: Text Boundaries
623      * (http://www.unicode.org/reports/tr29/)
624      * Returns UGraphemeClusterBreak values.
625      * @draft ICU 3.4
626      * @provisional This API might change or be removed in a future release.
627      */

628     public static final int GRAPHEME_CLUSTER_BREAK = 0x1012;
629
630     /**
631      * Enumerated property Sentence_Break (new in Unicode 4.1).
632      * Used in UAX #29: Text Boundaries
633      * (http://www.unicode.org/reports/tr29/)
634      * Returns USentenceBreak values.
635      * @draft ICU 3.4
636      * @provisional This API might change or be removed in a future release.
637      */

638     public static final int SENTENCE_BREAK = 0x1013;
639
640     /**
641      * Enumerated property Word_Break (new in Unicode 4.1).
642      * Used in UAX #29: Text Boundaries
643      * (http://www.unicode.org/reports/tr29/)
644      * Returns UWordBreakValues values.
645      * @draft ICU 3.4
646      * @provisional This API might change or be removed in a future release.
647      */

648     public static final int WORD_BREAK = 0x1014;
649
650     /**
651      * One more than the last constant for enumerated/integer Unicode
652      * properties.
653      * @stable ICU 2.4
654      */

655     public static final int INT_LIMIT = 0x1015;
656
657     /**
658      * Bitmask property General_Category_Mask.
659      * This is the General_Category property returned as a bit mask.
660      * When used in UCharacter.getIntPropertyValue(c),
661      * returns bit masks for UCharacterCategory values where exactly one bit is set.
662      * When used with UCharacter.getPropertyValueName() and UCharacter.getPropertyValueEnum(),
663      * a multi-bit mask is used for sets of categories like "Letters".
664      * @stable ICU 2.4
665      */

666     public static final int GENERAL_CATEGORY_MASK = 0x2000;
667
668     /**
669      * First constant for bit-mask Unicode properties.
670      * @stable ICU 2.4
671      */

672     public static final int MASK_START = GENERAL_CATEGORY_MASK;
673
674     /**
675      * One more than the last constant for bit-mask Unicode properties.
676      * @stable ICU 2.4
677      */

678     public static final int MASK_LIMIT = 0x2001;
679     
680     /**
681      * Double property Numeric_Value.
682      * Corresponds to UCharacter.getUnicodeNumericValue(int).
683      * @stable ICU 2.4
684      */

685     public static final int NUMERIC_VALUE = 0x3000;
686
687     /**
688      * First constant for double Unicode properties.
689      * @stable ICU 2.4
690      */

691     public static final int DOUBLE_START = NUMERIC_VALUE;
692
693     /**
694      * One more than the last constant for double Unicode properties.
695      * @stable ICU 2.4
696      */

697     public static final int DOUBLE_LIMIT = 0x3001;
698
699     /**
700      * String property Age.
701      * Corresponds to UCharacter.getAge(int).
702      * @stable ICU 2.4
703      */

704     public static final int AGE = 0x4000;
705
706     /**
707      * First constant for string Unicode properties.
708      * @stable ICU 2.4
709      */

710     public static final int STRING_START = AGE;
711
712     /**
713      * String property Bidi_Mirroring_Glyph.
714      * Corresponds to UCharacter.getMirror(int).
715      * @stable ICU 2.4
716      */

717     public static final int BIDI_MIRRORING_GLYPH = 0x4001;
718
719     /**
720      * String property Case_Folding.
721      * Corresponds to UCharacter.foldCase(String, boolean).
722      * @stable ICU 2.4
723      */

724     public static final int CASE_FOLDING = 0x4002;
725
726     /**
727      * String property ISO_Comment.
728      * Corresponds to UCharacter.getISOComment(int).
729      * @stable ICU 2.4
730      */

731     public static final int ISO_COMMENT = 0x4003;
732
733     /**
734      * String property Lowercase_Mapping.
735      * Corresponds to UCharacter.toLowerCase(String).
736      * @stable ICU 2.4
737      */

738     public static final int LOWERCASE_MAPPING = 0x4004;
739
740     /**
741      * String property Name.
742      * Corresponds to UCharacter.getName(int).
743      * @stable ICU 2.4
744      */

745     public static final int NAME = 0x4005;
746
747     /**
748      * String property Simple_Case_Folding.
749      * Corresponds to UCharacter.foldCase(int, boolean).
750      * @stable ICU 2.4
751      */

752     public static final int SIMPLE_CASE_FOLDING = 0x4006;
753
754     /**
755      * String property Simple_Lowercase_Mapping.
756      * Corresponds to UCharacter.toLowerCase(int).
757      * @stable ICU 2.4
758      */

759     public static final int SIMPLE_LOWERCASE_MAPPING = 0x4007;
760
761     /**
762      * String property Simple_Titlecase_Mapping.
763      * Corresponds to UCharacter.toTitleCase(int).
764      * @stable ICU 2.4
765      */

766     public static final int SIMPLE_TITLECASE_MAPPING = 0x4008;
767
768     /**
769      * String property Simple_Uppercase_Mapping.
770      * Corresponds to UCharacter.toUpperCase(int).
771      * @stable ICU 2.4
772      */

773     public static final int SIMPLE_UPPERCASE_MAPPING = 0x4009;
774
775     /**
776      * String property Titlecase_Mapping.
777      * Corresponds to UCharacter.toTitleCase(String).
778      * @stable ICU 2.4
779      */

780     public static final int TITLECASE_MAPPING = 0x400A;
781
782     /**
783      * String property Unicode_1_Name.
784      * Corresponds to UCharacter.getName1_0(int).
785      * @stable ICU 2.4
786      */

787     public static final int UNICODE_1_NAME = 0x400B;
788
789     /**
790      * String property Uppercase_Mapping.
791      * Corresponds to UCharacter.toUpperCase(String).
792      * @stable ICU 2.4
793      */

794     public static final int UPPERCASE_MAPPING = 0x400C;
795
796     /**
797      * One more than the last constant for string Unicode properties.
798      * @stable ICU 2.4
799      */

800     public static final int STRING_LIMIT = 0x400D;
801
802     /**
803      * Selector constants for UCharacter.getPropertyName() and
804      * UCharacter.getPropertyValueName(). These selectors are used to
805      * choose which name is returned for a given property or value.
806      * All properties and values have a long name. Most have a short
807      * name, but some do not. Unicode allows for additional names,
808      * beyond the long and short name, which would be indicated by
809      * LONG + i, where i=1, 2,...
810      *
811      * @see UCharacter#getPropertyName
812      * @see UCharacter#getPropertyValueName
813      * @stable ICU 2.4
814      */

815     public interface NameChoice {
816         /**
817          * Selector for the abbreviated name of a property or value.
818          * Most properties and values have a short name; those that do
819          * not return null.
820          * @stable ICU 2.4
821          */

822         static final int SHORT = 0;
823
824         /**
825          * Selector for the long name of a property or value. All
826          * properties and values have a long name.
827          * @stable ICU 2.4
828          */

829         static final int LONG = 1;
830
831         /**
832          * The number of predefined property name choices. Individual
833          * properties or values may have more than COUNT aliases.
834          * @stable ICU 2.4
835          */

836         static final int COUNT = 2;
837     }
838 }
839
Popular Tags