Searched refs:end (Results 1 - 25 of 144) sorted by relevance

123456

/libcore/ojluni/src/main/java/java/text/
H A DStringCharacterIterator.java56 private int end; field in class:StringCharacterIterator
57 // invariant: begin <= pos <= end
85 * @param end Index of the character following the last character
88 public StringCharacterIterator(String text, int begin, int end, int pos) { argument
93 if (begin < 0 || begin > end || end > text.length())
96 if (pos < begin || pos > end)
100 this.end = end;
118 this.end
[all...]
H A DCharacterIteratorFieldDelegate.java56 public void formatted(Format.Field attr, Object value, int start, int end, argument
58 if (start != end) {
71 end - start, as.length() - aStart) +
82 if (size < end) {
86 buffer.substring(aStart, end));
90 size = end;
96 int start, int end, StringBuffer buffer) {
97 formatted(attr, value, start, end, buffer);
95 formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
H A DDontCareFieldPosition.java39 int end, StringBuffer buffer) {
42 int start, int end, StringBuffer buffer) {
H A DFieldPosition.java46 * <li>By an integer constant, whose names typically end with
76 * Input: Desired field to determine start and end offsets for.
100 * identified by constants, whose names typically end with _FIELD,
189 * Sets the end index. For use by subclasses of Format.
199 * field the FieldPosition is associated with, the begin/end will be
273 * An implementation of FieldDelegate that will adjust the begin/end
280 * is true, and <code>formatted</code> is invoked, the begin/end
286 int end, StringBuffer buffer) {
289 setEndIndex(end);
290 encounteredField = (start != end);
285 formatted(Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
294 formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DOptionalDataException.java29 * unread primitive data, or the end of data belonging to a serialized
39 * <li>An attempt was made to read past the end of data consumable by a
64 OptionalDataException(boolean end) { argument
66 eof = end;
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatchResult.java88 public int end(); method in interface:MatchResult
96 * the expression <i>m.</i><tt>end(0)</tt> is equivalent to
97 * <i>m.</i><tt>end()</tt>. </p>
114 public int end(int group); method in interface:MatchResult
121 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(),</tt>&nbsp;<i>m.</i><tt>end())</tt>
143 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(</tt><i>g</i><tt>),</tt>&nbsp;<i>m.</i><tt>end(</tt><i>g</i><tt>))</tt>
H A DMatcher.java73 * <p> The explicit state of a matcher includes the start and end indices of
74 * the most recent successful match. It also includes the start and end
138 * Holds the end of the region, or input.length() if the matching should
139 * go until the end of the input.
250 public int end() { method in class:Matcher
251 return end(0);
260 * the expression <i>m.</i><tt>end(0)</tt> is equivalent to
261 * <i>m.</i><tt>end()</tt>. </p>
278 public int end(int group) { method in class:Matcher
288 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(),</tt>&nbsp;<i>m.</i><tt>end())</t
772 region(int start, int end) argument
1014 reset(CharSequence input, int start, int end) argument
1107 setInputImpl(long addr, String s, int start, int end) argument
1137 public int end() { method in class:Matcher.OffsetBasedMatchResult
1142 public int end(int group) { method in class:Matcher.OffsetBasedMatchResult
[all...]
/libcore/ojluni/src/main/java/sun/net/www/
H A DHeaderParser.java68 * range from "start" to "end-1"
70 public HeaderParser subsequence (int start, int end) { argument
71 if (start == 0 && end == nkeys) {
74 if (start < 0 || start >= end || end > nkeys)
75 throw new IllegalArgumentException ("invalid start or end");
79 System.arraycopy (tab, start, n.tab, 0, (end-start));
80 n.nkeys= (end-start);
89 int beg = 0, end = 0, i = 0;
93 while (end < le
[all...]
/libcore/ojluni/src/main/java/sun/util/locale/
H A DStringTokenIterator.java40 private int end; field in class:StringTokenIterator
67 return end;
76 start = end + 1;
77 end = nextDelimiter(start);
78 token = text.substring(start, end);
80 start = end;
88 return (end < text.length());
96 end = nextDelimiter(start);
97 token = text.substring(start, end);
/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/ojluni/src/main/java/java/nio/
H A DStringCharBuffer.java35 StringCharBuffer(CharSequence s, int start, int end) { // package-private argument
36 super(-1, start, end, s.length());
38 if ((start < 0) || (start > n) || (end < start) || (end > n))
101 final String toString(int start, int end) { argument
102 return str.toString().substring(start + offset, end + offset);
105 public final CharBuffer subSequence(int start, int end) { argument
111 pos + checkIndex(end, pos),
H A DCharBuffer.java215 * -1 if this source of characters is at its end
247 * will be <tt>end</tt>, and its mark will be undefined. </p>
254 * @param end The index of the character following the last character to be
260 * <tt>end</tt>
263 public static CharBuffer wrap(CharSequence csq, int start, int end) { argument
265 return new StringCharBuffer(csq, start, end);
455 int end = offset + length;
456 for (int i = offset; i < end; i++)
569 int end = offset + length;
570 for (int i = offset; i < end;
636 put(String src, int start, int end) argument
905 toString(int start, int end) argument
962 subSequence(int start, int end) argument
1023 append(CharSequence csq, int start, int end) argument
[all...]
H A DByteBufferAsCharBuffer.java160 public String toString(int start, int end) { argument
161 if ((end > limit()) || (start > end))
164 int len = end - start;
169 db.limit(end);
179 public CharBuffer subSequence(int start, int end) { argument
186 if ((start < 0) || (end > len) || (start > end))
191 pos + end,
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DRangeTest.java63 for (int end : Arrays.asList(1, 10, -1, -10)) {
64 setContext("end", end);
65 int size = (start < end) ? end - start : 0;
67 for (int i = start, p = 0; i < end; i++, p++) {
71 int[] inc = IntStream.range(start, end).toArray();
75 withData(intRangeData(start, end)).stream(s -> s).
83 for (int end : Arrays.asList(1, 10, -1, -10)) {
84 setContext("end", en
123 intRangeData(int start, int end) argument
127 intRangeClosedData(int start, int end) argument
206 longRangeData(long start, long end) argument
210 longRangeClosedData(long start, long end) argument
[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...]
H A DSupport_StringReader.java109 * 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DMatcher2Test.java49 m.end();
67 m.end(1);
94 assertEquals(8, m.end());
96 assertEquals(4, m.end(1));
98 assertEquals(8, m.end(2));
107 m.end(3);
125 m.end(-1);
138 assertEquals(16, m.end());
140 assertEquals(12, m.end(1));
142 assertEquals(16, m.end(
[all...]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DMatcher2Test.java47 m.end();
65 m.end(1);
92 assertEquals(8, m.end());
94 assertEquals(4, m.end(1));
96 assertEquals(8, m.end(2));
105 m.end(3);
123 m.end(-1);
136 assertEquals(16, m.end());
138 assertEquals(12, m.end(1));
140 assertEquals(16, m.end(
[all...]
/libcore/ojluni/src/main/java/java/util/stream/
H A DSink.java40 * {@code end()} method. After calling {@code end()}, you should not call
49 * it to the active state, and the {@code end()} method transitions it back into
94 * {@code begin()}, {@code end()}, and {@code cancellationRequested()} to
121 * before sending any data to the sink. After calling {@link #end()},
139 default void end() {} method in interface:Sink
238 * sinks. The {@code begin}, {@code end}, and
258 public void end() { method in class:Sink.ChainedReference
259 downstream.end();
270 * sinks. The {@code begin}, {@code end}, an
290 public void end() { method in class:Sink.ChainedInt
322 public void end() { method in class:Sink.ChainedLong
354 public void end() { method in class:Sink.ChainedDouble
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DCharsetUtils.java49 int end = offset + length;
51 for (int i = offset; i < end; ++i) {
/libcore/ojluni/src/main/java/java/lang/
H A DAppendable.java78 * end)</tt> when <tt>csq</tt> is not <tt>null</tt>, behaves in
82 * out.append(csq.subSequence(start, end)) </pre>
93 * @param end
100 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt>
101 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than
107 Appendable append(CharSequence csq, int start, int end) throws IOException; argument
H A DAbstractStringBuilder.java453 * this sequence up to the (exclusive) index {@code end}. The length
454 * of this sequence is increased by the value of {@code end - start}.
469 * @param end the end index of the subsequence to be appended.
473 * {@code start} is greater than {@code end} or
474 * {@code end} is greater than {@code s.length()}
477 public AbstractStringBuilder append(CharSequence s, int start, int end) { argument
480 if ((start < 0) || (start > end) || (end > s.length()))
482 "start " + start + ", end "
720 delete(int start, int end) argument
818 replace(int start, int end, String str) argument
879 subSequence(int start, int end) argument
897 substring(int start, int end) argument
1125 insert(int dstOffset, CharSequence s, int start, int end) argument
[all...]
/libcore/ojluni/src/main/native/
H A Dio_util.h93 goto _##var##end; \
96 if (var == NULL) goto _##var##end;
107 _##var##end: ; \
121 goto _##var##end; \
124 if (var == NULL) goto _##var##end;
128 _##var##end: ; \
/libcore/luni/src/test/java/libcore/java/util/
H A DArraysTest.java285 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/dex/src/main/java/com/android/dex/
H A DLeb128.java64 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1;
67 hasMore = (remaining != end)
150 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1;
153 hasMore = (remaining != end)

Completed in 774 milliseconds

123456