| java.lang.Object com.ibm.icu.text.StringReplacer
StringReplacer | class StringReplacer implements UnicodeReplacer(Code) | | A replacer that produces static text as its output. The text may
contain transliterator stand-in characters that represent nested
UnicodeReplacer objects, making it possible to encode a tree of
replacers in a StringReplacer. A StringReplacer that contains such
stand-ins is called a complex StringReplacer. A complex
StringReplacer has a slower processing loop than a non-complex one.
author: Alan Liu |
Constructor Summary | |
public | StringReplacer(String theOutput, int theCursorPos, RuleBasedTransliterator.Data theData) Construct a StringReplacer that sets the emits the given output
text and sets the cursor to the given position.
Parameters: theOutput - text that will replace input text when thereplace() method is called. | public | StringReplacer(String theOutput, RuleBasedTransliterator.Data theData) Construct a StringReplacer that sets the emits the given output
text and does not modify the cursor.
Parameters: theOutput - text that will replace input text when thereplace() method is called. |
StringReplacer | public StringReplacer(String theOutput, int theCursorPos, RuleBasedTransliterator.Data theData)(Code) | | Construct a StringReplacer that sets the emits the given output
text and sets the cursor to the given position.
Parameters: theOutput - text that will replace input text when thereplace() method is called. May contain stand-in charactersthat represent nested replacers. Parameters: theCursorPos - cursor position that will be returned bythe replace() method Parameters: theData - transliterator context object that translatesstand-in characters to UnicodeReplacer objects |
StringReplacer | public StringReplacer(String theOutput, RuleBasedTransliterator.Data theData)(Code) | | Construct a StringReplacer that sets the emits the given output
text and does not modify the cursor.
Parameters: theOutput - text that will replace input text when thereplace() method is called. May contain stand-in charactersthat represent nested replacers. Parameters: theData - transliterator context object that translatesstand-in characters to UnicodeReplacer objects |
addReplacementSetTo | public void addReplacementSetTo(UnicodeSet toUnionTo)(Code) | | Union the set of all characters that may output by this object
into the given set.
Parameters: toUnionTo - the set into which to union the output characters |
replace | public int replace(Replaceable text, int start, int limit, int[] cursor)(Code) | | UnicodeReplacer API
|
toReplacerPattern | public String toReplacerPattern(boolean escapeUnprintable)(Code) | | UnicodeReplacer API
|
|
|