public interface StringReplacement
Modifier and Type | Method and Description |
---|---|
int |
apply(SafeAppendable dest,
java.lang.CharSequence src,
int startPos,
int endPos)
This will be called for each instance of each pattern found
|
int apply(SafeAppendable dest, java.lang.CharSequence src, int startPos, int endPos)
dest
- The replacement text for the matching substring should be written heresrc
- The string being searched, or the part of the stream being searched that contains the current matchstartPos
- the start index of the current match in srcendPos
- the end index of the current match in src