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 | 2849 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/URI.java |
2 | 3 | 2865 | 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 query, as defined by the RFC. * Only excluded characters, such as space and <code>#</code>, are escaped. * * @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 encodeQuery(String value, boolean ignoreEscaped) { return encode(value, URIC_HI, URIC_LO, ignoreEscaped); } |
| |||||
/** * Encodes a string so as to produce a valid fragment, as defined by the * RFC. Only excluded characters, such as space and <code>#</code>, are * escaped. * * @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 encodeFragment(String value, boolean ignoreEscaped) { return encode(value, URIC_HI, URIC_LO, ignoreEscaped); } |
| |||
/** * Encodes a string so as to produce a valid fragment, as defined by the * RFC. Only excluded characters, such as space and <code>#</code>, are * escaped. * * @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 query, as defined by the RFC. * Only excluded characters, such as space and <code>#</code>, are escaped. * * @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 [[#variable175578c0]](String value, boolean ignoreEscaped) { return encode(value, URIC_HI, URIC_LO, ignoreEscaped); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#175578c0]] | encodeQuery |
1 | 2 | [[#175578c0]] | encodeFragment |