Home
last modified time | relevance | path

Searched refs:replacement (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java144 private byte[] replacement; field in CharsetEncoder
190 byte[] replacement) in CharsetEncoder() argument
193 this(cs, averageBytesPerChar, maxBytesPerChar, replacement, false); in CharsetEncoder()
202 …ed CharsetEncoder(Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, in CharsetEncoder() argument
219 this.replacement = replacement; in CharsetEncoder()
225 replaceWith(replacement); in CharsetEncoder()
273 public final byte[] replacement() { in replacement() method in CharsetEncoder
278 return Arrays.copyOf(replacement, replacement.length); in replacement()
321 this.replacement = Arrays.copyOf(newReplacement, newReplacement.length); in replaceWith()
323 implReplaceWith(this.replacement); in replaceWith()
[all …]
DCharsetDecoder.java144 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/
DCDATASectionImpl.java82 TextImpl replacement = new TextImpl(document, getData()); in replaceWithText() local
83 parent.insertBefore(replacement, this); in replaceWithText()
85 return replacement; in replaceWithText()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DISOCharsetTest.java42 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal()
43 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
DASCCharsetTest.java43 this.testingCharset.newEncoder().replacement()[0], in testEncode_Normal()
44 this.testingCharset.newEncoder().replacement()[0] }; in testEncode_Normal()
DCharsetEncoderTest.java68 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 …]
DCharsetEncoder2Test.java80 byte[] replacement) { in MockCharsetEncoderForHarmony141() argument
81 super(cs, averageBytesPerChar, maxBytesPerChar, replacement); in MockCharsetEncoderForHarmony141()
DCharsetTest.java53 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");
DCharsetDecoderTest.java85 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/
DCharsetEncoder.java40 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/
DMatcher.java714 public Matcher appendReplacement(StringBuffer sb, String replacement) { in appendReplacement() argument
717 appendEvaluated(sb, replacement); in appendReplacement()
837 public String replaceAll(String replacement) { in replaceAll() argument
843 appendReplacement(sb, replacement); in replaceAll()
885 public String replaceFirst(String replacement) { in replaceFirst() argument
886 if (replacement == null) in replaceFirst()
892 appendReplacement(sb, replacement); in replaceFirst()
/libcore/ojluni/annotations/mmodule/java/nio/charset/
DCharsetEncoder.annotated.java40 …t.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement) { throw new Ru… in CharsetEncoder() argument
43 …t.Charset cs, float averageBytesPerChar, float maxBytesPerChar, byte[] replacement, boolean truste… in CharsetEncoder() argument
49 public final byte[] replacement() { throw new RuntimeException("Stub!"); } in replacement() method in CharsetEncoder
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DMatcher.annotated.java76 …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/
DMatcher.java119 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/
DString.java2268 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/ojluni/annotations/hiddenapi/java/lang/
DString.java334 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/
DString.annotated.java150 …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/
DHashMap.java2050 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 …]
DTreeMap.java2345 TreeMapEntry<K,V> replacement = (p.left != null ? p.left : p.right); in deleteEntry() local
2347 if (replacement != null) { in deleteEntry()
2349 replacement.parent = p.parent; in deleteEntry()
2351 root = replacement; in deleteEntry()
2353 p.parent.left = replacement; in deleteEntry()
2355 p.parent.right = replacement; in deleteEntry()
2362 fixAfterDeletion(replacement); in deleteEntry()
/libcore/ojluni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java1004 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()
DConcurrentHashMap.java3017 TreeNode<K,V> replacement; in removeTreeNode() local
3054 replacement = sr; in removeTreeNode()
3056 replacement = p; in removeTreeNode()
3059 replacement = pl; in removeTreeNode()
3061 replacement = pr; in removeTreeNode()
3063 replacement = p; in removeTreeNode()
3064 if (replacement != p) { in removeTreeNode()
3065 TreeNode<K,V> pp = replacement.parent = p.parent; in removeTreeNode()
3067 r = replacement; in removeTreeNode()
3069 pp.left = replacement; in removeTreeNode()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DAbstractZipFileTest.java70 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/
DDomTest.java699 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/
DLocaleMatcher.java341 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/
DCharsetEncoderTest.java43 byte[] result = Charset.forName(charset).newEncoder().replacement(); in assertReplacementBytesForEncoder()

12