#include <wdbktbl.h>
Public Types | |
typedef TextBoundaryData::Node | Node |
typedef TextBoundaryData::Type | Type |
Public Methods | |
WordBreakTable (int32_t cols, const Node data[], int32_t data_length) | |
Construct a table from the provided data. More... | |
Node | get (Node oldState, Type input) const |
Get the resulting state moving from oldState accepting input. More... | |
UBool | isMarkState (Node state) const |
Checks to see if the transition into the specified state was "marked.". More... | |
UBool | isEndState (Node state) const |
Check to see if the state is the end state. More... | |
Node | initialState (void) const |
Get the initial state. More... |
After each transition, using the get method, the new state is returned along with information about the state change (ex. was it a "marked" transition"). For efficiency, none of the arguments to any of these methods are validated.
Definition at line 35 of file wdbktbl.h.
|
|
|
|
|
Construct a table from the provided data. See CharacterBreakData or the other TextBoundaryData subclasses for examples. Each row represents a state, each column within a row represents a transition. The values in the table represent the new state and mark information.
|
|
Get the resulting state moving from oldState accepting input.
|
|
Get the initial state.
|
|
Check to see if the state is the end state.
|
|
Checks to see if the transition into the specified state was "marked.".
|