Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 1 | 0.980 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 2818 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/URI.java |
2 | 3 | 2834 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/URI.java |
| |||||
/** * Encodes a string so as to produce a valid authority, as defined by the * RFC. All excluded characters, such as space and <code>#</code>, * are escaped, as are <code>/</code> and <code>?</code> * * @param ignoreEscaped <code>true</code> to leave <code>%</code> characters * unescaped if they already begin a valid three-character escape sequence; * <code>false</code> to encode all <code>%</code> characters. Note that * if a <code>%</code> is not followed by 2 hex digits, it will always be * escaped. */ public static String encodeAuthority(String value, boolean ignoreEscaped) { return encode(value, SEGMENT_CHAR_HI, SEGMENT_CHAR_LO, ignoreEscaped); } |
| |||||
/** * Encodes a string so as to produce a valid segment, as defined by the * RFC. All excluded characters, such as space and <code>#</code>, * are escaped, as are <code>/</code> and <code>?</code> * * @param ignoreEscaped <code>true</code> to leave <code>%</code> characters * unescaped if they already begin a valid three-character escape sequence; * <code>false</code> to encode all <code>%</code> characters. Note that * if a <code>%</code> is not followed by 2 hex digits, it will always be * escaped. */ public static String encodeSegment(String value, boolean ignoreEscaped) { return encode(value, SEGMENT_CHAR_HI, SEGMENT_CHAR_LO, ignoreEscaped); } |
| |||
/** * Encodes a string so as to produce a valid segment, as defined by the * RFC. All excluded characters, such as space and <code>#</code>, * are escaped, as are <code>/</code> and <code>?</code> * * @param ignoreEscaped <code>true</code> to leave <code>%</code> characters * unescaped if they already begin a valid three-character escape sequence; * <code>false</code> to encode all <code>%</code> characters. Note that * if a <code>%</code> is not followed by 2 hex digits, it will always be * escaped. */ /** * Encodes a string so as to produce a valid authority, as defined by the * RFC. All excluded characters, such as space and <code>#</code>, * are escaped, as are <code>/</code> and <code>?</code> * * @param ignoreEscaped <code>true</code> to leave <code>%</code> characters * unescaped if they already begin a valid three-character escape sequence; * <code>false</code> to encode all <code>%</code> characters. Note that * if a <code>%</code> is not followed by 2 hex digits, it will always be * escaped. */ public static String [[#variable1755a220]](String value, boolean ignoreEscaped) { return encode(value, SEGMENT_CHAR_HI, SEGMENT_CHAR_LO, ignoreEscaped); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1755a220]] | encodeAuthority |
1 | 2 | [[#1755a220]] | encodeSegment |