public class CharUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
CODE_EOT
Character code used to signal a character boundary in
inline content, such as an inline with borders and padding
or a nested block object.
|
static int |
EOT
Character class: Boundary between text runs
|
static int |
LINEFEED
Character class: Line feed
|
static char |
MISSING_IDEOGRAPH
missing ideograph
|
static char |
NBSPACE
non-breaking space
|
static int |
NONWHITESPACE
Character class: non-whitespace
|
static char |
NOT_A_CHARACTER
Unicode value indicating the the character is "not a character".
|
static char |
SOFT_HYPHEN
soft hyphen
|
static char |
SPACE
normal space
|
static int |
UCWHITESPACE
Character class: Unicode white space
|
static char |
WORD_JOINER
word joiner
|
static int |
XMLWHITESPACE
Character class: XML whitespace
|
static char |
ZERO_WIDTH_JOINER
zero-width joiner
|
static char |
ZERO_WIDTH_NOBREAK_SPACE
zero-width no-break space (= byte order mark)
|
static char |
ZERO_WIDTH_SPACE
zero-width space
|
Modifier | Constructor and Description |
---|---|
protected |
CharUtilities()
Utility class: Constructor prevents instantiating when subclassed.
|
Modifier and Type | Method and Description |
---|---|
static int |
classOf(char c)
Return the appropriate CharClass constant for the type
of the passed character.
|
static boolean |
isAdjustableSpace(char c)
Method to determine if the character is an adjustable
space.
|
static boolean |
isAlphabetic(char ch)
Indicates whether a character is classified as "Alphabetic" by the Unicode standard.
|
static boolean |
isAnySpace(char c)
Determines if the character represents any kind of space.
|
static boolean |
isBreakableSpace(char c)
Helper method to determine if the character is a
space with normal behavior.
|
static boolean |
isFixedWidthSpace(char c)
Method to determine if the character is a (breakable) fixed-width space.
|
static boolean |
isNonBreakableSpace(char c)
Method to determine if the character is a nonbreaking
space.
|
static boolean |
isZeroWidthSpace(char c)
Method to determine if the character is a zero-width space.
|
public static final char CODE_EOT
public static final int UCWHITESPACE
public static final int LINEFEED
public static final int EOT
public static final int NONWHITESPACE
public static final int XMLWHITESPACE
public static final char SPACE
public static final char NBSPACE
public static final char ZERO_WIDTH_SPACE
public static final char WORD_JOINER
public static final char ZERO_WIDTH_JOINER
public static final char ZERO_WIDTH_NOBREAK_SPACE
public static final char SOFT_HYPHEN
public static final char MISSING_IDEOGRAPH
public static final char NOT_A_CHARACTER
protected CharUtilities()
public static int classOf(char c)
c
- character to inspectpublic static boolean isBreakableSpace(char c)
c
- character to inspectpublic static boolean isZeroWidthSpace(char c)
c
- the character to checkpublic static boolean isFixedWidthSpace(char c)
c
- the character to checkpublic static boolean isNonBreakableSpace(char c)
c
- character to checkpublic static boolean isAdjustableSpace(char c)
c
- character to checkpublic static boolean isAnySpace(char c)
c
- character to checkpublic static boolean isAlphabetic(char ch)
ch
- the characterCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.