| java.lang.Object com.ibm.icu.text.Transliterator com.ibm.icu.text.CompoundTransliterator
CompoundTransliterator | class CompoundTransliterator extends Transliterator (Code) | | A transliterator that is composed of two or more other
transliterator objects linked together. 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.
author: Alan Liu |
Method Summary | |
public int | getCount() Returns the number of transliterators in this chain. | public UnicodeSet | getTargetSet() Returns the set of all characters that may be generated as
replacement text by this transliterator. | public Transliterator | getTransliterator(int index) Returns the transliterator at the given index in this chain. | protected UnicodeSet | handleGetSourceSet() Return the set of all characters that may be modified by this
Transliterator, ignoring the effect of our filter. | protected void | handleTransliterate(Replaceable text, Position index, boolean incremental) Implements
Transliterator.handleTransliterate . | public String | toRules(boolean escapeUnprintable) Override Transliterator:
Create a rule string that can be passed to createFromRules()
to recreate this transliterator.
Parameters: escapeUnprintable - if TRUE then convert unprintablecharacter to their hex escape representations, \\uxxxx or\\Uxxxxxxxx. |
CompoundTransliterator | public CompoundTransliterator(Transliterator[] transliterators, UnicodeFilter filter)(Code) | | 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.
Parameters: transliterators - array of Transliterator objects Parameters: filter - the filter. Any character for whichfilter.contains() returns false will not bealtered by this transliterator. If filter isnull then no filtering is applied. |
CompoundTransliterator | public CompoundTransliterator(Transliterator[] transliterators)(Code) | | 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.
Parameters: transliterators - array of Transliterator objects |
CompoundTransliterator | public CompoundTransliterator(String ID, int direction, UnicodeFilter filter)(Code) | | Constructs a new compound transliterator.
Parameters: ID - compound ID Parameters: direction - either Transliterator.FORWARD or Transliterator.REVERSE Parameters: filter - a global filter for this compound transliteratoror null |
CompoundTransliterator | public CompoundTransliterator(String ID, int direction)(Code) | | Constructs a new compound transliterator with no filter.
Parameters: ID - compound ID Parameters: direction - either Transliterator.FORWARD or Transliterator.REVERSE |
CompoundTransliterator | public CompoundTransliterator(String ID)(Code) | | Constructs a new forward compound transliterator with no filter.
Parameters: ID - compound ID |
CompoundTransliterator | CompoundTransliterator(Vector list)(Code) | | Package private constructor for Transliterator from a vector of
transliterators. The caller is responsible for fixing up the
ID.
|
CompoundTransliterator | CompoundTransliterator(Vector list, int numAnonymousRBTs)(Code) | | |
getCount | public int getCount()(Code) | | Returns the number of transliterators in this chain.
number of transliterators in this chain. |
getTargetSet | public UnicodeSet getTargetSet()(Code) | | Returns the set of all characters that may be generated as
replacement text by this transliterator.
|
getTransliterator | public Transliterator getTransliterator(int index)(Code) | | Returns the transliterator at the given index in this chain.
Parameters: index - index into chain, from 0 to getCount() - 1 transliterator at the given index |
handleGetSourceSet | protected UnicodeSet handleGetSourceSet()(Code) | | Return the set of all characters that may be modified by this
Transliterator, ignoring the effect of our filter.
|
toRules | public String toRules(boolean escapeUnprintable)(Code) | | Override Transliterator:
Create a rule string that can be passed to createFromRules()
to recreate this transliterator.
Parameters: escapeUnprintable - if TRUE then convert unprintablecharacter to their hex escape representations, \\uxxxx or\\Uxxxxxxxx. Unprintable characters are those other thanU+000A, U+0020..U+007E. the rule string |
Methods inherited from com.ibm.icu.text.Transliterator | final protected String baseToRules(boolean escapeUnprintable)(Code)(Java Doc) final public static Transliterator createFromRules(String ID, String rules, int dir)(Code)(Java Doc) public void filteredTransliterate(Replaceable text, Position index, boolean incremental)(Code)(Java Doc) final public void finishTransliteration(Replaceable text, Position index)(Code)(Java Doc) final public static Enumeration getAvailableIDs()(Code)(Java Doc) final public static Enumeration getAvailableSources()(Code)(Java Doc) final public static Enumeration getAvailableTargets(String source)(Code)(Java Doc) final public static Enumeration getAvailableVariants(String source, String target)(Code)(Java Doc) static Transliterator getBasicInstance(String id, String canonID)(Code)(Java Doc) final public static String getDisplayName(String ID)(Code)(Java Doc) public static String getDisplayName(String id, Locale inLocale)(Code)(Java Doc) public static String getDisplayName(String id, ULocale inLocale)(Code)(Java Doc) public Transliterator[] getElements()(Code)(Java Doc) final public UnicodeFilter getFilter()(Code)(Java Doc) final public String getID()(Code)(Java Doc) final public static Transliterator getInstance(String ID)(Code)(Java Doc) public static Transliterator getInstance(String ID, int dir)(Code)(Java Doc) final public Transliterator getInverse()(Code)(Java Doc) final public int getMaximumContextLength()(Code)(Java Doc) final public UnicodeSet getSourceSet()(Code)(Java Doc) public UnicodeSet getTargetSet()(Code)(Java Doc) protected UnicodeSet handleGetSourceSet()(Code)(Java Doc) abstract protected void handleTransliterate(Replaceable text, Position pos, boolean incremental)(Code)(Java Doc) public static void registerAlias(String aliasID, String realID)(Code)(Java Doc) public static void registerClass(String ID, Class transClass, String displayName)(Code)(Java Doc) public static void registerFactory(String ID, Factory factory)(Code)(Java Doc) public static void registerInstance(Transliterator trans)(Code)(Java Doc) static void registerInstance(Transliterator trans, boolean visible)(Code)(Java Doc) static void registerSpecialInverse(String target, String inverseTarget, boolean bidirectional)(Code)(Java Doc) public void setFilter(UnicodeFilter filter)(Code)(Java Doc) final protected void setID(String id)(Code)(Java Doc) protected void setMaximumContextLength(int a)(Code)(Java Doc) public String toRules(boolean escapeUnprintable)(Code)(Java Doc) final public int transliterate(Replaceable text, int start, int limit)(Code)(Java Doc) final public void transliterate(Replaceable text)(Code)(Java Doc) final public String transliterate(String text)(Code)(Java Doc) final public void transliterate(Replaceable text, Position index, String insertion)(Code)(Java Doc) final public void transliterate(Replaceable text, Position index, int insertion)(Code)(Java Doc) final public void transliterate(Replaceable text, Position index)(Code)(Java Doc) public static void unregister(String ID)(Code)(Java Doc)
|
|
|