/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 144 private byte[] replacement; field in CharsetEncoder 190 byte[] replacement) in CharsetEncoder() argument 193 this(cs, averageBytesPerChar, maxBytesPerChar, replacement, false); in CharsetEncoder() 201 CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, in CharsetEncoder() argument 218 this.replacement = replacement; in CharsetEncoder() 224 replaceWith(replacement); in CharsetEncoder() 272 public final byte[] replacement() { in replacement() method in CharsetEncoder 277 return Arrays.copyOf(replacement, replacement.length); in replacement() 320 this.replacement = Arrays.copyOf(newReplacement, newReplacement.length); in replaceWith() 322 implReplaceWith(this.replacement); in replaceWith() [all …]
|
D | CharsetDecoder.java | 144 private String replacement; field in CharsetDecoder 190 String replacement) in CharsetDecoder() argument 205 this.replacement = replacement; in CharsetDecoder() 255 public final String replacement() { in replacement() method in CharsetDecoder 257 return replacement; in replacement() 298 this.replacement = newReplacement; in replaceWith() 305 implReplaceWith(this.replacement); in replaceWith() 612 if (out.remaining() < replacement.length()) in decode() 614 out.put(replacement); in decode()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | CDATASectionImpl.java | 82 TextImpl replacement = new TextImpl(document, getData()); in replaceWithText() local 83 parent.insertBefore(replacement, this); in replaceWithText() 85 return replacement; in replaceWithText()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetEncoderICU.java | 76 byte[] replacement = makeReplacement(icuCanonicalName, address); in newInstance() 77 … result = new CharsetEncoderICU(cs, averageBytesPerChar, maxBytesPerChar, replacement, address); in newInstance() 92 byte[] replacement = DEFAULT_REPLACEMENTS.get(icuCanonicalName); in makeReplacement() 93 if (replacement != null) { in makeReplacement() 94 return replacement.clone(); in makeReplacement() 100 …U(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, long address) { in CharsetEncoderICU() argument 101 super(cs, averageBytesPerChar, maxBytesPerChar, replacement, true); in CharsetEncoderICU()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | ISOCharsetTest.java | 42 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal() 43 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
|
D | ASCCharsetTest.java | 43 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal() 44 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
|
D | CharsetEncoderTest.java | 68 byte[] replacement = encoder.replacement(); in setUp() 69 unibytesWithRep = new byte[replacement.length + unibytes.length]; in setUp() 70 System.arraycopy(replacement, 0, unibytesWithRep, 0, in setUp() 71 replacement.length); in setUp() 72 System.arraycopy(unibytes, 0, unibytesWithRep, replacement.length, in setUp() 95 assertTrue(Arrays.equals(encoder.replacement(), defaultReplacement)); in testDefaultValue() 97 assertTrue(Arrays.equals(encoder.replacement(), specifiedReplacement)); in testDefaultValue() 114 assertEquals(new String(encoder.replacement()), new String( in testCharsetEncoderCharsetfloatfloat() 181 assertTrue(Arrays.equals(ba, ec.replacement())); in testCharsetEncoderCharsetfloatfloatbyteArray() 999 assertTrue(Arrays.equals(nr, encoder.replacement())); in testReplacement() [all …]
|
D | CharsetEncoder2Test.java | 80 byte[] replacement) { in MockCharsetEncoderForHarmony141() argument 81 super(cs, averageBytesPerChar, maxBytesPerChar, replacement); in MockCharsetEncoderForHarmony141()
|
D | CharsetTest.java | 53 assertNotNull(enc.replacement()); in test_allAvailableCharsets() 627 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg"); 660 "abcd" + new String(c1.newEncoder().replacement(), "iso8859-1") + "efg"); 692 byte[] replacement = c1.newEncoder().replacement(); 693 …assertEquals(new String(cb.array()).trim(), "abcd" + new String(replacement, "iso8859-1") + "efg");
|
D | CharsetDecoderTest.java | 85 assertEquals(decoder.replacement(), "\ufffd"); in testDefaultValues() 195 assertSame("a", decoder.replacement()); in testReplaceWith() 238 String replaceStr = decoder.replacement() + getString(); in testDecodeByteBufferException() 429 assertCharBufferValue(decoder.replacement() + getString(), out); in implTestDecodeCharBufferByteBufferUnmappedException() 482 assertCharBufferValue(decoder.replacement() + getString(), out); in implTestDecodeCharBufferByteBufferMalformedException()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/ |
D | CharsetEncoder.java | 40 byte[] replacement) { in CharsetEncoder() argument 48 byte[] replacement, in CharsetEncoder() argument 62 public final byte[] replacement() { in replacement() method in CharsetEncoder 188 private byte[] replacement; field in CharsetEncoder
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 738 public Matcher appendReplacement(StringBuffer sb, String replacement) { in appendReplacement() argument 741 appendEvaluated(sb, replacement); in appendReplacement() 857 public String replaceAll(String replacement) { in replaceAll() argument 863 appendReplacement(sb, replacement); in replaceAll() 905 public String replaceFirst(String replacement) { in replaceFirst() argument 906 if (replacement == null) in replaceFirst() 912 appendReplacement(sb, replacement); in replaceFirst()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | NativeConverter.java | 68 decoder.replacement()); in setCallbackDecode() 76 encoder.replacement()); in setCallbackEncode()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/ |
D | Matcher.annotated.java | 76 …Null java.lang.StringBuffer sb, @libcore.util.NonNull java.lang.String replacement) { throw new Ru… in appendReplacement() argument 80 …lic java.lang.String replaceAll(@libcore.util.NonNull java.lang.String replacement) { throw new Ru… in replaceAll() argument 82 …c java.lang.String replaceFirst(@libcore.util.NonNull java.lang.String replacement) { throw new Ru… in replaceFirst() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/regex/ |
D | Matcher.java | 119 java.lang.StringBuffer sb, java.lang.String replacement) { in appendReplacement() argument 131 public java.lang.String replaceAll(java.lang.String replacement) { in replaceAll() argument 135 public java.lang.String replaceFirst(java.lang.String replacement) { in replaceFirst() argument
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 2268 public String replaceFirst(String regex, String replacement) { in replaceFirst() argument 2269 return Pattern.compile(regex).matcher(this).replaceFirst(replacement); in replaceFirst() 2313 public String replaceAll(String regex, String replacement) { in replaceAll() argument 2314 return Pattern.compile(regex).matcher(this).replaceAll(replacement); in replaceAll() 2329 public String replace(CharSequence target, CharSequence replacement) { in replace() argument 2335 if (replacement == null) { in replace() 2339 String replacementStr = replacement.toString(); in replace()
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeConverter.cpp | 537 ScopedStringChars replacement(env, javaReplacement); in NativeConverter_setCallbackDecode() local 538 if (replacement.get() == NULL in NativeConverter_setCallbackDecode() 539 || replacement.size() > sizeof(callbackContext->replacementChars) / sizeof(UChar)) { in NativeConverter_setCallbackDecode() 543 …ackContext->replacementChars, reinterpret_cast<const UChar*>(replacement.get()), replacement.size(… in NativeConverter_setCallbackDecode() 544 callbackContext->replacementCharCount = replacement.size(); in NativeConverter_setCallbackDecode()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | String.java | 334 public java.lang.String replaceFirst(java.lang.String regex, java.lang.String replacement) { in replaceFirst() argument 338 public java.lang.String replaceAll(java.lang.String regex, java.lang.String replacement) { in replaceAll() argument 343 java.lang.CharSequence target, java.lang.CharSequence replacement) { in replace() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | String.annotated.java | 150 …NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement) { throw new Ru… in replaceFirst() argument 152 …NonNull java.lang.String regex, @libcore.util.NonNull java.lang.String replacement) { throw new Ru… in replaceAll() argument 154 …lang.CharSequence target, @libcore.util.NonNull java.lang.CharSequence replacement) { throw new Ru… in replace() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | HashMap.java | 2050 TreeNode<K,V> p = this, pl = left, pr = right, replacement; in removeTreeNode() local 2085 replacement = sr; in removeTreeNode() 2087 replacement = p; in removeTreeNode() 2090 replacement = pl; in removeTreeNode() 2092 replacement = pr; in removeTreeNode() 2094 replacement = p; in removeTreeNode() 2095 if (replacement != p) { in removeTreeNode() 2096 TreeNode<K,V> pp = replacement.parent = p.parent; in removeTreeNode() 2098 root = replacement; in removeTreeNode() 2100 pp.left = replacement; in removeTreeNode() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 1004 RunnableScheduledFuture<?> replacement = queue[s]; in remove() local 1007 siftDown(i, replacement); in remove() 1008 if (queue[i] == replacement) in remove() 1009 siftUp(i, replacement); in remove()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | AbstractZipFileTest.java | 70 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { in replaceBytes() argument 72 assertEquals(original.length, replacement.length); in replaceBytes() 87 buffer[i+j] = replacement[j]; in replaceBytes()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | DomTest.java | 699 Text replacement = descriptionText1.replaceWholeText("Eggos"); in testReplaceWholeTextFirst() local 700 assertSame(descriptionText1, replacement); in testReplaceWholeTextFirst() 708 Text replacement = descriptionText2.replaceWholeText("Eggos"); in testReplaceWholeTextMiddle() local 709 assertSame(descriptionText2, replacement); in testReplaceWholeTextMiddle() 718 Text replacement = descriptionText3.replaceWholeText("Eggos"); in testReplaceWholeTextLast() local 719 assertSame(descriptionText3, replacement); in testReplaceWholeTextLast() 728 Text replacement = vitamincText.replaceWholeText("70%"); in testReplaceWholeTextOnly() local 729 assertEquals(Node.TEXT_NODE, replacement.getNodeType()); in testReplaceWholeTextOnly() 730 assertSame(vitamincText, replacement); in testReplaceWholeTextOnly()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 341 String substr, String replacement) { in replaceFirstSubStringMatch() argument 346 return range.substring(0, pos) + replacement in replaceFirstSubStringMatch()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | CharsetEncoderTest.java | 43 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder()
|