RuleBasedTransliterator
.
More...
#include <rbt_set.h>
Public Methods | |
TransliterationRuleSet () | |
Construct a new empty rule set. | |
TransliterationRuleSet (const TransliterationRuleSet&) | |
Copy constructor. | |
virtual | ~TransliterationRuleSet () |
Destructor. | |
virtual int32_t | getMaximumContextLength (void) const |
Return the maximum context length. More... | |
virtual void | addRule (TransliterationRule* adoptedRule, UErrorCode& status) |
Add a rule to this set. More... | |
virtual void | freeze (const TransliterationRuleData& data, UErrorCode& status) |
Check this for masked rules and index it to optimize performance. More... | |
virtual TransliterationRule* | findMatch (const Replaceable& text, const UTransPosition& pos, const TransliterationRuleData& data, const UnicodeFilter* filter) const |
Attempt to find a matching rule at the specified point in the text. More... | |
virtual TransliterationRule* | findIncrementalMatch (const Replaceable& text, const UTransPosition& pos, const TransliterationRuleData& data, UBool& isPartial, const UnicodeFilter* filter) const |
Attempt to find a matching rule at the specified point in the text. More... |
RuleBasedTransliterator
.
This set encodes the transliteration in one direction from one set of characters or short strings to another. A RuleBasedTransliterator
consists of up to two such sets, one for the forward direction, and one for the reverse.
A TransliterationRuleSet
has one important operation, that of finding a matching rule at a given point in the text. This is accomplished by the findMatch()
method.
Definition at line 32 of file rbt_set.h.
|
Construct a new empty rule set.
|
|
Copy constructor.
|
|
Destructor.
|
|
Add a rule to this set.
Rules are added in order, and order is significant. The last call to this method must be followed by a call to
|
|
Attempt to find a matching rule at the specified point in the text.
Unlike
|
|
Attempt to find a matching rule at the specified point in the text.
|
|
Check this for masked rules and index it to optimize performance.
The sequence of operations is: (1) add rules to a set using |
|
Return the maximum context length.
|