CloneSet1274


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3210.980method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
132818
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/URI.java
232834
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/util/URI.java
Next
Last
Clone Instance
1
Line Count
3
Source Line
2818
Source File
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);
}


First
Previous
Clone Instance
2
Line Count
3
Source Line
2834
Source File
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 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);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
   * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1755a220]]
encodeAuthority 
12[[#1755a220]]
encodeSegment