luxor.css
Class CssCharUtils

java.lang.Object
  |
  +--luxor.css.CssCharUtils

public class CssCharUtils
extends java.lang.Object

A collection of utility functions for a CSS scanner.


Field Summary
protected static int[] HEXADECIMAL
          The set of the valid hexadecimal characters.
protected static int[] IDENTIFIER_START
          The set of the valid identifier start characters.
protected static int[] NAME
          The set of the valid name characters.
protected static int[] STRING
          The set of the valid string characters.
protected static int[] URI
          The set of the valid uri characters.
 
Constructor Summary
protected CssCharUtils()
          This class does not need to be instantiated.
 
Method Summary
static boolean isHexadecimal(char c)
          Tests whether the given character is a valid hexadecimal character.
static boolean isIdentifierStart(char c)
          Tests whether the given character is a valid identifier start character.
static boolean isName(char c)
          Tests whether the given character is a valid name character.
static boolean isSpace(char c)
          Tests whether the given character is a valid space.
static boolean isString(char c)
          Tests whether the given character is a valid string character.
static boolean isUri(char c)
          Tests whether the given character is a valid URI character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEXADECIMAL

protected static final int[] HEXADECIMAL
The set of the valid hexadecimal characters.


IDENTIFIER_START

protected static final int[] IDENTIFIER_START
The set of the valid identifier start characters.


NAME

protected static final int[] NAME
The set of the valid name characters.


STRING

protected static final int[] STRING
The set of the valid string characters.


URI

protected static final int[] URI
The set of the valid uri characters.

Constructor Detail

CssCharUtils

protected CssCharUtils()
This class does not need to be instantiated.

Method Detail

isHexadecimal

public static boolean isHexadecimal(char c)
Tests whether the given character is a valid hexadecimal character.


isIdentifierStart

public static boolean isIdentifierStart(char c)
Tests whether the given character is a valid identifier start character.


isName

public static boolean isName(char c)
Tests whether the given character is a valid name character.


isSpace

public static boolean isSpace(char c)
Tests whether the given character is a valid space.


isString

public static boolean isString(char c)
Tests whether the given character is a valid string character.


isUri

public static boolean isUri(char c)
Tests whether the given character is a valid URI character.



Copyright © 2001, 2002 Gerald Bauer. All Rights Reserved. Hosted by SourceForge Logo