/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
H A D | CharsetEncoder2Test.java | 80 byte[] replacement) { 81 super(cs, averageBytesPerChar, maxBytesPerChar, replacement); 78 MockCharsetEncoderForHarmony141(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) argument
|
H A D | CharsetEncoderTest.java | 68 byte[] replacement = encoder.replacement(); 69 unibytesWithRep = new byte[replacement.length + unibytes.length]; 70 System.arraycopy(replacement, 0, unibytesWithRep, 0, 71 replacement.length); 72 System.arraycopy(unibytes, 0, unibytesWithRep, replacement.length, 95 assertTrue(Arrays.equals(encoder.replacement(), defaultReplacement)); 97 assertTrue(Arrays.equals(encoder.replacement(), specifiedReplacement)); 114 assertEquals(new String(encoder.replacement()), new String( 181 assertSame(ba, ec.replacement()); 1041 MockCharsetEncoder(Charset cs, float aver, float max, byte[] replacement) argument [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | CharsetEncoderICU.java | 32 // the byte corresponding to '?' in ASCII as the replacement byte for charsets where that 74 byte[] replacement = makeReplacement(icuCanonicalName, address); 75 CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address); 87 byte[] replacement = DEFAULT_REPLACEMENTS.get(icuCanonicalName); 88 if (replacement != null) { 89 return replacement.clone(); 95 private CharsetEncoderICU(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, long address) { argument 96 super(cs, averageBytesPerChar, maxBytesPerChar, replacement, true);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | AbstractZipFileTest.java | 65 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { argument 66 // Gotcha here: original and replacement must be the same length 67 assertEquals(original.length, replacement.length); 82 buffer[i+j] = replacement[j];
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
H A D | CharsetDecoder.java | 95 * replacement string. The replacement 143 private String replacement; field in class:CharsetDecoder 164 * chars-per-byte and replacement values. </p> 174 * @param replacement 175 * The initial replacement; must not be <tt>null</tt>, must have 186 String replacement) 201 this.replacement = replacement; 205 replaceWith(replacement); 183 CharsetDecoder(Charset cs, float averageCharsPerByte, float maxCharsPerByte, String replacement) argument 249 public final String replacement() { method in class:CharsetDecoder [all...] |
H A D | CharsetEncoder.java | 95 * replacement byte array. The replacement 98 * is initially set to the encoder's default replacement, which often 143 private byte[] replacement; field in class:CharsetEncoder 164 * bytes-per-char and replacement values. </p> 174 * @param replacement 175 * The initial replacement; must not be <tt>null</tt>, must have 186 byte[] replacement) 189 this(cs, averageBytesPerChar, maxBytesPerChar, replacement, false); 195 byte[] replacement, 183 CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) argument 192 CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, boolean trusted) argument 264 public final byte[] replacement() { method in class:CharsetEncoder [all...] |
/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | Matcher.java | 493 * Returns a literal replacement <code>String</code> for the specified 497 * as a literal replacement <code>s</code> in the 504 * @return A literal string replacement 534 * <li><p> It appends the given replacement string to the string buffer. 543 * <p> The replacement string may contain references to subsequences 552 * example, then passing the replacement string <tt>"$2bar"</tt> would 554 * sign (<tt>$</tt>) may be included as a literal in the replacement 558 * the replacement string may cause the results to be different than if it 559 * were being treated as a literal replacement string. Dollar signs may be 561 * backslashes are used to escape literal characters in the replacement 599 appendReplacement(StringBuffer sb, String replacement) argument 696 replaceAll(String replacement) argument 738 replaceFirst(String replacement) argument [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | String.java | 360 * sequences with this charset's default replacement string. The {@link 422 * sequences with this charset's default replacement string. The {@link 860 * sequences with this charset's default replacement byte array. The 2084 * given replacement. 2099 * replacement string may cause the results to be different than if it were 2100 * being treated as a literal replacement string; see 2107 * @param replacement 2120 public String replaceFirst(String regex, String replacement) { argument 2121 return Pattern.compile(regex).matcher(this).replaceFirst(replacement); 2127 * given replacement 2163 replaceAll(String regex, String replacement) argument 2181 replace(CharSequence target, CharSequence replacement) argument [all...] |