Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.963 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 4258 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java |
2 | 3 | 4277 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java |
| |||||
/** * Returns true if the specified character is valid. This method * also checks the surrogate character range from 0x10000 to 0x10FFFF. * <p> * If the program chooses to apply the mask directly to the * <code>CHARS</code> array, then they are responsible for checking * the surrogate character range. * * @param c The character to check. */ public static boolean isValid(int c) { return (c < 0x10000 && (CHARS[c]&MASK_VALID) != 0) || (0x10000 <= c && c <= 0x10ffff); } // isValid(int):boolean |
| |||||
/** * Returns true if the specified character can be considered content. * * @param c The character to check. */ public static boolean isContent(int c) { return (c < 0x10000 && (CHARS[c]&MASK_CONTENT) != 0) || (0x10000 <= c && c <= 0x10ffff); } // isContent(int):boolean |
| |||
/** * Returns true if the specified character can be considered content. * * @param c The character to check. */ /** * Returns true if the specified character is valid. This method * also checks the surrogate character range from 0x10000 to 0x10FFFF. * <p> * If the program chooses to apply the mask directly to the * <code>CHARS</code> array, then they are responsible for checking * the surrogate character range. * * @param c The character to check. */ public static boolean [[#variable1751c240]](int c) { return (c < 0x10000 && (CHARS[c]& [[#variable1751c1c0]]) != 0) || (0x10000 <= c && c <= 0x10ffff); } // isContent(int):boolean // isValid(int):boolean |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1751c240]] | isValid |
1 | 2 | [[#1751c240]] | isContent |
2 | 1 | [[#1751c1c0]] | MASK_VALID |
2 | 2 | [[#1751c1c0]] | MASK_CONTENT |