/**
* Substitutes the replacement text for the first match found in the input.
*
* @param input The input text.
* @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).
* @return A String interpolating the substituted text.
* @see REMatch#substituteInto
*/
/**
* Substitutes the replacement text for each non-overlapping match found
* in the input text.
*
* @param input The input text.
* @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).
* @return A String interpolating the substituted text.
* @see REMatch#substituteInto
*/
public String [[#variableaf33c00]](Object input, String replace) {
return [[#variableaf33c00]](input, replace, 0, 0);
}
/**
* Substitutes the replacement text for the first match found in the input
* beginning at the specified index position. Specifying an index
* effectively causes the regular expression engine to throw away the
* specified number of characters.
*
* @param input The input text.
* @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).
* @param index The offset index at which the search should be begin.
* @return A String containing the substring of the input, starting
* at the index position, and interpolating the substituted text.
* @see REMatch#substituteInto
*/
/**
* Substitutes the replacement text for each non-overlapping match found
* in the input text, starting at the specified index.
*
* If the regular expression allows the empty string to match, it will
* substitute matches at all positions except the end of the input.
*
* @param input The input text.
* @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).
* @param index The offset index at which the search should be begin.
* @return A String containing the substring of the input, starting
* at the index position, and interpolating the substituted text.
* @see REMatch#substituteInto
*/
public String [[#variableaf33c00]](Object input, String replace, int index) {
return [[#variableaf33c00]](input, replace, index, 0);
}
/**
* Substitutes the replacement text for the first match found in the input
* string, beginning at the specified index position and using the
* specified execution flags.
*
* @param input The input text.
* @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).
* @param index The offset index at which the search should be begin.
* @param eflags The logical OR of any execution flags above.
* @return A String containing the substring of the input, starting
* at the index position, and interpolating the substituted text.
* @see REMatch#substituteInto
*/
/**
* Substitutes the replacement text for each non-overlapping match found
* in the input text, starting at the specified index and using the
* specified execution flags.
*
* @param input The input text.
* @param replace The replacement text, which may contain $x metacharacters (see REMatch.substituteInto).
* @param index The offset index at which the search should be begin.
* @param eflags The logical OR of any execution flags above.
* @return A String containing the substring of the input, starting
* at the index position, and interpolating the substituted text.
* @see REMatch#substituteInto
*/
public String [[#variableaf33c00]](Object input, String replace, int index, int eflags) {
return [[#variableaf35ee0]](makeCharIndexed(input, index), replace, index, eflags);
}
|