Package com.ibm.icu.impl
Class RBBIDataWrapper.RBBIStateTable
java.lang.Object
com.ibm.icu.impl.RBBIDataWrapper.RBBIStateTable
- Enclosing class:
- RBBIDataWrapper
A RBBI State Transition table, the form of the data used at run time in Java.
These can be created from stored ICU data, or built from rules.
The structure corresponds closely to struct RBBIStateTable in ICU4C.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Char category number of the first dictionary char class, or the the largest category number + 1 if there are no dictionary categories.int
Option Flags for this state table.static int
Length in bytes of the state table header, of all the int32 fields preceding fTable in the serialized form.int
Size of run-time array required for holding look-ahead results.int
Number of states (rows) in this table.int
Length of a table row in bytes.char[]
Linear array of next state values, accessed as short[state, char_class] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) static RBBIDataWrapper.RBBIStateTable
get
(ByteBuffer bytes, int length) int
put
(DataOutputStream bytes)
-
Field Details
-
fNumStates
public int fNumStatesNumber of states (rows) in this table. -
fRowLen
public int fRowLenLength of a table row in bytes. Note mismatch with table data, which is short[]. -
fDictCategoriesStart
public int fDictCategoriesStartChar category number of the first dictionary char class, or the the largest category number + 1 if there are no dictionary categories. -
fLookAheadResultsSize
public int fLookAheadResultsSizeSize of run-time array required for holding look-ahead results. Indexed by row.fLookAhead. -
fFlags
public int fFlagsOption Flags for this state table. -
fHeaderSize
public static int fHeaderSizeLength in bytes of the state table header, of all the int32 fields preceding fTable in the serialized form. -
fTable
public char[] fTableLinear array of next state values, accessed as short[state, char_class]
-
-
Constructor Details
-
RBBIStateTable
public RBBIStateTable()
-
-
Method Details
-
get
- Throws:
IOException
-
put
- Throws:
IOException
-
equals
-