#include <cpdtrans.h>
Class diagram for CompoundTransliterator:
Public Members | |||
![]() | ![]() | CompoundTransliterator (Transliterator* const transliterators[], int32_t count, UnicodeFilter* adoptedFilter = 0) | |
![]() | ![]() | Constructs a new compound transliterator given an array of transliterators. More... | |
![]() | ![]() | CompoundTransliterator (const UnicodeString& ID, Direction dir, UnicodeFilter* adoptedFilter, UErrorCode& status) | |
![]() | ![]() | Constructs a new compound transliterator. More... | |
![]() | ![]() | CompoundTransliterator (const UnicodeString& ID, 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) |
![]() | ![]() | void | adoptTransliterators (Transliterator* adoptedTransliterators[], int32_t count) |
![]() | ![]() | virtual void | adoptFilter (UnicodeFilter* f) |
![]() | ![]() | Override Transliterator. More... | |
![]() | ![]() | virtual void | handleTransliterate (Replaceable& text, Position& index, UBool incremental) const |
![]() | ![]() | Implements. More... |
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.
If a non-null
UnicodeFilter
is applied to a CompoundTransliterator
, it has the effect of being logically anded with the filter of each transliterator in the chain.
Copyright © IBM Corporation 1999. All rights reserved.
Definition at line 38 of file cpdtrans.h.
CompoundTransliterator::CompoundTransliterator (Transliterator *const transliterators[], int32_t count, UnicodeFilter * adoptedFilter = 0) |
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.
transliterators |
array of Transliterator objects |
filter |
the filter. Any character for which filter.contains() returns false will not be altered by this transliterator. If filter is null then no filtering is applied. |
CompoundTransliterator::CompoundTransliterator (const UnicodeString & ID, Direction dir, UnicodeFilter * adoptedFilter, UErrorCode & status) |
Constructs a new compound transliterator.
filter |
the filter. Any character for which filter.isIn() returns false will not be altered by this transliterator. If filter is null then no filtering is applied. |
CompoundTransliterator::CompoundTransliterator (const UnicodeString & ID, UErrorCode & status) |
Constructs a new compound transliterator in the FORWARD direction with a NULL filter.
virtual CompoundTransliterator::~CompoundTransliterator () [virtual]
|
Destructor.
CompoundTransliterator::CompoundTransliterator (const CompoundTransliterator &) |
Copy constructor.
CompoundTransliterator & CompoundTransliterator::operator= (const CompoundTransliterator &) |
Assignment operator.
Transliterator * CompoundTransliterator::clone (void) const [virtual]
|
virtual int32_t CompoundTransliterator::getCount (void) const [virtual]
|
Returns the number of transliterators in this chain.
virtual const Transliterator & CompoundTransliterator::getTransliterator (int32_t index) const [virtual]
|
Returns the transliterator at the given index in this chain.
index |
index into chain, from 0 to getCount() - 1 |
void CompoundTransliterator::setTransliterators (Transliterator *const transliterators[], int32_t count) |
void CompoundTransliterator::adoptTransliterators (Transliterator *adoptedTransliterators[], int32_t count) |
virtual void CompoundTransliterator::adoptFilter (UnicodeFilter * f) [virtual]
|
Override Transliterator.
Modify the transliterators that make up this compound transliterator so their filters are the logical AND of this transliterator's filter and their own. Original filters are kept in the filters array.
Reimplemented from Transliterator.
virtual void CompoundTransliterator::handleTransliterate (Replaceable & text, Position & index, UBool incremental) const [virtual]
|