Logo Search packages:      
Sourcecode: icu version File versions  Download package

TransliterationRuleData Class Reference

#include <rbt_data.h>

Inheritance diagram for TransliterationRuleData:


List of all members.

Detailed Description

The rule data for a RuleBasedTransliterators. RBT objects hold a const pointer to a TRD object that they do not own. TRD objects are essentially the parsed rules in compact, usable form. The TRD objects themselves are held for the life of the process in a static cache owned by Transliterator.

This class' API is a little asymmetric. There is a method to define a variable, but no way to define a set. This is because the sets are defined by the parser in a UVector, and the vector is copied into a fixed-size array here. Once this is done, no new sets may be defined. In practice, there is no need to do so, since generating the data and using it are discrete phases. When there is a need to access the set data during the parse phase, another data structure handles this. See the parsing code for more details.

Definition at line 45 of file rbt_data.h.

Public Member Functions

UnicodeFunctorlookup (UChar32 standIn) const
UnicodeMatcherlookupMatcher (UChar32 standIn) const
UnicodeReplacerlookupReplacer (UChar32 standIn) const
 TransliterationRuleData (const TransliterationRuleData &)
 TransliterationRuleData (UErrorCode &status)
 ~TransliterationRuleData ()

Static Public Member Functions

static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Public Attributes

TransliterationRuleSet ruleSet
Hashtable variableNames
UnicodeFunctor ** variables
UBool variablesAreOwned
UChar variablesBase
int32_t variablesLength

Private Member Functions

TransliterationRuleDataoperator= (const TransliterationRuleData &other)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index