java.util.regex
Class ASCII
java.lang.Object
java.util.regex.ASCII
- final class ASCII
- extends Object
Utility class that implements the standard C ctype functionality.
- Author:
- Hong Zhang
Field Summary |
(package private) static int |
ALNUM
|
(package private) static int |
ALPHA
|
(package private) static int |
ASCII
|
(package private) static int |
BLANK
|
(package private) static int |
CNTRL
|
private static int[] |
ctype
|
(package private) static int |
DIGIT
|
(package private) static int |
GRAPH
|
(package private) static int |
HEX
|
(package private) static int |
LOWER
|
(package private) static int |
PUNCT
|
(package private) static int |
SPACE
|
(package private) static int |
UNDER
|
(package private) static int |
UPPER
|
(package private) static int |
WORD
|
(package private) static int |
XDIGIT
|
Constructor Summary |
(package private) |
ASCII()
|
Method Summary |
(package private) static int |
getType(int ch)
|
(package private) static boolean |
isAlnum(int ch)
|
(package private) static boolean |
isAlpha(int ch)
|
(package private) static boolean |
isAscii(int ch)
|
(package private) static boolean |
isCntrl(int ch)
|
(package private) static boolean |
isDigit(int ch)
|
(package private) static boolean |
isGraph(int ch)
|
(package private) static boolean |
isHexDigit(int ch)
|
(package private) static boolean |
isLower(int ch)
|
(package private) static boolean |
isOctDigit(int ch)
|
(package private) static boolean |
isPrint(int ch)
|
(package private) static boolean |
isPunct(int ch)
|
(package private) static boolean |
isSpace(int ch)
|
(package private) static boolean |
isType(int ch,
int type)
|
(package private) static boolean |
isUpper(int ch)
|
(package private) static boolean |
isWord(int ch)
|
(package private) static int |
toDigit(int ch)
|
(package private) static int |
toLower(int ch)
|
(package private) static int |
toUpper(int ch)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPPER
static final int UPPER
- See Also:
- Constant Field Values
LOWER
static final int LOWER
- See Also:
- Constant Field Values
DIGIT
static final int DIGIT
- See Also:
- Constant Field Values
SPACE
static final int SPACE
- See Also:
- Constant Field Values
PUNCT
static final int PUNCT
- See Also:
- Constant Field Values
CNTRL
static final int CNTRL
- See Also:
- Constant Field Values
BLANK
static final int BLANK
- See Also:
- Constant Field Values
HEX
static final int HEX
- See Also:
- Constant Field Values
UNDER
static final int UNDER
- See Also:
- Constant Field Values
ASCII
static final int ASCII
- See Also:
- Constant Field Values
ALPHA
static final int ALPHA
- See Also:
- Constant Field Values
ALNUM
static final int ALNUM
- See Also:
- Constant Field Values
GRAPH
static final int GRAPH
- See Also:
- Constant Field Values
WORD
static final int WORD
- See Also:
- Constant Field Values
XDIGIT
static final int XDIGIT
- See Also:
- Constant Field Values
ctype
private static final int[] ctype
ASCII
ASCII()
getType
static int getType(int ch)
isType
static boolean isType(int ch,
int type)
isAscii
static boolean isAscii(int ch)
isAlpha
static boolean isAlpha(int ch)
isDigit
static boolean isDigit(int ch)
isAlnum
static boolean isAlnum(int ch)
isGraph
static boolean isGraph(int ch)
isPrint
static boolean isPrint(int ch)
isPunct
static boolean isPunct(int ch)
isSpace
static boolean isSpace(int ch)
isHexDigit
static boolean isHexDigit(int ch)
isOctDigit
static boolean isOctDigit(int ch)
isCntrl
static boolean isCntrl(int ch)
isLower
static boolean isLower(int ch)
isUpper
static boolean isUpper(int ch)
isWord
static boolean isWord(int ch)
toDigit
static int toDigit(int ch)
toLower
static int toLower(int ch)
toUpper
static int toUpper(int ch)