#include <cpdtrans.h>
Inheritance diagram for CompoundTransliterator::
Public Methods | |
CompoundTransliterator (Transliterator *const transliterators[], int32_t transliteratorCount, UnicodeFilter *adoptedFilter=0) | |
Constructs a new compound transliterator given an array of transliterators. More... | |
CompoundTransliterator (const UnicodeString &id, UTransDirection dir, UnicodeFilter *adoptedFilter, UParseError &parseError, UErrorCode &status) | |
Constructs a new compound transliterator. More... | |
CompoundTransliterator (const UnicodeString &id, UParseError &parseError, UErrorCode &status) | |
Constructs a new compound transliterator in the FORWARD direction with a NULL filter. More... | |
virtual | ~CompoundTransliterator () |
Destructor. More... | |
CompoundTransliterator (const CompoundTransliterator &) | |
Copy constructor. More... | |
CompoundTransliterator & | operator= (const CompoundTransliterator &) |
Assignment operator. More... | |
Transliterator * | clone (void) const |
Transliterator API. More... | |
virtual int32_t | getCount (void) const |
Returns the number of transliterators in this chain. More... | |
virtual const Transliterator & | getTransliterator (int32_t index) const |
Returns the transliterator at the given index in this chain. More... | |
void | setTransliterators (Transliterator *const transliterators[], int32_t count) |
Sets the transliterators. More... | |
void | adoptTransliterators (Transliterator *adoptedTransliterators[], int32_t count) |
Adopts the transliterators. More... | |
virtual UnicodeString & | toRules (UnicodeString &result, UBool escapeUnprintable) const |
Override Transliterator: Create a rule string that can be passed to createFromRules() to recreate this transliterator. More... | |
virtual UnicodeSet & | getTargetSet (UnicodeSet &result) const |
Override Transliterator framework. More... | |
Protected Methods | |
virtual void | handleGetSourceSet (UnicodeSet &result) const |
Implement Transliterator framework. More... | |
virtual void | handleTransliterate (Replaceable &text, UTransPosition &index, UBool incremental) const |
Implements Transliterator::handleTransliterate. More... | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. More... | |
Static Protected Methods | |
UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. More... | |
Private Methods | |
CompoundTransliterator (const UnicodeString &ID, const UnicodeString &idBlock, int32_t idSplitPoint, Transliterator *adoptedTrans, UErrorCode &status) | |
Private constructor for compound RBTs. More... | |
CompoundTransliterator (UVector &list, UParseError &parseError, UErrorCode &status) | |
Private constructor for Transliterator. More... | |
void | init (const UnicodeString &id, UTransDirection direction, int32_t idSplitPoint, Transliterator *adoptedRbt, UBool fixReverseID, UErrorCode &status) |
void | init (UVector &list, UTransDirection direction, UBool fixReverseID, UErrorCode &status) |
UnicodeString | joinIDs (Transliterator *const transliterators[], int32_t transCount) |
Return the IDs of the given list of transliterators, concatenated with ';' delimiting them. More... | |
void | freeTransliterators (void) |
void | computeMaximumContextLength (void) |
Private Attributes | |
Transliterator ** | trans |
int32_t | count |
int32_t | compoundRBTIndex |
For compound RBTs (those with an id block before and/or after the main rule block) we record the index of the RBT here. More... | |
Static Private Attributes | |
const char | fgClassID |
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI". More... | |
Friends | |
class | Transliterator |
class | TransliteratorAlias |
For example, if one transliterator transliterates from script A to script B, and another transliterates from script B to script C, the two may be combined to form a new transliterator from A to C.
Composed transliterators may not behave as expected. For example, inverses may not combine to form the identity transliterator. See the class documentation for Transliterator for details.
Copyright © IBM Corporation 1999. All rights reserved.
Definition at line 37 of file cpdtrans.h.
|
Constructs a new compound transliterator given an array of transliterators. The array of transliterators may be of any length, including zero or one, however, useful compound transliterators have at least two components.
|
|
Constructs a new compound transliterator.
|
|
Constructs a new compound transliterator in the FORWARD direction with a NULL filter.
|
|
Destructor.
|
|
Copy constructor.
|
|
Private constructor for compound RBTs. Construct a compound transliterator using the given idBlock, with the adoptedTrans inserted at the idSplitPoint. |
|
Private constructor for Transliterator.
|
|
Adopts the transliterators.
|
|
Transliterator API.
Reimplemented from Transliterator. |
|
|
|
|
|
Returns the number of transliterators in this chain.
|
|
ICU "poor man's RTTI", returns a UClassID for the actual class.
Reimplemented from Transliterator. Definition at line 192 of file cpdtrans.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Reimplemented from Transliterator. Definition at line 199 of file cpdtrans.h. |
|
Override Transliterator framework.
Reimplemented from Transliterator. |
|
Returns the transliterator at the given index in this chain.
|
|
Implement Transliterator framework.
Reimplemented from Transliterator. |
|
Implements Transliterator::handleTransliterate.
Reimplemented from Transliterator. |
|
|
|
|
|
Return the IDs of the given list of transliterators, concatenated with ';' delimiting them. Equivalent to the perlish expression join(';', map($_.getID(), transliterators). |
|
Assignment operator.
|
|
Sets the transliterators.
|
|
Override Transliterator: Create a rule string that can be passed to createFromRules() to recreate this transliterator.
Reimplemented from Transliterator. |
|
Definition at line 203 of file cpdtrans.h. |
|
Definition at line 204 of file cpdtrans.h. |
|
For compound RBTs (those with an id block before and/or after the main rule block) we record the index of the RBT here. Otherwise, this should have a value of -1. We need this information to implement toRules(). Definition at line 49 of file cpdtrans.h. |
|
Definition at line 41 of file cpdtrans.h. |
|
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI".
Reimplemented from Transliterator. Definition at line 252 of file cpdtrans.h. |
|
Definition at line 39 of file cpdtrans.h. |