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

12345678

/libcore/ojluni/src/main/java/java/text/
H A DStringCharacterIterator.java56 private int end; field in class:StringCharacterIterator
57 // invariant: begin <= pos <= end
87 * @param end Index of the character following the last character
90 public StringCharacterIterator(String text, int begin, int end, int pos) { argument
95 if (begin < 0 || begin > end || end > text.length())
98 if (pos < begin || pos > end)
102 this.end = end;
120 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,
181 * @return the end index
198 * Sets the end index. For use by subclasses of Format.
200 * @param ei the end index
210 * field the FieldPosition is associated with, the begin/end will be
284 * An implementation of FieldDelegate that will adjust the begin/end
291 * is true, and <code>formatted</code> is invoked, the begin/end
297 int end, StringBuffe
296 formatted(Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
305 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.java74 * <p> The explicit state of a matcher includes the start and end indices of
75 * the most recent successful match. It also includes the start and end
151 * Holds the end of the region, or input.length() if the matching should
152 * go until the end of the input.
263 public int end() { method in class:Matcher
264 return end(0);
273 * the expression <i>m.</i><tt>end(0)</tt> is equivalent to
274 * <i>m.</i><tt>end()</tt>. </p>
291 public int end(int group) { method in class:Matcher
317 public int end(Strin method in class:Matcher
836 region(int start, int end) argument
1078 reset(CharSequence input, int start, int end) argument
1209 setInputImpl(long addr, String s, int start, int end) argument
1239 public int end() { method in class:Matcher.OffsetBasedMatchResult
1244 public int end(int group) { method in class:Matcher.OffsetBasedMatchResult
[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/test/java/time/test/java/time/temporal/
H A DTestChronoUnit.java108 public void test_yearsBetween(LocalDate start, LocalDate end, long expected) { argument
109 assertEquals(YEARS.between(start, end), expected);
113 public void test_yearsBetweenReversed(LocalDate start, LocalDate end, long expected) { argument
114 assertEquals(YEARS.between(end, start), -expected);
118 public void test_yearsBetween_LocalDateTimeSameTime(LocalDate start, LocalDate end, long expected) { argument
119 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 30)), expected);
123 public void test_yearsBetween_LocalDateTimeLaterTime(LocalDate start, LocalDate end, long expected) { argument
125 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 31)), expected);
127 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 29)), expected);
132 public void test_yearsBetween_ZonedDateSameOffset(LocalDate start, LocalDate end, lon argument
137 test_yearsBetween_ZonedDateLaterOffset(LocalDate start, LocalDate end, long expected) argument
181 test_monthsBetween(LocalDate start, LocalDate end, long expected) argument
186 test_monthsBetweenReversed(LocalDate start, LocalDate end, long expected) argument
191 test_monthsBetween_LocalDateTimeSameTime(LocalDate start, LocalDate end, long expected) argument
196 test_monthsBetween_LocalDateTimeLaterTime(LocalDate start, LocalDate end, long expected) argument
205 test_monthsBetween_ZonedDateSameOffset(LocalDate start, LocalDate end, long expected) argument
210 test_monthsBetween_ZonedDateLaterOffset(LocalDate start, LocalDate end, long expected) argument
248 test_weeksBetween(LocalDate start, LocalDate end, long expected) argument
253 test_weeksBetweenReversed(LocalDate start, LocalDate end, long expected) argument
291 test_daysBetween(LocalDate start, LocalDate end, long expected) argument
296 test_daysBetweenReversed(LocalDate start, LocalDate end, long expected) argument
301 test_daysBetween_LocalDateTimeSameTime(LocalDate start, LocalDate end, long expected) argument
306 test_daysBetween_LocalDateTimeLaterTime(LocalDate start, LocalDate end, long expected) argument
315 test_daysBetween_ZonedDateSameOffset(LocalDate start, LocalDate end, long expected) argument
320 test_daysBetween_ZonedDateLaterOffset(LocalDate start, LocalDate end, long expected) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DStringCharBuffer.java36 StringCharBuffer(CharSequence s, int start, int end) { // package-private argument
37 super(-1, start, end, s.length());
39 if ((start < 0) || (start > n) || (end < start) || (end > n))
102 final String toString(int start, int end) { argument
103 return str.toString().substring(start + offset, end + offset);
106 public final CharBuffer subSequence(int start, int end) { argument
112 pos + checkIndex(end, pos),
H A DCharBuffer.java242 * -1 if this source of characters is at its end
274 * will be <tt>end</tt>, and its mark will be undefined. </p>
285 * @param end
294 * If the preconditions on the <tt>start</tt> and <tt>end</tt>
297 public static CharBuffer wrap(CharSequence csq, int start, int end) { argument
299 return new StringCharBuffer(csq, start, end);
519 int end = offset + length;
520 for (int i = offset; i < end; i++)
653 int end = offset + length;
654 for (int i = offset; i < end;
739 put(String src, int start, int end) argument
1028 toString(int start, int end) argument
1095 subSequence(int start, int end) argument
1170 append(CharSequence csq, int start, int end) argument
[all...]
H A DByteBufferAsCharBuffer.java161 public String toString(int start, int end) { argument
162 if ((end > limit()) || (start > end))
165 int len = end - start;
170 db.limit(end);
180 public CharBuffer subSequence(int start, int end) { argument
187 if ((start < 0) || (end > len) || (start > end))
192 pos + end,
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
H A DTestChronologyPerf.java45 long end = System.nanoTime();
46 Duration d = Duration.of(end - start, ChronoUnit.NANOS);
51 end = System.nanoTime();
52 d = Duration.of(end - start, ChronoUnit.NANOS);
57 end = System.nanoTime();
58 d = Duration.of(end - start, ChronoUnit.NANOS);
/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...]
/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/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
/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DMockIOExceptionAppendable.java77 public Appendable append(CharSequence csq, int start, int end) argument
/libcore/benchmarks/src/benchmarks/regression/
H A DSimpleDateFormatBenchmark.java93 long start, end;
98 end = System.nanoTime();
99 System.out.printf("Creating first SDF: %,d ns\n", end-start);
107 end = System.nanoTime();
108 System.out.printf("First parse: %,d ns\n", end-start);
112 end = System.nanoTime();
113 System.out.printf("First format: %,d ns\n", end-start);
/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoLocalDateImpl.java120 * System.out.printf(" Today is %s: start: %s; end: %s%n", last.getChronology().getID(),
378 ChronoLocalDate end = getChronology().date(endExclusive);
381 case DAYS: return daysUntil(end);
382 case WEEKS: return daysUntil(end) / 7;
383 case MONTHS: return monthsUntil(end);
384 case YEARS: return monthsUntil(end) / 12;
385 case DECADES: return monthsUntil(end) / 120;
386 case CENTURIES: return monthsUntil(end) / 1200;
387 case MILLENNIA: return monthsUntil(end) / 12000;
388 case ERAS: return end
396 daysUntil(ChronoLocalDate end) argument
400 monthsUntil(ChronoLocalDate end) argument
[all...]
/libcore/ojluni/src/main/java/sun/invoke/util/
H A DBytecodeDescriptor.java45 int start, int end, ClassLoader loader) {
51 if (i[0] < end && str.charAt(i[0]) == '(') {
53 while (i[0] < end && str.charAt(i[0]) != ')') {
54 Class<?> pt = parseSig(str, i, end, loader);
63 Class<?> rtype = parseSig(str, i, end, loader);
64 if (rtype == null || i[0] != end)
74 static private Class<?> parseSig(String str, int[] i, int end, ClassLoader loader) { argument
75 if (i[0] == end) return null;
88 Class<?> t = parseSig(str, i, end, loader);
44 parseMethod(String bytecodeSignature, int start, int end, ClassLoader loader) argument
/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: ; \

Completed in 654 milliseconds

12345678