public final class Chars extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isAlpha(byte c)
Test if the current byte is an Alpha character :
<alpha> ::= [0x41-0x5A] | [0x61-0x7A]
|
static boolean |
isAlpha(char c)
Test if the current character is an Alpha character :
<alpha> ::= [0x41-0x5A] | [0x61-0x7A]
|
static boolean |
isAlphaASCII(byte[] bytes,
int index)
Test if the current character is an Alpha character : <alpha> ::=
[0x41-0x5A] | [0x61-0x7A]
|
static boolean |
isAlphaASCII(char[] chars,
int index)
Test if the current character is an Alpha character : <alpha> ::=
[0x41-0x5A] | [0x61-0x7A]
|
static boolean |
isAlphaASCII(String string,
int index)
Test if the current character is an Alpha character : <alpha> ::=
[0x41-0x5A] | [0x61-0x7A]
|
static boolean |
isAlphaDigit(String string,
int index)
Check if the current character is an 7 bits ASCII CHAR (between 0 and
127).
|
static boolean |
isAlphaDigitMinus(byte[] bytes,
int index)
Check if the current character is an 7 bits ASCII CHAR (between 0 and
127).
|
static boolean |
isAlphaDigitMinus(char c)
Check if the current character is an 7 bits ASCII CHAR (between 0 and
127).
|
static boolean |
isAlphaDigitMinus(char[] chars,
int index)
Check if the current character is an 7 bits ASCII CHAR (between 0 and
127).
|
static boolean |
isAlphaDigitMinus(String string,
int index)
Check if the current character is an 7 bits ASCII CHAR (between 0 and
127).
|
static boolean |
isAlphaLowercaseASCII(String string,
int index)
Test if the current character is a lowercased Alpha character :
<alpha> ::= [0x61-0x7A] |
static boolean |
isAlphaUppercaseASCII(String string,
int index)
Test if the current character is a uppercased Alpha character :
<alpha> ::= [0x61-0x7A] |
static boolean |
isBit(String string,
int index)
Test if the current character is a bit, ie 0 or 1.
|
static boolean |
isCharASCII(char[] chars,
int index,
char car)
Test if the current character is equal to a specific character.
|
static boolean |
isCharASCII(String string,
int index,
char car)
Test if the current character is equal to a specific character.
|
static boolean |
isDigit(byte car)
Test if the current byte is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isDigit(byte[] bytes)
Test if the current character is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isDigit(byte[] bytes,
int index)
Test if the current character is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isDigit(char car)
Test if the current character is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isDigit(char[] chars)
Test if the current character is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isDigit(char[] chars,
int index)
Test if the current character is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isDigit(String string,
int index)
Test if the current character is a digit <digit> ::= '0' | '1' | '2' |
'3' | '4' | '5' | '6' | '7' | '8' | '9'
|
static boolean |
isHex(byte b)
Check if the current byte is an Hex Char
<hex> ::= [0x30-0x39] | [0x41-0x46] | [0x61-0x66]
|
static boolean |
isHex(byte[] bytes,
int index)
Check if the current character is an Hex Char <hex> ::= [0x30-0x39] |
[0x41-0x46] | [0x61-0x66]
|
static boolean |
isHex(char c)
Check if the current char is an Hex Char
<hex> ::= [0x30-0x39] | [0x41-0x46] | [0x61-0x66]
|
static boolean |
isHex(char[] chars,
int index)
Check if the current character is an Hex Char <hex> ::= [0x30-0x39] |
[0x41-0x46] | [0x61-0x66]
|
static boolean |
isHex(String string,
int index)
Check if the current character is an Hex Char <hex> ::= [0x30-0x39] |
[0x41-0x46] | [0x61-0x66]
|
static boolean |
isICharASCII(byte[] bytes,
int index,
char car)
Test if the current character is equal to a specific character.
|
static boolean |
isICharASCII(String string,
int index,
char car)
Test if the current character is equal to a specific character.
|
static boolean |
isUnderscore(byte[] bytes,
int index)
Check if the current character is the ASCII character underscore 0x5F.
|
public static boolean isCharASCII(char[] chars, int index, char car)
chars
- The buffer which contains the dataindex
- Current position in the buffercar
- The character we want to compare with the current buffer positiontrue
if the current character equals the given character.public static boolean isCharASCII(String string, int index, char car)
string
- The String which contains the dataindex
- Current position in the stringcar
- The character we want to compare with the current string
positiontrue
if the current character equals the given
character.public static boolean isICharASCII(String string, int index, char car)
string
- The String which contains the dataindex
- Current position in the stringcar
- The character we want to compare with the current string
positiontrue
if the current character equals the given
character.public static boolean isICharASCII(byte[] bytes, int index, char car)
bytes
- The String which contains the dataindex
- Current position in the stringcar
- The character we want to compare with the current string
positiontrue
if the current character equals the given
character.public static boolean isAlpha(byte c)
c
- The byte to testtrue
if the byte is an Alpha
characterpublic static boolean isAlpha(char c)
c
- The char to testtrue
if the character is an Alpha
characterpublic static boolean isAlphaASCII(byte[] bytes, int index)
bytes
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is an Alpha
characterpublic static boolean isAlphaASCII(char[] chars, int index)
chars
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is an Alpha
characterpublic static boolean isAlphaASCII(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringtrue
if the current character is an Alpha
characterpublic static boolean isAlphaLowercaseASCII(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringtrue
if the current character is a lower Alpha
characterpublic static boolean isAlphaUppercaseASCII(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringtrue
if the current character is a lower Alpha
characterpublic static boolean isAlphaDigit(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringpublic static boolean isAlphaDigitMinus(byte[] bytes, int index)
bytes
- The buffer which contains the dataindex
- Current position in the bufferpublic static boolean isAlphaDigitMinus(char[] chars, int index)
chars
- The buffer which contains the dataindex
- Current position in the bufferpublic static boolean isAlphaDigitMinus(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringpublic static boolean isAlphaDigitMinus(char c)
c
- The char we want to checkpublic static boolean isBit(String string, int index)
string
- The String which contains the dataindex
- Current position in the stringtrue
if the current character is a bit (0 or 1)public static boolean isDigit(byte[] bytes)
bytes
- The buffer which contains the datatrue
if the current character is a Digitpublic static boolean isDigit(char car)
car
- the character to testtrue
if the character is a Digitpublic static boolean isDigit(byte car)
car
- the byte to testtrue
if the character is a Digitpublic static boolean isDigit(byte[] bytes, int index)
bytes
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is a Digitpublic static boolean isDigit(char[] chars, int index)
chars
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is a Digitpublic static boolean isDigit(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringtrue
if the current character is a Digitpublic static boolean isDigit(char[] chars)
chars
- The buffer which contains the datatrue
if the current character is a Digitpublic static boolean isHex(char c)
c
- The char we want to checktrue
if the current char is a Hex charpublic static boolean isHex(byte b)
b
- The byte we want to checktrue
if the current byte is a Hex bytepublic static boolean isHex(byte[] bytes, int index)
bytes
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is a Hex Charpublic static boolean isHex(char[] chars, int index)
chars
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is a Hex Charpublic static boolean isHex(String string, int index)
string
- The string which contains the dataindex
- Current position in the stringtrue
if the current character is a Hex Charpublic static boolean isUnderscore(byte[] bytes, int index)
bytes
- The buffer which contains the dataindex
- Current position in the buffertrue
if the current character is a the underscoreCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.