Package org.verapdf.as
Class CharTable
- java.lang.Object
-
- org.verapdf.as.CharTable
-
public class CharTable extends Object
Class contains tools for char processing.- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field Description static byteASCII_BSstatic byteASCII_CRstatic byteASCII_FFstatic byteASCII_HTstatic byteASCII_LEFT_PARstatic byteASCII_LFstatic byteASCII_NINEstatic byteASCII_NULstatic byteASCII_RIGHT_PARstatic byteASCII_SPACEstatic byteASCII_ZERO
-
Constructor Summary
Constructors Constructor Description CharTable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisRegular(int c)Checks if given character is not a space and not a token delimiter.static booleanisSpace(int c)Checks if character is a space character.static booleanisTokenDelimiter(int c)Checks if given character is a token delimiter.
-
-
-
Field Detail
-
ASCII_NUL
public static final byte ASCII_NUL
- See Also:
- Constant Field Values
-
ASCII_BS
public static final byte ASCII_BS
- See Also:
- Constant Field Values
-
ASCII_HT
public static final byte ASCII_HT
- See Also:
- Constant Field Values
-
ASCII_LF
public static final byte ASCII_LF
- See Also:
- Constant Field Values
-
ASCII_FF
public static final byte ASCII_FF
- See Also:
- Constant Field Values
-
ASCII_CR
public static final byte ASCII_CR
- See Also:
- Constant Field Values
-
ASCII_SPACE
public static final byte ASCII_SPACE
- See Also:
- Constant Field Values
-
ASCII_ZERO
public static final byte ASCII_ZERO
- See Also:
- Constant Field Values
-
ASCII_NINE
public static final byte ASCII_NINE
- See Also:
- Constant Field Values
-
ASCII_LEFT_PAR
public static final byte ASCII_LEFT_PAR
- See Also:
- Constant Field Values
-
ASCII_RIGHT_PAR
public static final byte ASCII_RIGHT_PAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSpace
public static boolean isSpace(int c)
Checks if character is a space character.- Parameters:
c- is character to check.- Returns:
- true if c is a space character.
-
isTokenDelimiter
public static boolean isTokenDelimiter(int c)
Checks if given character is a token delimiter.- Parameters:
c- is a character to check.- Returns:
- true if c is a token delimiter.
-
isRegular
public static boolean isRegular(int c)
Checks if given character is not a space and not a token delimiter.- Parameters:
c- is a character to check.- Returns:
- true if c is a regular character.
-
-