org.opencores.JLex
Class CUtility

java.lang.Object
  |
  +--org.opencores.JLex.CUtility

class CUtility
extends java.lang.Object

Class: Utility


Field Summary
(package private) static boolean DEBUG
          Constants
(package private) static boolean DESCENT_DEBUG
           
(package private) static boolean DO_DEBUG
           
(package private) static boolean DUMP_DEBUG
           
(package private) static boolean FOODEBUG
           
(package private) static int INT_MAX
          Constants: Integer Bounds
(package private) static int MAX_EIGHT_BIT
           
(package private) static int MAX_SEVEN_BIT
           
(package private) static int MAX_SIXTEEN_BIT
           
(package private) static boolean OLD_DEBUG
           
(package private) static boolean OLD_DUMP_DEBUG
           
(package private) static boolean SLOW_DEBUG
           
 
Constructor Summary
(package private) CUtility()
           
 
Method Summary
(package private) static void assert(boolean expr)
          Function: assert Description: Debugging routine.
(package private) static int bytencmp(byte[] a, int a_first, byte[] b, int b_first, int n)
          Function: bytencmp Description: Compares up to n elements of byte array a[] against byte array b[].
(package private) static int charncmp(char[] a, int a_first, char[] b, int b_first, int n)
          Function: charncmp
(package private) static byte[] doubleSize(byte[] oldBuffer)
          Function: doubleSize
(package private) static char[] doubleSize(char[] oldBuffer)
          Function: doubleSize
(package private) static void enter(java.lang.String descent, char lexeme, int token)
          Function: enter Description: Debugging routine.
(package private) static char hex2bin(char c)
          Function: hex2bin
(package private) static boolean ishexdigit(char c)
          Function: ishexdigit
(package private) static boolean isnewline(char c)
          Function: isnewline
(package private) static boolean isoctdigit(char c)
          Function: isoctdigit
(package private) static boolean isspace(char c)
          Function: isspace
(package private) static void leave(java.lang.String descent, char lexeme, int token)
          Function: leave Description: Debugging routine.
(package private) static char oct2bin(char c)
          Function: oct2bin
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DEBUG

static final boolean DEBUG
Constants

SLOW_DEBUG

static final boolean SLOW_DEBUG

DUMP_DEBUG

static final boolean DUMP_DEBUG

DESCENT_DEBUG

static final boolean DESCENT_DEBUG

OLD_DEBUG

static final boolean OLD_DEBUG

OLD_DUMP_DEBUG

static final boolean OLD_DUMP_DEBUG

FOODEBUG

static final boolean FOODEBUG

DO_DEBUG

static final boolean DO_DEBUG

INT_MAX

static final int INT_MAX
Constants: Integer Bounds

MAX_SEVEN_BIT

static final int MAX_SEVEN_BIT

MAX_EIGHT_BIT

static final int MAX_EIGHT_BIT

MAX_SIXTEEN_BIT

static final int MAX_SIXTEEN_BIT
Constructor Detail

CUtility

CUtility()
Method Detail

enter

static void enter(java.lang.String descent,
                  char lexeme,
                  int token)
Function: enter Description: Debugging routine.

leave

static void leave(java.lang.String descent,
                  char lexeme,
                  int token)
Function: leave Description: Debugging routine.

assert

static void assert(boolean expr)
Function: assert Description: Debugging routine.

doubleSize

static char[] doubleSize(char[] oldBuffer)
Function: doubleSize

doubleSize

static byte[] doubleSize(byte[] oldBuffer)
Function: doubleSize

hex2bin

static char hex2bin(char c)
Function: hex2bin

ishexdigit

static boolean ishexdigit(char c)
Function: ishexdigit

oct2bin

static char oct2bin(char c)
Function: oct2bin

isoctdigit

static boolean isoctdigit(char c)
Function: isoctdigit

isspace

static boolean isspace(char c)
Function: isspace

isnewline

static boolean isnewline(char c)
Function: isnewline

bytencmp

static int bytencmp(byte[] a,
                    int a_first,
                    byte[] b,
                    int b_first,
                    int n)
Function: bytencmp Description: Compares up to n elements of byte array a[] against byte array b[]. The first byte comparison is made between a[a_first] and b[b_first]. Comparisons continue until the null terminating byte '\0' is reached or until n bytes are compared. Return Value: Returns 0 if arrays are the same up to and including the null terminating byte or up to and including the first n bytes, whichever comes first.

charncmp

static int charncmp(char[] a,
                    int a_first,
                    char[] b,
                    int b_first,
                    int n)
Function: charncmp