| java.lang.Object com.ibm.icu.text.Transliterator com.ibm.icu.text.EscapeTransliterator
EscapeTransliterator | class EscapeTransliterator extends Transliterator (Code) | | A transliterator that converts Unicode characters to an escape
form. Examples of escape forms are "U+4E01" and "".
Escape forms have a prefix and suffix, either of which may be
empty, a radix, typically 16 or 10, a minimum digit count,
typically 1, 4, or 8, and a boolean that specifies whether
supplemental characters are handled as 32-bit code points or as two
16-bit code units. Most escape forms handle 32-bit code points,
but some, such as the Java form, intentionally break them into two
surrogate pairs, for backward compatibility.
Some escape forms actually have two different patterns, one for
BMP characters (0..FFFF) and one for supplements (>FFFF). To
handle this, a second EscapeTransliterator may be defined that
specifies the pattern to be produced for supplementals. An example
of a form that requires this is the C form, which uses "\\uFFFF"
for BMP characters and "\\U0010FFFF" for supplementals.
This class is package private. It registers several standard
variants with the system which are then accessed via their IDs.
author: Alan Liu |
EscapeTransliterator | EscapeTransliterator(String ID, String prefix, String suffix, int radix, int minDigits, boolean grokSupplementals, EscapeTransliterator supplementalHandler)(Code) | | Constructs an escape transliterator with the given ID and
parameters. See the class member documentation for details.
|
register | static void register()(Code) | | Registers standard variants with the system. Called by
Transliterator during initialization.
|
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)
|
|
|