Internal class used for Rule Based Break Iterators.
This class provides access to the compiled break rule data, as it is stored in a .brk file. Refer to the file common/rbbidata.h from ICU4C for further details.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | RBBIDataWrapper.RBBIDataHeader
Data Header. |
| public static class | RBBIDataWrapper.RBBIStateTable
A RBBI State Transition table, the form of the data used at run time in Java. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACCEPTING
offset to the "accepting" field in a state table row. |
| public static final int | ACCEPTING_UNCONDITIONAL
value constant for the ACCEPTING field of a state table row. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public RBBIDataWrapper. | |
| public RBBIDataWrapper. | |
| public static final int | |
| public RBBIDataWrapper. | |
| public String | |
| public int[] | |
| public CodePointTrie | |
| private static final RBBIDataWrapper. | |
| public static final int | LOOKAHEAD
offset to the "lookahead" field in a state table row. |
| public static final int | NEXTSTATES
offset to the start of the next states array in a state table row. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | TAGSIDX
offset to the "tagIndex" field in a state table row. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public void | |
| private void | |
| private void | dumpRow(PrintStream out, RBBIDataWrapper.
Dump (for debug) a single row of an RBBI state table |
| private void | |
| public static boolean | equals(RBBIDataWrapper.
Equals helper for state tables, including null handling. |
| public static RBBIDataWrapper | get(ByteBuffer bytes)
Get an RBBIDataWrapper from an InputStream onto a pre-compiled set of RBBI rules. |
| public int | |
| public static String | |
| public static String |
| ACCEPTING | back to summary |
|---|---|
| public static final int ACCEPTING offset to the "accepting" field in a state table row. | |
| ACCEPTING_UNCONDITIONAL | back to summary |
|---|---|
| public static final int ACCEPTING_UNCONDITIONAL value constant for the ACCEPTING field of a state table row. | |
| DATA_FORMAT | back to summary |
|---|---|
| public static final int DATA_FORMAT | |
| DH_CATCOUNT | back to summary |
|---|---|
| public static final int DH_CATCOUNT | |
| DH_FORMATVERSION | back to summary |
|---|---|
| public static final int DH_FORMATVERSION | |
| DH_FTABLE | back to summary |
|---|---|
| public static final int DH_FTABLE | |
| DH_FTABLELEN | back to summary |
|---|---|
| public static final int DH_FTABLELEN | |
| DH_LENGTH | back to summary |
|---|---|
| public static final int DH_LENGTH | |
| DH_MAGIC | back to summary |
|---|---|
| public static final int DH_MAGIC | |
| DH_RTABLE | back to summary |
|---|---|
| public static final int DH_RTABLE | |
| DH_RTABLELEN | back to summary |
|---|---|
| public static final int DH_RTABLELEN | |
| DH_RULESOURCE | back to summary |
|---|---|
| public static final int DH_RULESOURCE | |
| DH_RULESOURCELEN | back to summary |
|---|---|
| public static final int DH_RULESOURCELEN | |
| DH_SIZE | back to summary |
|---|---|
| public static final int DH_SIZE | |
| DH_STATUSTABLE | back to summary |
|---|---|
| public static final int DH_STATUSTABLE | |
| DH_STATUSTABLELEN | back to summary |
|---|---|
| public static final int DH_STATUSTABLELEN | |
| DH_TRIE | back to summary |
|---|---|
| public static final int DH_TRIE | |
| DH_TRIELEN | back to summary |
|---|---|
| public static final int DH_TRIELEN | |
| fFTable | back to summary |
|---|---|
| public RBBIDataWrapper. | |
| fHeader | back to summary |
|---|---|
| public RBBIDataWrapper. | |
| FORMAT_VERSION | back to summary |
|---|---|
| public static final int FORMAT_VERSION | |
| fRTable | back to summary |
|---|---|
| public RBBIDataWrapper. | |
| fRuleSource | back to summary |
|---|---|
| public String fRuleSource | |
| fStatusTable | back to summary |
|---|---|
| public int[] fStatusTable | |
| fTrie | back to summary |
|---|---|
| public CodePointTrie fTrie | |
| IS_ACCEPTABLE | back to summary |
|---|---|
| private static final RBBIDataWrapper. | |
| LOOKAHEAD | back to summary |
|---|---|
| public static final int LOOKAHEAD offset to the "lookahead" field in a state table row. | |
| NEXTSTATES | back to summary |
|---|---|
| public static final int NEXTSTATES offset to the start of the next states array in a state table row. | |
| RBBI_8BITS_ROWS | back to summary |
|---|---|
| public static final int RBBI_8BITS_ROWS | |
| RBBI_BOF_REQUIRED | back to summary |
|---|---|
| public static final int RBBI_BOF_REQUIRED | |
| RBBI_LOOKAHEAD_HARD_BREAK | back to summary |
|---|---|
| public static final int RBBI_LOOKAHEAD_HARD_BREAK | |
| TAGSIDX | back to summary |
|---|---|
| public static final int TAGSIDX offset to the "tagIndex" field in a state table row. | |
| RBBIDataWrapper | back to summary |
|---|---|
| pack-priv RBBIDataWrapper() | |
| charToString | back to summary |
|---|---|
| public static String charToString(char n, int width) | |
| dump | back to summary |
|---|---|
| public void dump(PrintStream out) Debug function to display the break iterator data. | |
| dumpCharCategories | back to summary |
|---|---|
| private void dumpCharCategories(PrintStream out) | |
| dumpRow | back to summary |
|---|---|
| private void dumpRow(PrintStream out, RBBIDataWrapper. Dump (for debug) a single row of an RBBI state table | |
| dumpTable | back to summary |
|---|---|
| private void dumpTable(PrintStream out, RBBIDataWrapper. Dump a state table. (A full set of RBBI rules has 4 state tables.) | |
| equals | back to summary |
|---|---|
| public static boolean equals(RBBIDataWrapper. Equals helper for state tables, including null handling. | |
| get | back to summary |
|---|---|
| public static RBBIDataWrapper get(ByteBuffer bytes) throws IOException Get an RBBIDataWrapper from an InputStream onto a pre-compiled set of RBBI rules. | |
| getRowIndex | back to summary |
|---|---|
| public int getRowIndex(int state) RBBI State Table Indexing Function. Given a state number, return the array index of the start of the state table row for that state. | |
| intToHexString | back to summary |
|---|---|
| public static String intToHexString(int n, int width) Fixed width int-to-string conversion. | |
| intToString | back to summary |
|---|---|
| public static String intToString(int n, int width) Fixed width int-to-string conversion. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isDataVersionAcceptable(byte[]
version of the current data version)Implements com. |
| IsAcceptable | back to summary |
|---|---|
| private IsAcceptable() | |
| isDataVersionAcceptable | back to summary |
|---|---|
| public boolean isDataVersionAcceptable(byte[] version) Implements com. Doc from com. Method used in ICUBinary.readHeader() to provide data format authentication.
| |
| Modifier and Type | Field and Description |
|---|---|
| public int | fCatCount
the number of character categories. |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| fCatCount | back to summary |
|---|---|
| public int fCatCount the number of character categories. | |
| fFormatVersion | back to summary |
|---|---|
| pack-priv byte[] fFormatVersion | |
| fFTable | back to summary |
|---|---|
| pack-priv int fFTable | |
| fFTableLen | back to summary |
|---|---|
| pack-priv int fFTableLen | |
| fLength | back to summary |
|---|---|
| pack-priv int fLength | |
| fMagic | back to summary |
|---|---|
| pack-priv int fMagic | |
| fRTable | back to summary |
|---|---|
| pack-priv int fRTable | |
| fRTableLen | back to summary |
|---|---|
| pack-priv int fRTableLen | |
| fRuleSource | back to summary |
|---|---|
| pack-priv int fRuleSource | |
| fRuleSourceLen | back to summary |
|---|---|
| pack-priv int fRuleSourceLen | |
| fStatusTable | back to summary |
|---|---|
| pack-priv int fStatusTable | |
| fStatusTableLen | back to summary |
|---|---|
| pack-priv int fStatusTableLen | |
| fTrie | back to summary |
|---|---|
| pack-priv int fTrie | |
| fTrieLen | back to summary |
|---|---|
| pack-priv int fTrieLen | |
| RBBIDataHeader | back to summary |
|---|---|
| public RBBIDataHeader() | |
| Modifier and Type | Field and Description |
|---|---|
| public int | fDictCategoriesStart
Char category number of the first dictionary char class, or the the largest category number + 1 if there are no dictionary categories. |
| public int | fFlags
Option Flags for this state table. |
| public static int | fHeaderSize
Length in bytes of the state table header, of all the int32 fields preceding fTable in the serialized form. |
| public int | fLookAheadResultsSize
Size of run-time array required for holding look-ahead results. |
| public int | fNumStates
Number of states (rows) in this table. |
| public int | fRowLen
Length of a table row in bytes. |
| public char[] | fTable
Linear array of next state values, accessed as short[state, char_class] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| pack-priv static RBBIDataWrapper. | |
| public int |
| fDictCategoriesStart | back to summary |
|---|---|
| public int fDictCategoriesStart Char category number of the first dictionary char class, or the the largest category number + 1 if there are no dictionary categories. | |
| fFlags | back to summary |
|---|---|
| public int fFlags Option Flags for this state table. | |
| fHeaderSize | back to summary |
|---|---|
| public static int fHeaderSize Length in bytes of the state table header, of all the int32 fields preceding fTable in the serialized form. | |
| fLookAheadResultsSize | back to summary |
|---|---|
| public int fLookAheadResultsSize Size of run-time array required for holding look-ahead results. Indexed by row.fLookAhead. | |
| fNumStates | back to summary |
|---|---|
| public int fNumStates Number of states (rows) in this table. | |
| fRowLen | back to summary |
|---|---|
| public int fRowLen Length of a table row in bytes. Note mismatch with table data, which is short[]. | |
| fTable | back to summary |
|---|---|
| public char[] fTable Linear array of next state values, accessed as short[state, char_class] | |
| RBBIStateTable | back to summary |
|---|---|
| public RBBIStateTable() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| pack-priv static RBBIDataWrapper. | |
| put | back to summary |
|---|---|
| public int put(DataOutputStream bytes) throws IOException | |