Searched defs:end (Results 1 - 25 of 65) sorted by relevance

123

/libcore/luni/src/main/java/java/lang/
H A DAppendable.java67 * to calling {@code append(csq.subSequence(start, end))}.
76 * @param end
81 * if {@code start < 0}, {@code end < 0}, {@code start > end}
82 * or {@code end} is greater than the length of {@code csq}.
86 Appendable append(CharSequence csq, int start, int end) throws IOException; argument
H A DCharSequence.java42 * to the {@code end} index (exclusive) of this sequence.
48 * @param end
49 * the end offset of the sub-sequence. It is exclusive, that is,
54 * if {@code start < 0}, {@code end < 0}, {@code start > end},
55 * or if {@code start} or {@code end} are greater than the
58 public CharSequence subSequence(int start, int end); argument
H A DStringBuilder.java302 * @param end
306 * if {@code start} or {@code end} are negative, {@code start}
307 * is greater than {@code end} or {@code end} is greater than
310 public StringBuilder append(CharSequence csq, int start, int end) { argument
311 append0(csq, start, end);
331 * end}. Shifts any remaining characters to the left.
335 * @param end
336 * the exclusive end index.
340 * length or greater than {@code end}
342 delete(int start, int end) argument
614 insert(int offset, CharSequence s, int start, int end) argument
636 replace(int start, int end, String string) argument
[all...]
/libcore/luni/src/main/java/java/util/regex/
H A DMatchResult.java32 int end(); method in interface:MatchResult
38 int end(int group); method in interface:MatchResult
H A DMatchResultImpl.java35 * elements specify start and end of the zero group, the next two specify
45 public int end() { method in class:MatchResultImpl
46 return end(0);
49 public int end(int group) { method in class:MatchResultImpl
54 return text.substring(start(), end());
/libcore/luni/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java32 * indefinitely, then {@code end(boolean)} after completing the operation. The
33 * argument to the {@code end} method should indicate if the I/O operation has
89 * should invoke the corresponding {@code end(boolean)} method.
96 * Indicates the end of a code section that has been started with
109 protected final void end(boolean success) throws AsynchronousCloseException { method in class:AbstractInterruptibleChannel
H A DAbstractSelector.java30 * {@code end}. It also holds the cancellation and the deletion of the key
112 * should invoke the corresponding {@code end(boolean)} method.
119 * Indicates the end of a code section that has been started with
122 protected final void end() { method in class:AbstractSelector
/libcore/luni/src/main/java/java/util/
H A DSortedSet.java52 * {@code SortedSet} which contains elements less than the end element. The
56 * @param end
57 * the end element.
58 * @return a subset where the elements are less than {@code end}.
60 * when the class of the end element is inappropriate for this
63 * when the end element is null and this {@code SortedSet} does
66 public SortedSet<E> headSet(E end); argument
81 * element but less than the end element. The returned {@code SortedSet} is
87 * @param end
88 * the end elemen
100 subSet(E start, E end) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DStrictLineReader.java32 * end of input is invalid and will be ignored, the caller may use {@code hasUnterminatedLine()}
38 * end-of-input reporting and a more restrictive definition of a line.
53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end
54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is
55 * an unterminated line, we set end == -1, otherwise end == pos. If the underlying
56 * {@code InputStream} throws an {@code IOException}, end may remain as either pos or -1.
60 private int end; field in class:StrictLineReader
145 * this end o
[all...]
/libcore/luni/src/main/java/libcore/net/url/
H A DFileHandler.java90 * @param end
97 protected void parseURL(URL url, String spec, int start, int end) { argument
98 if (end < start) {
102 if (start < end) {
103 parseString = spec.substring(start, end).replace('\\', '/');
H A DUrlUtils.java28 * handles ".." and "." segments at both the beginning and end of the path.
53 * We've encountered either the end of a segment or the end of the
130 * bounded between {@code start} and {@code end}. This returns {@code end}
133 public static int findFirstOf(String string, String chars, int start, int end) { argument
134 for (int i = start; i < end; i++) {
140 return end;
/libcore/luni/src/main/java/java/io/
H A DStringWriter.java206 * StringWriter.writer(csq.subsequence(start, end).toString())}. If {@code
215 * @param end
220 * if {@code start > end}, {@code start < 0}, {@code end < 0} or
221 * either {@code start} or {@code end} are greater or equal than
225 public StringWriter append(CharSequence csq, int start, int end) { argument
229 String output = csq.subSequence(start, end).toString();
H A DWriter.java209 * Writer.writer(csq.subsequence(start, end).toString())}. If {@code
218 * @param end
225 * if {@code start > end}, {@code start < 0}, {@code end < 0} or
226 * either {@code start} or {@code end} are greater or equal than
229 public Writer append(CharSequence csq, int start, int end) throws IOException { argument
233 write(csq.subSequence(start, end).toString());
H A DCharArrayWriter.java271 * specified by the parameters {@code start} and {@code end}. A call to
273 * CharArrayWriter.write(csq.subSequence(start, end).toString)}. If {@code
283 * @param end
288 * if {@code start < 0}, {@code end < 0}, {@code start > end},
289 * or if {@code end} is greater than the length of {@code csq}.
292 public CharArrayWriter append(CharSequence csq, int start, int end) { argument
296 String output = csq.subSequence(start, end).toString();
H A DBufferedReader.java49 * mark pos end</pre>
51 * last readable character. When {@code pos == end}, the buffer is empty and
67 private int end; field in class:BufferedReader
135 * the buffer still contains data; ie. if {@code pos < end}.
137 * @return the number of chars read into the buffer, or -1 if the end of the
141 // assert(pos == end);
149 end = result;
167 end -= mark;
174 end += count;
244 * @return the character read or -1 if the end o
[all...]
H A DPrintStream.java642 * @param end
647 * if {@code start > end}, {@code start < 0}, {@code end < 0} or
648 * either {@code start} or {@code end} are greater or equal than
651 public PrintStream append(CharSequence charSequence, int start, int end) { argument
655 print(charSequence.subSequence(start, end).toString());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java38 String text, Format.Field field, int begin, int end) {
52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) {
53 assertEquals(field + " " + begin + ".." + end,
79 * which stores start and end indexes and an attribute this range has
85 int end = iterator.getRunLimit();
91 result.add(new FieldContainer(start, end, attribute, value));
92 // System.out.println(start + " " + end + ": " + attribute + ",
95 // end +"," + attribute+ "," + value+ "));");
97 iterator.setIndex(end);
104 final int end; field in class:Support_Format.FieldContainer
37 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
109 FieldContainer(int start, int end, Attribute attribute) argument
114 FieldContainer(int start, int end, Attribute attribute, int value) argument
119 FieldContainer(int start, int end, Attribute attribute, Object value) argument
[all...]
/libcore/luni/src/main/java/java/nio/
H A DByteBufferAsCharBuffer.java178 @Override public CharBuffer subSequence(int start, int end) { argument
179 checkStartEndRemaining(start, end);
181 result.limit(position + end);
H A DBuffer.java191 void checkStartEndRemaining(int start, int end) { argument
192 if (end < start || start < 0 || end > remaining()) {
193 throw new IndexOutOfBoundsException("start=" + start + ", end=" + end +
/libcore/luni/src/main/java/java/text/
H A DStringCharacterIterator.java27 int start, end, offset; field in class:StringCharacterIterator
32 * end index is set to the length of the string.
40 end = string.length();
46 * to the beginning of the string, the end index is set to the length of the
60 end = string.length();
61 if (location < 0 || location > end) {
69 * with the begin, end and current index set to the specified values.
75 * @param end
80 * if {@code start < 0}, {@code start > end}, {@code location <
81 * start}, {@code location > end} o
84 StringCharacterIterator(String value, int start, int end, int location) argument
[all...]
/libcore/luni/src/main/java/javax/net/ssl/
H A DDistinguishedNameParser.java36 private int end; field in class:DistinguishedNameParser
59 return null; // reached the end of DN
72 throw new IllegalStateException("Unexpected end of DN: " + dn);
75 // mark the end of attribute type
76 end = pos;
85 throw new IllegalStateException("Unexpected end of DN: " + dn);
98 if ((end - beg > 4) && (chars[beg + 3] == '.')
105 return new String(chars, beg, end - beg);
112 end = beg;
116 throw new IllegalStateException("Unexpected end o
[all...]
/libcore/luni/src/main/java/libcore/net/
H A DUriCodec.java42 public final String validate(String uri, int start, int end, String name) argument
44 for (int i = start; i < end; ) {
52 if (i + 2 >= end) {
66 return uri.substring(start, end);
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DDNParser.java48 private int end; field in class:DNParser
77 return null; // reached the end of DN
90 // unexpected end of DN
94 // mark the end of attribute type
95 end = pos;
104 // unexpected end of DN
118 if ((end - beg > 4) && (chars[beg + 3] == '.')
125 return new String(chars, beg, end - beg);
134 end = beg;
137 // unexpected end o
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java37 String text, Format.Field field, int begin, int end) {
55 assertEquals("Test " + count + ": incorrect end index for field"
56 + field, end, pos.getEndIndex());
81 * which stores start and end indexes and an attribute this range
88 int end = iterator.getRunLimit();
94 result.add(new FieldContainer(start, end, attribute, value));
95 // System.out.println(start + " " + end + ": " + attribute + ",
98 // end +"," + attribute+ "," + value+ "));");
100 iterator.setIndex(end);
106 int start, end; field in class:Support_Format.FieldContainer
36 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
113 FieldContainer(int start, int end, AttributedCharacterIterator.Attribute attribute) argument
119 FieldContainer(int start, int end, Attribute attribute, int value) argument
124 FieldContainer(int start, int end, Attribute attribute, Object value) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DURLStreamHandler.java80 * @param end
85 protected void parseURL(URL url, String spec, int start, int end) { argument
89 if (end < start) {
90 throw new StringIndexOutOfBoundsException(spec, start, end - start);
104 fileStart = UrlUtils.findFirstOf(spec, "/?#", authorityStart, end);
166 while (pos < end) {
170 nextPos = end;
174 nextPos = UrlUtils.findFirstOf(spec, "#", pos, end);
179 nextPos = UrlUtils.findFirstOf(spec, "?#", pos, end);

Completed in 272 milliseconds

123