CloneSet52


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
31330.950method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
131231
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
231264
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
331297
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
31
Source Line
231
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java

int matchesIgnoreCase(CharacterIterator iterator, int start, int 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 {
      char ch1 = ch = iterator.setIndex( --index);
      char ch2 = this.pattern[ --pindex];
      if (ch1 != ch2) {
        ch1 = Character.toUpperCase(ch1);
        ch2 = Character.toUpperCase(ch2);
        if (ch1 != ch2 && Character.toLowerCase(ch1) != Character.toLowerCase(ch2))
          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
31
Source Line
264
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java

int matchesIgnoreCase(String text, int start, int 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 {
      char ch1 = ch = text.charAt( --index);
      char ch2 = this.pattern[ --pindex];
      if (ch1 != ch2) {
        ch1 = Character.toUpperCase(ch1);
        ch2 = Character.toUpperCase(ch2);
        if (ch1 != ch2 && Character.toLowerCase(ch1) != Character.toLowerCase(ch2))
          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
31
Source Line
297
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java

int matchesIgnoreCase(char[] chars, int start, int 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 {
      char ch1 = ch = chars[ --index];
      char ch2 = this.pattern[ --pindex];
      if (ch1 != ch2) {
        ch1 = Character.toUpperCase(ch1);
        ch2 = Character.toUpperCase(ch2);
        if (ch1 != ch2 && Character.toLowerCase(ch1) != Character.toLowerCase(ch2))
          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: 3Parameter Bindings

int matchesIgnoreCase( [[#variable14674220]]  [[#variable146741c0]], int start, int 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 {
      char ch1 = ch = [[#variable146740e0]];
      char ch2 = this.pattern[ --pindex];
      if (ch1 != ch2) {
        ch1 = Character.toUpperCase(ch1);
        ch2 = Character.toUpperCase(ch2);
        if (ch1 != ch2 && Character.toLowerCase(ch1) != Character.toLowerCase(ch2))
          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[[#14674220]]
CharacterIterator 
12[[#14674220]]
String 
13[[#14674220]]
char[] 
21[[#146741c0]]
iterator 
22[[#146741c0]]
text 
23[[#146741c0]]
chars 
31[[#146740e0]]
iterator.setIndex( --index) 
32[[#146740e0]]
text.charAt( --index) 
33[[#146740e0]]
chars[ --index]