| Modifier and Type | Field and Description |
|---|---|
| private UnicodeReplacer | replacer
The replacer object. |
| private Transliterator | translit
The transliterator. |
| Access | Constructor and Description |
|---|---|
| public | FunctionReplacer(Transliterator theTranslit, UnicodeReplacer theReplacer)
Construct a replacer that takes the output of the given replacer, passes it through the given transliterator, and emits the result as output. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addReplacementSetTo(UnicodeSet
the set into which to union the output characters toUnionTo)Implements com. |
| public int | replace(Replaceable
the text to be matched text, int inclusive start index of text to be replaced start, int exclusive end index of text to be replaced;
must be greater than or equal to start limit, int[] output parameter for the cursor position.
Not all replacer objects will update this, but in a complete
tree of replacer objects, representing the entire output side
of a transliteration rule, at least one must update it. cursor)Implements com. |
| public String | toReplacerPattern(boolean
if true then convert unprintable
character to their hex escape representations, \\uxxxx or
\\Uxxxxxxxx. Unprintable characters are defined by
Utility.isUnprintable(). escapeUnprintable)Implements com. |
| replacer | back to summary |
|---|---|
| private UnicodeReplacer replacer The replacer object. This generates text that is then processed by 'translit'. Must not be null. | |
| translit | back to summary |
|---|---|
| private Transliterator translit The transliterator. Must not be null. | |
| FunctionReplacer | back to summary |
|---|---|
| public FunctionReplacer(Transliterator theTranslit, UnicodeReplacer theReplacer) Construct a replacer that takes the output of the given replacer, passes it through the given transliterator, and emits the result as output. | |
| addReplacementSetTo | back to summary |
|---|---|
| public void addReplacementSetTo(UnicodeSet toUnionTo) Implements com. Union the set of all characters that may output by this object into the given set.
| |
| replace | back to summary |
|---|---|
| public int replace(Replaceable text, int start, int limit, int[] cursor) Implements com. UnicodeReplacer API
| |
| toReplacerPattern | back to summary |
|---|---|
| public String toReplacerPattern(boolean escapeUnprintable) Implements com. UnicodeReplacer API
| |