if (isSet(opts, SINGLE_LINE)) {
if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)
o1 --;
} else {
if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)
ch = REUtil.composeFromSurrogates( target .charAt( --o1 ) , ch);
if (!isEOLChar(ch))
return -1;
}
if (isSet(opts, SINGLE_LINE)) {
if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)
o1 --;
} else {
if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)
ch = REUtil.composeFromSurrogates( target .setIndex( --o1 ) , ch);
if (!isEOLChar(ch))
return -1;
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/RegEx.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (isSet(opts, SINGLE_LINE)) {↵ | | 1 | if (isSet(opts, SINGLE_LINE)) {↵
|
2 | if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)↵ | | 2 | if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)↵
|
3 | o1 --;↵ | | 3 | o1 --;↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)↵ | | 5 | if (REUtil.isLowSurrogate(ch) && o1-1 >= 0)↵
|
6 | ch = REUtil.composeFromSurrogates( target .charAt( --o1 ) , ch);↵ | | 6 | ch = REUtil.composeFromSurrogates( target .setIndex( --o1 ) , ch);↵
|
7 | if (!isEOLChar(ch))↵ | | 7 | if (!isEOLChar(ch))↵
|
8 | return -1;↵ | | 8 | return -1;↵
|
9 | } | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |