Methods Summary |
---|
static int | getType(int ch)
return ((ch & 0xFFFFFF80) == 0 ? ctype[ch] : 0);
|
static boolean | isAlnum(int ch)
return isType(ch, ALNUM);
|
static boolean | isAlpha(int ch)
return isType(ch, ALPHA);
|
static boolean | isAscii(int ch)
return ((ch & 0xFFFFFF80) == 0);
|
static boolean | isCntrl(int ch)
return isType(ch, CNTRL);
|
static boolean | isDigit(int ch)
return ((ch-'0")|('9"-ch)) >= 0;
|
static boolean | isGraph(int ch)
return isType(ch, GRAPH);
|
static boolean | isHexDigit(int ch)
return isType(ch, HEX);
|
static boolean | isLower(int ch)
return ((ch-'a")|('z"-ch)) >= 0;
|
static boolean | isOctDigit(int ch)
return ((ch-'0")|('7"-ch)) >= 0;
|
static boolean | isPrint(int ch)
return ((ch-0x20)|(0x7E-ch)) >= 0;
|
static boolean | isPunct(int ch)
return isType(ch, PUNCT);
|
static boolean | isSpace(int ch)
return isType(ch, SPACE);
|
static boolean | isType(int ch, int type)
return (getType(ch) & type) != 0;
|
static boolean | isUpper(int ch)
return ((ch-'A")|('Z"-ch)) >= 0;
|
static boolean | isWord(int ch)
return isType(ch, WORD);
|
static int | toDigit(int ch)
return (ctype[ch & 0x7F] & 0x3F);
|
static int | toLower(int ch)
return isUpper(ch) ? (ch + 0x20) : ch;
|
static int | toUpper(int ch)
return isLower(ch) ? (ch - 0x20) : ch;
|