public
static
final
class
UCharacter.UnicodeBlock
extends Character.Subset
java.lang.Object | ||
↳ | java.lang.Character.Subset | |
↳ | android.icu.lang.UCharacter.UnicodeBlock |
[icu enhancement] ICU's replacement for Character.UnicodeBlock
. Methods, fields, and other functionality specific to ICU are labeled '[icu]'.
A family of character subsets representing the character blocks in the
Unicode specification, generated from Unicode Data file Blocks.txt.
Character blocks generally define characters used for a specific script
or purpose. A character is contained by at most one Unicode block.
[icu] Note: All fields named XXX_ID are specific to ICU.
Public methods | |
---|---|
static
final
UCharacter.UnicodeBlock
|
forName(String blockName)
Alternative to the |
int
|
getID()
{icu} Returns the type ID of this Unicode block |
static
UCharacter.UnicodeBlock
|
getInstance(int id)
[icu] Returns the only instance of the UnicodeBlock with the argument ID. |
static
UCharacter.UnicodeBlock
|
of(int ch)
Returns the Unicode allocation block that contains the code point, or null if the code point is not a member of a defined block. |
Inherited methods | |
---|---|
From
class
java.lang.Character.Subset
| |
From
class
java.lang.Object
|
int ALCHEMICAL_SYMBOLS_ID
Constant Value: 208 (0x000000d0)
int ALPHABETIC_PRESENTATION_FORMS_ID
Constant Value: 80 (0x00000050)
int ANATOLIAN_HIEROGLYPHS_ID
Constant Value: 254 (0x000000fe)
int ANCIENT_GREEK_MUSICAL_NOTATION_ID
Constant Value: 126 (0x0000007e)
int ANCIENT_GREEK_NUMBERS_ID
Constant Value: 127 (0x0000007f)
int ARABIC_EXTENDED_A_ID
Constant Value: 210 (0x000000d2)
int ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS_ID
Constant Value: 211 (0x000000d3)
int ARABIC_PRESENTATION_FORMS_A_ID
Constant Value: 81 (0x00000051)
int ARABIC_PRESENTATION_FORMS_B_ID
Constant Value: 85 (0x00000055)
int ARABIC_SUPPLEMENT_ID
Constant Value: 128 (0x00000080)
int BYZANTINE_MUSICAL_SYMBOLS_ID
Constant Value: 91 (0x0000005b)
int CAUCASIAN_ALBANIAN_ID
Constant Value: 222 (0x000000de)
int CHEROKEE_SUPPLEMENT_ID
Constant Value: 255 (0x000000ff)
int CJK_COMPATIBILITY_FORMS_ID
Constant Value: 83 (0x00000053)
int CJK_COMPATIBILITY_IDEOGRAPHS_ID
Constant Value: 79 (0x0000004f)
int CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT_ID
Constant Value: 95 (0x0000005f)
int CJK_RADICALS_SUPPLEMENT_ID
Constant Value: 58 (0x0000003a)
int CJK_SYMBOLS_AND_PUNCTUATION_ID
Constant Value: 61 (0x0000003d)
int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A_ID
Constant Value: 70 (0x00000046)
int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B_ID
Constant Value: 94 (0x0000005e)
int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C_ID
Constant Value: 197 (0x000000c5)
int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D_ID
Constant Value: 209 (0x000000d1)
int CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E_ID
Constant Value: 256 (0x00000100)
int CJK_UNIFIED_IDEOGRAPHS_ID
Constant Value: 71 (0x00000047)
int COMBINING_DIACRITICAL_MARKS_EXTENDED_ID
Constant Value: 224 (0x000000e0)
int COMBINING_DIACRITICAL_MARKS_ID
Constant Value: 7 (0x00000007)
int COMBINING_DIACRITICAL_MARKS_SUPPLEMENT_ID
Constant Value: 131 (0x00000083)
int COMBINING_HALF_MARKS_ID
Constant Value: 82 (0x00000052)
int COMBINING_MARKS_FOR_SYMBOLS_ID
Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols".
Constant Value: 43 (0x0000002b)
int COMMON_INDIC_NUMBER_FORMS_ID
Constant Value: 178 (0x000000b2)
int COPTIC_EPACT_NUMBERS_ID
Constant Value: 223 (0x000000df)
int COUNTING_ROD_NUMERALS_ID
Constant Value: 154 (0x0000009a)
int CUNEIFORM_NUMBERS_AND_PUNCTUATION_ID
Constant Value: 153 (0x00000099)
int CYPRIOT_SYLLABARY_ID
Constant Value: 123 (0x0000007b)
int CYRILLIC_EXTENDED_A_ID
Constant Value: 158 (0x0000009e)
int CYRILLIC_EXTENDED_B_ID
Constant Value: 160 (0x000000a0)
int CYRILLIC_SUPPLEMENTARY_ID
Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
Constant Value: 97 (0x00000061)
int CYRILLIC_SUPPLEMENT_ID
Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
Constant Value: 97 (0x00000061)
int DEVANAGARI_EXTENDED_ID
Constant Value: 179 (0x000000b3)
int EARLY_DYNASTIC_CUNEIFORM_ID
Constant Value: 257 (0x00000101)
int EGYPTIAN_HIEROGLYPHS_ID
Constant Value: 194 (0x000000c2)
int ENCLOSED_ALPHANUMERICS_ID
Constant Value: 51 (0x00000033)
int ENCLOSED_ALPHANUMERIC_SUPPLEMENT_ID
Constant Value: 195 (0x000000c3)
int ENCLOSED_CJK_LETTERS_AND_MONTHS_ID
Constant Value: 68 (0x00000044)
int ENCLOSED_IDEOGRAPHIC_SUPPLEMENT_ID
Constant Value: 196 (0x000000c4)
int ETHIOPIC_EXTENDED_A_ID
Constant Value: 200 (0x000000c8)
int ETHIOPIC_EXTENDED_ID
Constant Value: 133 (0x00000085)
int ETHIOPIC_SUPPLEMENT_ID
Constant Value: 134 (0x00000086)
int GENERAL_PUNCTUATION_ID
Constant Value: 40 (0x00000028)
int GEOMETRIC_SHAPES_EXTENDED_ID
Constant Value: 227 (0x000000e3)
int GEORGIAN_SUPPLEMENT_ID
Constant Value: 135 (0x00000087)
int GREEK_ID
Unicode 3.2 renames this block to "Greek and Coptic".
Constant Value: 8 (0x00000008)
int HALFWIDTH_AND_FULLWIDTH_FORMS_ID
Constant Value: 87 (0x00000057)
int HANGUL_COMPATIBILITY_JAMO_ID
Constant Value: 65 (0x00000041)
int HANGUL_JAMO_EXTENDED_A_ID
Constant Value: 180 (0x000000b4)
int HANGUL_JAMO_EXTENDED_B_ID
Constant Value: 185 (0x000000b9)
int HIGH_PRIVATE_USE_SURROGATES_ID
Constant Value: 76 (0x0000004c)
int IDEOGRAPHIC_DESCRIPTION_CHARACTERS_ID
Constant Value: 60 (0x0000003c)
int INSCRIPTIONAL_PAHLAVI_ID
Constant Value: 190 (0x000000be)
int INSCRIPTIONAL_PARTHIAN_ID
Constant Value: 189 (0x000000bd)
int KATAKANA_PHONETIC_EXTENSIONS_ID
Constant Value: 107 (0x0000006b)
int LATIN_1_SUPPLEMENT_ID
Constant Value: 2 (0x00000002)
int LATIN_EXTENDED_ADDITIONAL_ID
Constant Value: 38 (0x00000026)
int LETTERLIKE_SYMBOLS_ID
Constant Value: 44 (0x0000002c)
int LINEAR_B_IDEOGRAMS_ID
Constant Value: 118 (0x00000076)
int LINEAR_B_SYLLABARY_ID
Constant Value: 117 (0x00000075)
int MATHEMATICAL_ALPHANUMERIC_SYMBOLS_ID
Constant Value: 93 (0x0000005d)
int MATHEMATICAL_OPERATORS_ID
Constant Value: 47 (0x0000002f)
int MEETEI_MAYEK_EXTENSIONS_ID
Constant Value: 213 (0x000000d5)
int MEROITIC_HIEROGLYPHS_ID
Constant Value: 215 (0x000000d7)
int MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A_ID
Constant Value: 102 (0x00000066)
int MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B_ID
Constant Value: 105 (0x00000069)
int MISCELLANEOUS_SYMBOLS_AND_ARROWS_ID
Constant Value: 115 (0x00000073)
int MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS_ID
Constant Value: 205 (0x000000cd)
int MISCELLANEOUS_SYMBOLS_ID
Constant Value: 55 (0x00000037)
int MISCELLANEOUS_TECHNICAL_ID
Constant Value: 48 (0x00000030)
int MODIFIER_TONE_LETTERS_ID
Constant Value: 138 (0x0000008a)
int MYANMAR_EXTENDED_A_ID
Constant Value: 182 (0x000000b6)
int MYANMAR_EXTENDED_B_ID
Constant Value: 238 (0x000000ee)
int OLD_NORTH_ARABIAN_ID
Constant Value: 240 (0x000000f0)
int OLD_SOUTH_ARABIAN_ID
Constant Value: 187 (0x000000bb)
int OPTICAL_CHARACTER_RECOGNITION_ID
Constant Value: 50 (0x00000032)
int ORNAMENTAL_DINGBATS_ID
Constant Value: 242 (0x000000f2)
int PHONETIC_EXTENSIONS_ID
Constant Value: 114 (0x00000072)
int PHONETIC_EXTENSIONS_SUPPLEMENT_ID
Constant Value: 141 (0x0000008d)
int PRIVATE_USE_AREA_ID
Same as public static final int PRIVATE_USE. Until Unicode 3.1.1; the corresponding block name was "Private Use"; and multiple code point ranges had this block. Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and adds separate blocks for the supplementary PUAs.
Constant Value: 78 (0x0000004e)
int PRIVATE_USE_ID
Same as public static final int PRIVATE_USE_AREA. Until Unicode 3.1.1; the corresponding block name was "Private Use"; and multiple code point ranges had this block. Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and adds separate blocks for the supplementary PUAs.
Constant Value: 78 (0x0000004e)
int RUMI_NUMERAL_SYMBOLS_ID
Constant Value: 192 (0x000000c0)
int SHORTHAND_FORMAT_CONTROLS_ID
Constant Value: 247 (0x000000f7)
int SINHALA_ARCHAIC_NUMBERS_ID
Constant Value: 249 (0x000000f9)
int SMALL_FORM_VARIANTS_ID
Constant Value: 84 (0x00000054)
int SPACING_MODIFIER_LETTERS_ID
Constant Value: 6 (0x00000006)
int SUNDANESE_SUPPLEMENT_ID
Constant Value: 219 (0x000000db)
int SUPERSCRIPTS_AND_SUBSCRIPTS_ID
Constant Value: 41 (0x00000029)
int SUPPLEMENTAL_ARROWS_A_ID
Constant Value: 103 (0x00000067)
int SUPPLEMENTAL_ARROWS_B_ID
Constant Value: 104 (0x00000068)
int SUPPLEMENTAL_ARROWS_C_ID
Constant Value: 250 (0x000000fa)
int SUPPLEMENTAL_MATHEMATICAL_OPERATORS_ID
Constant Value: 106 (0x0000006a)
int SUPPLEMENTAL_PUNCTUATION_ID
Constant Value: 142 (0x0000008e)
int SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS_ID
Constant Value: 261 (0x00000105)
int SUPPLEMENTARY_PRIVATE_USE_AREA_A_ID
Constant Value: 109 (0x0000006d)
int SUPPLEMENTARY_PRIVATE_USE_AREA_B_ID
Constant Value: 110 (0x0000006e)
int SUTTON_SIGNWRITING_ID
Constant Value: 262 (0x00000106)
int TAI_XUAN_JING_SYMBOLS_ID
Constant Value: 124 (0x0000007c)
int TRANSPORT_AND_MAP_SYMBOLS_ID
Constant Value: 207 (0x000000cf)
int UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_ID
Constant Value: 173 (0x000000ad)
int UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_ID
Constant Value: 33 (0x00000021)
int VARIATION_SELECTORS_ID
Constant Value: 108 (0x0000006c)
int VARIATION_SELECTORS_SUPPLEMENT_ID
Constant Value: 125 (0x0000007d)
int YIJING_HEXAGRAM_SYMBOLS_ID
Constant Value: 116 (0x00000074)
UCharacter.UnicodeBlock ALPHABETIC_PRESENTATION_FORMS
UCharacter.UnicodeBlock ANCIENT_GREEK_MUSICAL_NOTATION
UCharacter.UnicodeBlock ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS
UCharacter.UnicodeBlock ARABIC_PRESENTATION_FORMS_A
UCharacter.UnicodeBlock ARABIC_PRESENTATION_FORMS_B
UCharacter.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS
UCharacter.UnicodeBlock CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT
UCharacter.UnicodeBlock CJK_SYMBOLS_AND_PUNCTUATION
UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B
UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C
UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D
UCharacter.UnicodeBlock CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E
UCharacter.UnicodeBlock COMBINING_DIACRITICAL_MARKS
UCharacter.UnicodeBlock COMBINING_DIACRITICAL_MARKS_EXTENDED
UCharacter.UnicodeBlock COMBINING_DIACRITICAL_MARKS_SUPPLEMENT
UCharacter.UnicodeBlock COMBINING_MARKS_FOR_SYMBOLS
Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols".
UCharacter.UnicodeBlock CUNEIFORM_NUMBERS_AND_PUNCTUATION
UCharacter.UnicodeBlock CYRILLIC_SUPPLEMENT
Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
UCharacter.UnicodeBlock CYRILLIC_SUPPLEMENTARY
Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
UCharacter.UnicodeBlock ENCLOSED_ALPHANUMERIC_SUPPLEMENT
UCharacter.UnicodeBlock ENCLOSED_CJK_LETTERS_AND_MONTHS
UCharacter.UnicodeBlock ENCLOSED_IDEOGRAPHIC_SUPPLEMENT
UCharacter.UnicodeBlock GREEK
Unicode 3.2 renames this block to "Greek and Coptic".
UCharacter.UnicodeBlock HALFWIDTH_AND_FULLWIDTH_FORMS
UCharacter.UnicodeBlock HIGH_PRIVATE_USE_SURROGATES
UCharacter.UnicodeBlock IDEOGRAPHIC_DESCRIPTION_CHARACTERS
UCharacter.UnicodeBlock KATAKANA_PHONETIC_EXTENSIONS
UCharacter.UnicodeBlock MATHEMATICAL_ALPHANUMERIC_SYMBOLS
UCharacter.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A
UCharacter.UnicodeBlock MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B
UCharacter.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_ARROWS
UCharacter.UnicodeBlock MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS
UCharacter.UnicodeBlock OPTICAL_CHARACTER_RECOGNITION
UCharacter.UnicodeBlock PHONETIC_EXTENSIONS_SUPPLEMENT
UCharacter.UnicodeBlock PRIVATE_USE
Same as public static final int PRIVATE_USE_AREA. Until Unicode 3.1.1; the corresponding block name was "Private Use"; and multiple code point ranges had this block. Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and adds separate blocks for the supplementary PUAs.
UCharacter.UnicodeBlock PRIVATE_USE_AREA
Same as public static final int PRIVATE_USE. Until Unicode 3.1.1; the corresponding block name was "Private Use"; and multiple code point ranges had this block. Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and adds separate blocks for the supplementary PUAs.
UCharacter.UnicodeBlock SUPERSCRIPTS_AND_SUBSCRIPTS
UCharacter.UnicodeBlock SUPPLEMENTAL_MATHEMATICAL_OPERATORS
UCharacter.UnicodeBlock SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS
UCharacter.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_A
UCharacter.UnicodeBlock SUPPLEMENTARY_PRIVATE_USE_AREA_B
UCharacter.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS
UCharacter.UnicodeBlock UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED
UCharacter.UnicodeBlock VARIATION_SELECTORS_SUPPLEMENT
UCharacter.UnicodeBlock forName (String blockName)
Alternative to the forName(String)
method.
Returns the Unicode block with the given name. [icu] Note: Unlike
forName(String)
, this only matches
against the official UCD name and the Java block name
(ignoring case).
Parameters | |
---|---|
blockName |
String :
the name of the block to match |
Returns | |
---|---|
UCharacter.UnicodeBlock |
the UnicodeBlock with that name |
Throws | |
---|---|
IllegalArgumentException |
if the blockName could not be matched |
int getID ()
{icu} Returns the type ID of this Unicode block
Returns | |
---|---|
int |
integer type ID of this Unicode block |
UCharacter.UnicodeBlock getInstance (int id)
[icu] Returns the only instance of the UnicodeBlock with the argument ID. If no such ID exists, a INVALID_CODE UnicodeBlock will be returned.
Parameters | |
---|---|
id |
int :
UnicodeBlock ID |
Returns | |
---|---|
UCharacter.UnicodeBlock |
the only instance of the UnicodeBlock with the argument ID if it exists, otherwise a INVALID_CODE UnicodeBlock will be returned. |
UCharacter.UnicodeBlock of (int ch)
Returns the Unicode allocation block that contains the code point, or null if the code point is not a member of a defined block.
Parameters | |
---|---|
ch |
int :
code point to be tested |
Returns | |
---|---|
UCharacter.UnicodeBlock |
the Unicode allocation block that contains the code point |