CloneSet103


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25320.951block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125138
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
226170
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
326203
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
Next
Last
Clone Instance
1
Line Count
25
Source Line
138
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java

{
  if (this.ignoreCase)
    return this.matchesIgnoreCase(iterator, start, limit);
  int plength = this.pattern.length;
  if (plength == 0)
    return start;
  int index = start + plength;
  while (index <= limit) {
    int pindex = plength;
    int nindex = index + 1;
    char ch;
    do {
      if ((ch = iterator.setIndex( --index)) != this.pattern[ --pindex])
        break;
      if (pindex == 0)
        return index;
    }
    while (pindex > 0);
    index += this.shiftTable[ch % this.shiftTable.length] + 1;
    if (index < nindex)
      index = nindex;
  }
  return -1;
}


Next
Previous
Clone Instance
2
Line Count
26
Source Line
170
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java

{
  if (this.ignoreCase)
    return this.matchesIgnoreCase(str, start, limit);
  int plength = this.pattern.length;
  if (plength == 0)
    return start;
  int index = start + plength;
  while (index <= limit) {
    //System.err.println("Starts at "+index);
    int pindex = plength;
    int nindex = index + 1;
    char ch;
    do {
      if ((ch = str.charAt( --index)) != this.pattern[ --pindex])
        break;
      if (pindex == 0)
        return index;
    }
    while (pindex > 0);
    index += this.shiftTable[ch % this.shiftTable.length] + 1;
    if (index < nindex)
      index = nindex;
  }
  return -1;
}


First
Previous
Clone Instance
3
Line Count
26
Source Line
203
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java

{
  if (this.ignoreCase)
    return this.matchesIgnoreCase(chars, start, limit);
  int plength = this.pattern.length;
  if (plength == 0)
    return start;
  int index = start + plength;
  while (index <= limit) {
    //System.err.println("Starts at "+index);
    int pindex = plength;
    int nindex = index + 1;
    char ch;
    do {
      if ((ch = chars[ --index]) != this.pattern[ --pindex])
        break;
      if (pindex == 0)
        return index;
    }
    while (pindex > 0);
    index += this.shiftTable[ch % this.shiftTable.length] + 1;
    if (index < nindex)
      index = nindex;
  }
  return -1;
}


Clone AbstractionParameter Count: 2Parameter Bindings

{
  if (this.ignoreCase)
    return this.matchesIgnoreCase( [[#variable146d11e0]], start, limit);
  int plength = this.pattern.length;
  if (plength == 0)
    return start;
  int index = start + plength;
  while (index <= limit) {
    //System.err.println("Starts at "+index);
    int pindex = plength;
    int nindex = index + 1;
    char ch;
    do {
      if ((ch = [[#variable14712940]]) != this.pattern[ --pindex])
        break;
      if (pindex == 0)
        return index;
    }
    while (pindex > 0);
    index += this.shiftTable[ch % this.shiftTable.length] + 1;
    if (index < nindex)
      index = nindex;
  }
  return -1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#146d11e0]]
iterator 
12[[#146d11e0]]
str 
13[[#146d11e0]]
chars 
21[[#14712940]]
iterator.setIndex( --index) 
22[[#14712940]]
str.charAt( --index) 
23[[#14712940]]
chars[ --index]