Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RuleBasedBreakIteratorTables Class Reference

This class contains the internal static tables that are used by the RuleBasedBreakIterator. More...

#include <rbbi_tbl.h>

Inheritance diagram for RuleBasedBreakIteratorTables:

DictionaryBasedBreakIteratorTables List of all members.

Protected Methods

 RuleBasedBreakIteratorTables ()
 Creates a tables object, adopting all of the tables that are passed in.

 RuleBasedBreakIteratorTables (UDataMemory* memory)
virtual ~RuleBasedBreakIteratorTables ()
 Destructor.

virtual int32_t lookupCategory (UChar c, BreakIterator* bi) const
 Looks up a character's category (i.e., its category for breaking purposes, not its Unicode category).

virtual int32_t lookupState (int32_t state, int32_t category) const
 Given a current state and a character category, looks up the next state to transition to in the state table.

virtual int32_t lookupBackwardState (int32_t state, int32_t category) const
 Given a current state and a character category, looks up the next state to transition to in the backwards state table.

virtual UBool isEndState (int32_t state) const
 Returns true if the specified state is an accepting state.

virtual UBool isLookaheadState (int32_t state) const
 Returns true if the specified state is a lookahead state.


Protected Attributes

UBool ownTables
 Whether or not we own the storage for the tables (the tables may be stored in a memory-mapped file). More...

UDataMemoryfMemory

Friends

class  RuleBasedBreakIterator
class  DictionaryBasedBreakIterator

Detailed Description

This class contains the internal static tables that are used by the RuleBasedBreakIterator.

Once created, these tables are immutable, so they can be shared among all break iterators using a particular set of rules. This class uses a reference-counting scheme to manage the sharing.

Author(s):
Richard Gillam

Definition at line 38 of file rbbi_tbl.h.


Constructor & Destructor Documentation

RuleBasedBreakIteratorTables::RuleBasedBreakIteratorTables ( ) [protected]
 

Creates a tables object, adopting all of the tables that are passed in.

RuleBasedBreakIteratorTables::RuleBasedBreakIteratorTables ( UDataMemory * memory ) [protected]
 

RuleBasedBreakIteratorTables::~RuleBasedBreakIteratorTables ( ) [protected, virtual]
 

Destructor.


Member Function Documentation

UBool RuleBasedBreakIteratorTables::isEndState ( int32_t state ) const [protected, virtual]
 

Returns true if the specified state is an accepting state.

UBool RuleBasedBreakIteratorTables::isLookaheadState ( int32_t state ) const [protected, virtual]
 

Returns true if the specified state is a lookahead state.

int32_t RuleBasedBreakIteratorTables::lookupBackwardState ( int32_t state,
int32_t category ) const [protected, virtual]
 

Given a current state and a character category, looks up the next state to transition to in the backwards state table.

int32_t RuleBasedBreakIteratorTables::lookupCategory ( UChar c,
BreakIterator * bi ) const [protected, virtual]
 

Looks up a character's category (i.e., its category for breaking purposes, not its Unicode category).

Reimplemented in DictionaryBasedBreakIteratorTables.

int32_t RuleBasedBreakIteratorTables::lookupState ( int32_t state,
int32_t category ) const [protected, virtual]
 

Given a current state and a character category, looks up the next state to transition to in the state table.


Friends And Related Function Documentation

class DictionaryBasedBreakIterator [friend]
 

Reimplemented in DictionaryBasedBreakIteratorTables.

Definition at line 200 of file rbbi_tbl.h.

class RuleBasedBreakIterator [friend]
 

Definition at line 199 of file rbbi_tbl.h.


Member Data Documentation

UDataMemory * RuleBasedBreakIteratorTables::fMemory [protected]
 

Definition at line 104 of file rbbi_tbl.h.

UBool RuleBasedBreakIteratorTables::ownTables [protected]
 

Whether or not we own the storage for the tables (the tables may be stored in a memory-mapped file).

Definition at line 51 of file rbbi_tbl.h.


The documentation for this class was generated from the following file:
Generated at Tue Dec 5 17:56:19 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000