Class ScannerUtilities
java.lang.Object
org.apache.batik.css.parser.ScannerUtilities
A collection of utility functions for a CSS scanner.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int[]The set of the valid hexadecimal characters.protected static final int[]The set of the valid identifier start characters.protected static final int[]The set of the valid name characters.protected static final int[]The set of the valid string characters.protected static final int[]The set of the valid uri characters. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThis class does not need to be instantiated. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCSSHexadecimalCharacter(char c) Tests whether the given character is a valid hexadecimal character.static booleanisCSSIdentifierStartCharacter(char c) Tests whether the given character is a valid identifier start character.static booleanisCSSNameCharacter(char c) Tests whether the given character is a valid name character.static booleanisCSSSpace(char c) Tests whether the given character is a valid space.static booleanisCSSStringCharacter(char c) Tests whether the given character is a valid string character.static booleanisCSSURICharacter(char c) Tests whether the given character is a valid URI character.
-
Field Details
-
IDENTIFIER_START
protected static final int[] IDENTIFIER_STARTThe set of the valid identifier start characters. -
NAME
protected static final int[] NAMEThe set of the valid name characters. -
HEXADECIMAL
protected static final int[] HEXADECIMALThe set of the valid hexadecimal characters. -
STRING
protected static final int[] STRINGThe set of the valid string characters. -
URI
protected static final int[] URIThe set of the valid uri characters.
-
-
Constructor Details
-
ScannerUtilities
protected ScannerUtilities()This class does not need to be instantiated.
-
-
Method Details
-
isCSSSpace
public static boolean isCSSSpace(char c) Tests whether the given character is a valid space. -
isCSSIdentifierStartCharacter
public static boolean isCSSIdentifierStartCharacter(char c) Tests whether the given character is a valid identifier start character. -
isCSSNameCharacter
public static boolean isCSSNameCharacter(char c) Tests whether the given character is a valid name character. -
isCSSHexadecimalCharacter
public static boolean isCSSHexadecimalCharacter(char c) Tests whether the given character is a valid hexadecimal character. -
isCSSStringCharacter
public static boolean isCSSStringCharacter(char c) Tests whether the given character is a valid string character. -
isCSSURICharacter
public static boolean isCSSURICharacter(char c) Tests whether the given character is a valid URI character.
-