Home
last modified time | relevance | path

Searched refs:insert (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DStringBuilder.java271 public StringBuilder insert(int index, char[] str, int offset, in insert() method in StringBuilder
274 super.insert(index, str, offset, len); in insert()
282 public StringBuilder insert(int offset, Object obj) { in insert() method in StringBuilder
283 super.insert(offset, obj); in insert()
291 public StringBuilder insert(int offset, String str) { in insert() method in StringBuilder
292 super.insert(offset, str); in insert()
300 public StringBuilder insert(int offset, char[] str) { in insert() method in StringBuilder
301 super.insert(offset, str); in insert()
309 public StringBuilder insert(int dstOffset, CharSequence s) { in insert() method in StringBuilder
310 super.insert(dstOffset, s); in insert()
[all …]
DStringBuffer.java488 public synchronized StringBuffer insert(int index, char[] str, int offset, in insert() method in StringBuffer
492 super.insert(index, str, offset, len); in insert()
500 public synchronized StringBuffer insert(int offset, Object obj) { in insert() method in StringBuffer
502 super.insert(offset, String.valueOf(obj)); in insert()
510 public synchronized StringBuffer insert(int offset, String str) { in insert() method in StringBuffer
512 super.insert(offset, str); in insert()
520 public synchronized StringBuffer insert(int offset, char[] str) { in insert() method in StringBuffer
522 super.insert(offset, str); in insert()
531 public StringBuffer insert(int dstOffset, CharSequence s) { in insert() method in StringBuffer
535 super.insert(dstOffset, s); in insert()
[all …]
DAbstractStringBuilder.java960 public AbstractStringBuilder insert(int index, char[] str, int offset, in insert() method in AbstractStringBuilder
995 public AbstractStringBuilder insert(int offset, Object obj) { in insert() method in AbstractStringBuilder
996 return insert(offset, String.valueOf(obj)); in insert()
1030 public AbstractStringBuilder insert(int offset, String str) { in insert() method in AbstractStringBuilder
1067 public AbstractStringBuilder insert(int offset, char[] str) { in insert() method in AbstractStringBuilder
1099 public AbstractStringBuilder insert(int dstOffset, CharSequence s) { in insert() method in AbstractStringBuilder
1103 return this.insert(dstOffset, (String)s); in insert()
1104 return this.insert(dstOffset, s, 0, s.length()); in insert()
1151 public AbstractStringBuilder insert(int dstOffset, CharSequence s, in insert() method in AbstractStringBuilder
1190 public AbstractStringBuilder insert(int offset, boolean b) { in insert() method in AbstractStringBuilder
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringBufferTest.java95 testBuffer.insert(-1, Double.MAX_VALUE); in test_insertID()
102 testBuffer.insert(testBuffer.length() + 1, Double.MAX_VALUE); in test_insertID()
111 testBuffer.insert(-1, Float.MAX_VALUE); in test_insertIF()
118 testBuffer.insert(testBuffer.length() + 1, Float.MAX_VALUE); in test_insertIF()
127 testBuffer.insert(-1, Integer.MAX_VALUE); in test_insertII()
134 testBuffer.insert(testBuffer.length() + 1, Integer.MAX_VALUE); in test_insertII()
143 testBuffer.insert(-1, Long.MAX_VALUE); in test_insertIJ()
150 testBuffer.insert(testBuffer.length() + 1, Long.MAX_VALUE); in test_insertIJ()
160 testBuffer.insert(-1, obj1); in test_insertILjava_lang_Object()
167 testBuffer.insert(testBuffer.length() + 1, obj1); in test_insertILjava_lang_Object()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStringBuilderTest.java765 assertSame(sb, sb.insert(0, true)); in test_insertIZ()
770 assertSame(sb, sb.insert(0, false)); in test_insertIZ()
775 assertSame(sb, sb.insert(2, false)); in test_insertIZ()
780 assertSame(sb, sb.insert(4, false)); in test_insertIZ()
786 sb.insert(-1, false); in test_insertIZ()
794 sb.insert(5, false); in test_insertIZ()
807 assertSame(sb, sb.insert(0, 'a')); in test_insertIC()
812 assertSame(sb, sb.insert(0, 'b')); in test_insertIC()
817 assertSame(sb, sb.insert(2, 'b')); in test_insertIC()
822 assertSame(sb, sb.insert(4, 'b')); in test_insertIC()
[all …]
DStringBufferTest.java204 assertSame(sb, sb.insert(0, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence()
209 assertSame(sb, sb.insert(2, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence()
214 assertSame(sb, sb.insert(4, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence()
219 assertSame(sb, sb.insert(4, (CharSequence) null)); in test_insertILjava_lang_CharSequence()
225 sb.insert(-1, (CharSequence) "ab"); in test_insertILjava_lang_CharSequence()
233 sb.insert(5, (CharSequence) "ab"); in test_insertILjava_lang_CharSequence()
247 assertSame(sb, sb.insert(0, (CharSequence) "ab", 0, 2)); in test_insertILjava_lang_CharSequenceII()
252 assertSame(sb, sb.insert(0, (CharSequence) "ab", 0, 1)); in test_insertILjava_lang_CharSequenceII()
257 assertSame(sb, sb.insert(2, (CharSequence) "ab", 0, 2)); in test_insertILjava_lang_CharSequenceII()
262 assertSame(sb, sb.insert(2, (CharSequence) "ab", 0, 1)); in test_insertILjava_lang_CharSequenceII()
[all …]
DStringBuffer2Test.java327 testBuffer.insert(15, buf); in test_insertI$C()
334 buf1.insert(-1, (char[]) null); in test_insertI$C()
349 testBuffer.insert(8, c, 0, 4); in test_insertI$CII()
354 buf1.insert(-1, (char[]) null, 0, 0); in test_insertI$CII()
361 testBuffer.insert(testBuffer.length() - 1, c, -1, 1); in test_insertI$CII()
374 testBuffer.insert(15, 'T'); in test_insertIC()
385 testBuffer.insert(15, Double.MAX_VALUE); in test_insertID()
396 testBuffer.insert(15, Float.MAX_VALUE); in test_insertIF()
411 testBuffer.insert(15, 100); in test_insertII()
422 testBuffer.insert(15, 88888888888888888L); in test_insertIJ()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/
DAbstractStringBuilder.java189 public java.lang.AbstractStringBuilder insert(int index, char[] str, int offset, int len) { in insert() method in AbstractStringBuilder
193 public java.lang.AbstractStringBuilder insert(int offset, java.lang.Object obj) { in insert() method in AbstractStringBuilder
197 public java.lang.AbstractStringBuilder insert(int offset, java.lang.String str) { in insert() method in AbstractStringBuilder
201 public java.lang.AbstractStringBuilder insert(int offset, char[] str) { in insert() method in AbstractStringBuilder
205 public java.lang.AbstractStringBuilder insert(int dstOffset, java.lang.CharSequence s) { in insert() method in AbstractStringBuilder
209 public java.lang.AbstractStringBuilder insert( in insert() method in AbstractStringBuilder
214 public java.lang.AbstractStringBuilder insert(int offset, boolean b) { in insert() method in AbstractStringBuilder
218 public java.lang.AbstractStringBuilder insert(int offset, char c) { in insert() method in AbstractStringBuilder
222 public java.lang.AbstractStringBuilder insert(int offset, int i) { in insert() method in AbstractStringBuilder
226 public java.lang.AbstractStringBuilder insert(int offset, long l) { in insert() method in AbstractStringBuilder
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DStringBuffer.annotated.java105 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int index, char[] str, int … in insert() method in StringBuffer
107 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int offset, @libcore.util.N… in insert() method in StringBuffer
109 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int offset, @libcore.util.N… in insert() method in StringBuffer
111 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int offset, char[] str) { t… in insert() method in StringBuffer
113 @libcore.util.NonNull public java.lang.StringBuffer insert(int dstOffset, @libcore.util.Nullable ja… in insert() method in StringBuffer
115 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int dstOffset, @libcore.uti… in insert() method in StringBuffer
117 @libcore.util.NonNull public java.lang.StringBuffer insert(int offset, boolean b) { throw new Runti… in insert() method in StringBuffer
119 @libcore.util.NonNull public synchronized java.lang.StringBuffer insert(int offset, char c) { throw… in insert() method in StringBuffer
121 @libcore.util.NonNull public java.lang.StringBuffer insert(int offset, int i) { throw new RuntimeEx… in insert() method in StringBuffer
123 @libcore.util.NonNull public java.lang.StringBuffer insert(int offset, long l) { throw new RuntimeE… in insert() method in StringBuffer
[all …]
DStringBuilder.annotated.java76 @libcore.util.NonNull public java.lang.StringBuilder insert(int index, char[] str, int offset, int … in insert() method in StringBuilder
78 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, @libcore.util.Nullable java… in insert() method in StringBuilder
80 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, @libcore.util.Nullable java… in insert() method in StringBuilder
82 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, char[] str) { throw new Run… in insert() method in StringBuilder
84 @libcore.util.NonNull public java.lang.StringBuilder insert(int dstOffset, @libcore.util.Nullable j… in insert() method in StringBuilder
86 @libcore.util.NonNull public java.lang.StringBuilder insert(int dstOffset, @libcore.util.Nullable j… in insert() method in StringBuilder
88 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, boolean b) { throw new Runt… in insert() method in StringBuilder
90 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, char c) { throw new Runtime… in insert() method in StringBuilder
92 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, int i) { throw new RuntimeE… in insert() method in StringBuilder
94 @libcore.util.NonNull public java.lang.StringBuilder insert(int offset, long l) { throw new Runtime… in insert() method in StringBuilder
[all …]
/libcore/luni/src/main/java/java/math/
DBigDecimal.java2214 result.insert(end - scale, '.'); in toString()
2216 result.insert(begin - 1, "0."); in toString()
2217 result.insert(begin + 1, CH_ZEROS, 0, -(int)exponent - 1); in toString()
2221 result.insert(begin, '.'); in toString()
2224 result.insert(end, 'E'); in toString()
2226 result.insert(++end, '+'); in toString()
2228 result.insert(++end, Long.toString(exponent)); in toString()
2258 result.insert(end - scale, '.'); in toEngineeringString()
2260 result.insert(begin - 1, "0."); in toEngineeringString()
2261 result.insert(begin + 1, CH_ZEROS, 0, -(int)exponent - 1); in toEngineeringString()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldConnectionTest.java1179 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_int() local
1180 prst = conn.prepareStatement(insert, in testPrepareStatement_String_int()
1188 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_int() local
1190 prst = conn.prepareStatement(insert, in testPrepareStatement_String_int()
1207 prst1 = conn.prepareStatement(insert, Statement.RETURN_GENERATED_KEYS); in testPrepareStatement_String_int()
1858 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_intArray() local
1859 prst = conn.prepareStatement(insert, new int[] { 0, 1, 2 }); in testPrepareStatement_String_intArray()
2089 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_StringArray() local
2090 conn.prepareStatement(insert, new String[] { "id", "name", in testPrepareStatement_String_StringArray()
DOldResultSetMetaDataTest.java284 String insert = "insert into DecimalNumbers values (1.5, 20.55, 30.666, 100000);"; in testGetPrecision() local
288 st2.executeUpdate(insert); in testGetPrecision()
349 String insert = "insert into DecimalNumbers values (1.5, 20.55, 30.666);"; in testGetScale() local
354 st.executeUpdate(insert); in testGetScale()
DOldStatementTest.java988 String insert = "insert into zoo (id, name, family) values (8, 'Tuzik', 'dog');"; in testGeneratedKeys() local
1177 String insert = "insert into zoo (id, name, family) values (4, 'Vorobuy', 'bear');"; in testGetResultSet() local
1178 st.execute(insert); in testGetResultSet()
1191 insert = "insert into zoo (id, name, family) values (3, 'Vorobey', 'sparrow');"; in testGetResultSet()
1192 st.execute(insert); in testGetResultSet()
DOldPreparedStatementTest.java1584 String insert in testSetNullIntintString() local
1586 ps = conn.prepareStatement(insert); in testSetNullIntintString()
1613 String insert in testSetNullIntintString() local
1615 ps = conn.prepareStatement(insert); in testSetNullIntintString()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DCharacterDataImpl.java72 buffer.insert(offset, arg); in insertData()
/libcore/tools/testmapping/
Dsave_logs.py82 parts.insert(0, tail)
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java952 buf.insert(insertionPoint, '.'); in toString()
/libcore/ojluni/src/main/java/java/util/jar/
DManifest.java177 line.insert(index, "\r\n "); in make72Safe()
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java2381 insert(obj, size); in assign()
2422 private void insert(Object obj, int handle) { in insert() method in ObjectOutputStream.HandleTable
2438 insert(objs[i], i); in growSpine()
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectOutputStream.java574 private void insert(java.lang.Object obj, int handle) { in insert() method in ObjectOutputStream.HandleTable
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java2274 buf.insert(preLen, padChar); in format()
3225 buf.insert(pos, hi); in format()
3227 buf.insert(pos + 1, Math.abs(hi)); in format()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java4495 sb.insert(begin, zero);