Name
Character.UnicodeBlock
Synopsis
This
subclass of Character.Subset
defines a number of
constants that represent named subsets of the Unicode character set.
The subsets and their names are the character blocks defined by the
Unicode specification (see
http://www.unicode.org/). Java 1.4 and
5.0 both update this class to a new
version of the Unicode standard and define a number of new block
constants. The static method of(
)
takes a character or
int
codepoint and returns the
Character.UnicodeBlock
to which it belongs, or
null
if it is not part of any defined block. When
presented with an unknown Unicode character, this method provides a
useful way to determine what alphabet it belongs to. In Java 5.0, the
forName( )
factory method allows lookup of a UnicodeBlock
by
name.
public static final class Character.UnicodeBlock extends Character.Subset { // No Constructor // Public Constants 5.0 public static final Character.UnicodeBlock AEGEAN_NUMBERS; public static final Character.UnicodeBlock ALPHABETIC_PRESENTATION_FORMS; public static final Character.UnicodeBlock ARABIC; public static final Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_A; public static final Character.UnicodeBlock ARABIC_PRESENTATION_FORMS_B; public static final Character.UnicodeBlock ARMENIAN; public static final Character.UnicodeBlock ARROWS; public static final Character.UnicodeBlock BASIC_LATIN; public static final Character.UnicodeBlock BENGALI; public static final Character.UnicodeBlock BLOCK_ELEMENTS; public ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.