/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 | 31 // the byte corresponding to '?' in ASCII as the replacement byte for charsets where that 73 byte[] replacement = makeReplacement(icuCanonicalName, address); 74 CharsetEncoderICU result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address); 86 byte[] replacement = DEFAULT_REPLACEMENTS.get(icuCanonicalName); 87 if (replacement != null) { 88 return replacement.clone(); 94 private CharsetEncoderICU(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, long address) { argument 95 super(cs, averageBytesPerChar, maxBytesPerChar, replacement, true);
|
H A D | CharsetDecoder.java | 63 * replacement string. The replacement string is "\uFFFD" by default and can be 105 * created by this decoder for one input byte, and the default replacement 475 * Notifies that this decoder's replacement has been changed. The default 479 * the new replacement string. 592 * Returns the replacement string, which is never null or empty. 594 public final String replacement() { method in class:CharsetDecoder 599 * Sets the new replacement string. 601 * This method first checks the given replacement's validity, then changes 602 * the replacement valu 614 replaceWith(String replacement) argument [all...] |
H A D | CharsetEncoder.java | 59 * the problematic input with the byte sequence returned by {@link #replacement}. The disposition 63 * <p>The default replacement bytes depend on the charset but can be overridden using the 96 // decoder instance for this encoder's charset, used for replacement value checking 101 * the replacement byte array {@code { (byte) '?' }}. 109 * <code>Charset</code>, replacement byte array, average number and 120 * @param replacement 121 * the replacement byte array, cannot be null or empty, its 123 * and must be a legal replacement, which can be justified by 128 protected CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) { argument 129 this(cs, averageBytesPerChar, maxBytesPerChar, replacement, fals 132 CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, boolean trusted) argument 551 isLegalReplacement(byte[] replacement) argument 626 public final byte[] replacement() { method in class:CharsetEncoder 648 replaceWith(byte[] replacement) argument [all...] |
/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/luni/src/main/java/java/util/regex/ |
H A D | Matcher.java | 94 * Appends a literal part of the input plus a replacement for the current 103 * @param replacement 104 * the replacement text. 109 public Matcher appendReplacement(StringBuffer buffer, String replacement) { argument 111 appendEvaluated(buffer, replacement); 294 * @param replacement 295 * the replacement text. 298 public String replaceFirst(String replacement) { argument 302 appendReplacement(buffer, replacement); 311 * @param replacement 315 replaceAll(String replacement) argument [all...] |
/libcore/libart/src/main/java/java/lang/ |
H A D | String.java | 182 * replacement string. Use {@link java.nio.charset.CharsetDecoder} for more control. 543 * replacement byte array. Use {@link java.nio.charset.CharsetEncoder} for more control. 961 * with {@code replacement}. The string is processed from the beginning to the 965 * if {@code target} or {@code replacement} is {@code null}. 967 public String replace(CharSequence target, CharSequence replacement) { argument 971 if (replacement == null) { 972 throw new NullPointerException("replacement == null"); 982 String replacementString = replacement.toString(); 988 // replacement string before every one of those chars, and a final 989 // copy of the replacement strin 1352 replaceAll(String regularExpression, String replacement) argument 1371 replaceFirst(String regularExpression, String replacement) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | TreeMap.java | 433 private void replaceInParent(Node<K, V> node, Node<K, V> replacement) { argument 436 if (replacement != null) { 437 replacement.parent = parent; 442 parent.left = replacement; 445 parent.right = replacement; 448 root = replacement;
|
/libcore/benchmarks/libs/ |
H A D | caliper.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ... |