|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.util.Chars
public final class Chars
Various Character methods are kept here.
| Field Summary | |
|---|---|
static boolean[] |
ALPHA
<alpha> ::= [0x41-0x5A] | [0x61-0x7A] |
static boolean[] |
ALPHA_DIGIT
<alpha-digit> | <digit> |
static boolean[] |
ALPHA_LOWER_CASE
<alpha-lower-case> ::= [0x61-0x7A] |
static boolean[] |
ALPHA_UPPER_CASE
<alpha-upper-case> ::= [0x41-0x5A] |
static boolean[] |
CHAR
<alpha> | <digit> | '-' |
static boolean[] |
DIGIT
'0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' |
static boolean[] |
HEX
<hex> ::= [0x30-0x39] | [0x41-0x46] | [0x61-0x66] |
| Constructor Summary | |
|---|---|
Chars()
|
|
| Method Summary | |
|---|---|
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[] 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)
|
static boolean |
isCharASCII(String string,
int index,
char car)
Test if the current character is equal to a specific character. |
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[] 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean[] ALPHA
public static final boolean[] ALPHA_LOWER_CASE
public static final boolean[] ALPHA_UPPER_CASE
public static final boolean[] ALPHA_DIGIT
public static final boolean[] CHAR
public static final boolean[] DIGIT
public static final boolean[] HEX
| Constructor Detail |
|---|
public Chars()
| Method Detail |
|---|
public static boolean isCharASCII(char[] chars,
int index,
char car)
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
position
true 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
position
true 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
position
true if the current character equals the given
character.public static boolean isAlpha(byte c)
c - The byte to test
true if the byte is an Alpha
characterpublic static boolean isAlpha(char c)
c - The char to test
true if the character is an Alpha
character
public static boolean isAlphaASCII(byte[] bytes,
int index)
bytes - The buffer which contains the dataindex - Current position in the buffer
true if the current character is an Alpha
character
public static boolean isAlphaASCII(char[] chars,
int index)
chars - The buffer which contains the dataindex - Current position in the buffer
true if the current character is an Alpha
character
public static boolean isAlphaASCII(String string,
int index)
string - The string which contains the dataindex - Current position in the string
true if the current character is an Alpha
character
public static boolean isAlphaLowercaseASCII(String string,
int index)
string - The string which contains the dataindex - Current position in the string
true if the current character is a lower Alpha
character
public static boolean isAlphaUppercaseASCII(String string,
int index)
string - The string which contains the dataindex - Current position in the string
true if the current character is a lower Alpha
character
public static boolean isAlphaDigit(String string,
int index)
string - The string which contains the dataindex - Current position in the string
public static boolean isAlphaDigitMinus(byte[] bytes,
int index)
bytes - The buffer which contains the dataindex - Current position in the buffer
public static boolean isAlphaDigitMinus(char[] chars,
int index)
chars - The buffer which contains the dataindex - Current position in the buffer
public static boolean isAlphaDigitMinus(String string,
int index)
string - The string which contains the dataindex - Current position in the string
public static boolean isBit(String string,
int index)
string - The String which contains the dataindex - Current position in the string
true if the current character is a bit (0 or 1)public static boolean isDigit(byte[] bytes)
bytes - The buffer which contains the data
true if the current character is a Digitpublic static boolean isDigit(char car)
car - the character to test
true if the character is a Digit
public static boolean isDigit(byte[] bytes,
int index)
bytes - The buffer which contains the dataindex - Current position in the buffer
true if the current character is a Digit
public static boolean isDigit(char[] chars,
int index)
chars - The buffer which contains the dataindex - Current position in the buffer
true if the current character is a Digit
public static boolean isDigit(String string,
int index)
string - The string which contains the dataindex - Current position in the string
true if the current character is a Digitpublic static boolean isDigit(char[] chars)
chars - The buffer which contains the data
true if the current character is a Digitpublic static boolean isHex(byte b)
b - The byte we want to check
true if the current byte is a Hex byte
public static boolean isHex(byte[] bytes,
int index)
bytes - The buffer which contains the dataindex - Current position in the buffer
true if the current character is a Hex Char
public static boolean isHex(char[] chars,
int index)
chars - The buffer which contains the dataindex - Current position in the buffer
true if the current character is a Hex Char
public static boolean isHex(String string,
int index)
string - The string which contains the dataindex - Current position in the string
true if the current character is a Hex Char
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||