Class CatcodeTable
java.lang.Object
org.openoffice.da.comp.w2lcommon.tex.tokenizer.CatcodeTable
This class maintains a mapping from characters to catcodes.
In this implementation, non-ascii characters always has the
category Catcode.OTHER.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newCatcodeTable
, defining catcodes as by INITeX plus the additional catcodes defined by plain TeX -
Method Summary
-
Constructor Details
-
CatcodeTable
public CatcodeTable()Construct a newCatcodeTable
, defining catcodes as by INITeX plus the additional catcodes defined by plain TeX
-
-
Method Details
-
set
Set the catcode of a character. The request is silently ignored for all characters outside the ASCII character set- Parameters:
c
- the charactercc
- the desired catcode
-
get
Get the catcode of a character. Characters outside the ASCII character set always have the catcode Catcode.OTHER- Parameters:
c
- the character- Returns:
- the current catcode
-