CloneSet40


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
36220.968class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1361095
E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/RE.java
2371156
E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/RE.java
Next
Last
Clone Instance
1
Line Count
36
Source Line
1095
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/RE.java

/**
 * 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
 */
public String substitute(Object input, String replace) {
  return substitute(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
 */
public String substitute(Object input, String replace, int index) {
  return substitute(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
 */
public String substitute(Object input, String replace, int index, int eflags) {
  return substituteImpl(makeCharIndexed(input, index), replace, index, eflags);
}


First
Previous
Clone Instance
2
Line Count
37
Source Line
1156
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/RE.java

/**
 * 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 substituteAll(Object input, String replace) {
  return substituteAll(input, replace, 0, 0);
}

/**
 * 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 substituteAll(Object input, String replace, int index) {
  return substituteAll(input, replace, index, 0);
}

/**
 * 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 substituteAll(Object input, String replace, int index, int eflags) {
  return substituteAllImpl(makeCharIndexed(input, index), replace, index, eflags);
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
   * 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);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#af33c00]]
substitute 
12[[#af33c00]]
substituteAll 
21[[#af35ee0]]
substituteImpl 
22[[#af35ee0]]
substituteAllImpl