/libcore/ojluni/src/main/java/java/lang/ |
H A D | AbstractStringBuilder.java | 515 * this sequence up to the (exclusive) index {@code end}. The length 516 * of this sequence is increased by the value of {@code end - start}. 531 * @param end the end index of the subsequence to be appended. 535 * {@code start} is greater than {@code end} or 536 * {@code end} is greater than {@code s.length()} 540 public AbstractStringBuilder append(CharSequence s, int start, int end) { argument 543 if ((start < 0) || (start > end) || (end > s.length())) 545 "start " + start + ", end " 770 delete(int start, int end) argument 868 replace(int start, int end, String str) argument 930 subSequence(int start, int end) argument 948 substring(int start, int end) argument 1176 insert(int dstOffset, CharSequence s, int start, int end) argument [all...] |
H A D | StringBuffer.java | 48 * {@code append} method always adds these characters at the end 347 public synchronized StringBuffer append(CharSequence s, int start, int end) argument 350 super.append(s, start, end); 428 public synchronized StringBuffer delete(int start, int end) { argument 430 super.delete(start, end); 450 public synchronized StringBuffer replace(int start, int end, String str) { argument 452 super.replace(start, end, str); 470 public synchronized CharSequence subSequence(int start, int end) { argument 471 return super.substring(start, end); 479 public synchronized String substring(int start, int end) { argument 544 insert(int dstOffset, CharSequence s, int start, int end) argument [all...] |
H A D | StringBuilder.java | 44 * {@code append} method always adds these characters at the end 175 public StringBuilder append(CharSequence s, int start, int end) { argument 176 super.append(s, start, end); 244 public StringBuilder delete(int start, int end) { argument 245 super.delete(start, end); 262 public StringBuilder replace(int start, int end, String str) { argument 263 super.replace(start, end, str); 319 int start, int end) 321 super.insert(dstOffset, s, start, end); 318 insert(int dstOffset, CharSequence s, int start, int end) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
H A D | InflaterTest.java | 45 * java.util.zip.Inflater#end() 48 // test method of java.util.zip.inflater.end() 54 inflate.end(); 64 i.end(); 66 i.end(); 91 inflate.end(); 119 inflateDiction.end(); 135 inflate.end(); 174 deflate.end(); 175 inflate.end(); [all...] |
H A D | DeflaterTest.java | 81 assertEquals("Deflater at end of stream, should return 0", 0, defl 87 defl.end(); 105 infl.end(); 125 assertEquals("Deflater at end of stream, should return 0", 0, defl.deflate( 131 defl.end(); 149 infl.end(); 170 defl.end(); 174 * java.util.zip.Deflater#end() 186 defl.end(); 187 helper_end_test(defl, "end"); [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ArraysTest.java | 285 int begin = 100, end = 500; 289 for(int i = begin; i < end - 1; ++i) { 293 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); 297 Arrays.parallelPrefix(list, begin, end, null); 303 Arrays.parallelPrefix((int[]) null, begin, end, (x, y) -> x + y); 309 Arrays.parallelPrefix(list, end, begin, (x, y) -> x + y); 360 int begin = 100, end = 500; 364 for(int i = begin; i < end - 1; ++i) { 368 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); 372 Arrays.parallelPrefix(list, begin, end, nul [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | CharsetUtils.java | 54 int end = offset + length; 56 for (int i = offset; i < end; ++i) {
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_StringReader.java | 109 * an int. The 2 higher-order bytes are set to 0. If the end of reader was 112 * @return the character read or -1 if end of reader. 134 * if the end of reader was encountered. 142 * @return the number of characters read or -1 if end of reader. 157 int end = pos + count > this.count ? this.count : pos 159 str.getChars(pos, end, buf, offset); 160 int read = end - pos; 161 pos = end;
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
H A D | OldMatcherTest.java | 164 int end = 6; 174 start = end; 175 end += 3; 186 int end = 6; 192 assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), mat.end(i)); 194 assertEquals("End is wrong for group " + i + " :" + mat.group(i), start + 4 + mat.group(i).length(), mat.end(i)); 196 start = end; 197 end += 3; 223 int end = 6; 229 assertEquals(end, ma [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
H A D | HeapCharBuffer.java | 206 String toString(int start, int end) { // package-private argument 208 return new String(hb, start + offset, end - start); 214 public CharBuffer subSequence(int start, int end) { argument 216 || (end > length()) 217 || (start > end)) 223 pos + end,
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Instant.java | 1097 * The start and end points are {@code this} and the specified instant. 1098 * The result will be negative if the end is before the start. 1111 * amount = start.until(end, SECONDS); 1112 * amount = SECONDS.between(start, end); 1128 * @param endExclusive the end date, exclusive, which is converted to an {@code Instant}, not null 1130 * @return the amount of time between this instant and the end instant 1131 * @throws DateTimeException if the amount cannot be calculated, or the end 1138 Instant end = Instant.from(endExclusive); 1142 case NANOS: return nanosUntil(end); 1143 case MICROS: return nanosUntil(end) / 100 1156 nanosUntil(Instant end) argument 1162 secondsUntil(Instant end) argument [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | Inflater.java | 62 * decompresser.end(); 114 guard.open("end"); 232 * Returns true if the end of the compressed data stream has been 234 * @return true if the end of the compressed data stream has been 379 public void end() { method in class:Inflater 386 end(addr); 401 end(); 426 private native static void end(long addr); method in class:Inflater
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | ObjectInputStream.java | 136 * Non-object reads which exceed the end of the allotted data will reflect the 137 * end of data in the same way that they would indicate the end of the stream: 140 * writeObject method, then the end of default serialized data marks the end of 144 * behave in the same manner--if the stream is already positioned at the end of 150 * end of data written by writeExternal methods is not demarcated, and hence 255 /** flag set when at end of field value block with no TC_ENDBLOCKDATA */ 509 * knows to simulate end-of-custom-data behavior. 549 * knows to simulate end 2406 private int end = -1; field in class:ObjectInputStream.BlockDataInputStream [all...] |
H A D | StringWriter.java | 151 * end)</tt> when <tt>csq</tt> is not <tt>null</tt>, behaves in 155 * out.write(csq.subSequence(start, end).toString()) </pre> 166 * @param end 173 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt> 174 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than 179 public StringWriter append(CharSequence csq, int start, int end) { argument 181 write(cs.subSequence(start, end).toString());
|
H A D | Writer.java | 236 * end)</tt> when <tt>csq</tt> is not <tt>null</tt> behaves in exactly the 240 * out.write(csq.subSequence(start, end).toString()) </pre> 251 * @param end 258 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt> 259 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than 267 public Writer append(CharSequence csq, int start, int end) throws IOException { argument 269 write(cs.subSequence(start, end).toString());
|
H A D | Console.java | 64 * The console-read methods return <tt>null</tt> when the end of the 132 * by a linefeed, or an end of stream. 242 * if an end of stream has been reached. 270 * if an end of stream has been reached. 306 * or <tt>null</tt> if an end of stream has been reached. 350 * or <tt>null</tt> if an end of stream has been reached. 381 len--; //remove CR at end; 383 len--; //remove LF at end; 426 int end = offset + length; 428 end < [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | AsynchronousFileChannelImpl.java | 89 * Marks the end of an I/O operation. 91 protected final void end() { method in class:AsynchronousFileChannelImpl 96 * Marks end of I/O operation 98 protected final void end(boolean completed) throws IOException { method in class:AsynchronousFileChannelImpl 99 end(); 180 end(); 204 end();
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | DoubleNodeTest.java | 94 nb.end(); 170 for (int end : nums) { 171 if (start < 0 || end < 0 || end < start || end > array.length) 173 Node.OfDouble slice = n.truncate(start, end, Double[]::new); 175 for (int k = start; k < end; k++)
|
H A D | IntNodeTest.java | 94 nb.end(); 168 for (int end : nums) { 169 if (start < 0 || end < 0 || end < start || end > array.length) 171 Node.OfInt slice = n.truncate(start, end, Integer[]::new); 173 for (int k = start; k < end; k++)
|
H A D | LongNodeTest.java | 94 nb.end(); 169 for (int end : nums) { 170 if (start < 0 || end < 0 || end < start || end > array.length) 172 Node.OfLong slice = n.truncate(start, end, Long[]::new); 174 for (int k = start; k < end; k++)
|
H A D | NodeTest.java | 71 nb.end(); 145 for (int end : nums) { 146 if (start < 0 || end < 0 || end < start || end > array.length) 148 Node<Integer> slice = n.truncate(start, end, Integer[]::new); 150 for (int k = start; k < end; k++)
|
/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | Pattern.java | 236 * <td headers="matches">The end of a line</td></tr> 244 * <td headers="matches">The end of the previous match</td></tr> 246 * <td headers="matches">The end of the input but for the final 249 * <td headers="matches">The end of the input</td></tr> 436 * the end of a line of the input character sequence. The following are 462 * line terminators and only match at the beginning and the end, respectively, 465 * except at the end of input. When in {@link #MULTILINE} mode <tt>$</tt> 466 * matches just before a line terminator or the end of the input sequence. 747 * within a group; in the latter case, flags are restored at the end of the 815 * with <tt>#</tt> are ignored until the end o [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
H A D | CopticDate.java | 301 CopticDate end = getChronology().date(endExclusive); 303 return LocalDate.from(this).until(end, unit); // TODO: this is wrong 305 return unit.between(this, end); 311 CopticDate end = getChronology().date(endDate); 312 long totalMonths = (end.prolepticYear - this.prolepticYear) * 13 + (end.month - this.month); // safe 313 int days = end.day - this.day; 317 days = (int) (end.toEpochDay() - calcDate.toEpochDay()); // safe 320 days -= end.lengthOfMonth();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | DeflaterTest.java | 47 deflater.end(); 48 inflater.end(); 70 inflater.end();
|
/libcore/ojluni/src/main/native/ |
H A D | FileInputStream.c | 73 jlong end = jlong_zero; local 85 } else if ((end = IO_Lseek(fd, toSkip, (jint)SEEK_CUR)) == -1) { 88 return (end - cur); 96 // negative if we're positioned past the end of the file. We must return 0
|