Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 189) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/text/
DStringCharacterIterator.java56 private int end; field in StringCharacterIterator
90 public StringCharacterIterator(String text, int begin, int end, int pos) { in StringCharacterIterator() argument
95 if (begin < 0 || begin > end || end > text.length()) in StringCharacterIterator()
98 if (pos < begin || pos > end) in StringCharacterIterator()
102 this.end = end; in StringCharacterIterator()
120 this.end = text.length(); in setText()
140 if (end != begin) { in last()
141 pos = end - 1; in last()
143 pos = end; in last()
154 if (p < begin || p > end) in setIndex()
[all …]
DCharacterIteratorFieldDelegate.java56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted() argument
58 if (start != end) { in formatted()
71 end - start, as.length() - aStart) + in formatted()
82 if (size < end) { in formatted()
86 buffer.substring(aStart, end)); in formatted()
90 size = end; in formatted()
96 int start, int end, StringBuffer buffer) { in formatted() argument
97 formatted(attr, value, start, end, buffer); in formatted()
DFieldPosition.java297 int end, StringBuffer buffer) { in formatted() argument
300 setEndIndex(end); in formatted()
301 encounteredField = (start != end); in formatted()
306 int start, int end, StringBuffer buffer) { in formatted() argument
309 setEndIndex(end); in formatted()
310 encounteredField = (start != end); in formatted()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoUnit.java108 public void test_yearsBetween(LocalDate start, LocalDate end, long expected) { in test_yearsBetween() argument
109 assertEquals(YEARS.between(start, end), expected); in test_yearsBetween()
113 public void test_yearsBetweenReversed(LocalDate start, LocalDate end, long expected) { in test_yearsBetweenReversed() argument
114 assertEquals(YEARS.between(end, start), -expected); in test_yearsBetweenReversed()
118 …public void test_yearsBetween_LocalDateTimeSameTime(LocalDate start, LocalDate end, long expected)… in test_yearsBetween_LocalDateTimeSameTime() argument
119 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 30)), expected); in test_yearsBetween_LocalDateTimeSameTime()
123 …public void test_yearsBetween_LocalDateTimeLaterTime(LocalDate start, LocalDate end, long expected… in test_yearsBetween_LocalDateTimeLaterTime() argument
125 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 31)), expected); in test_yearsBetween_LocalDateTimeLaterTime()
127 assertEquals(YEARS.between(start.atTime(12, 30), end.atTime(12, 29)), expected); in test_yearsBetween_LocalDateTimeLaterTime()
132 … public void test_yearsBetween_ZonedDateSameOffset(LocalDate start, LocalDate end, long expected) { in test_yearsBetween_ZonedDateSameOffset() argument
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DRangeTest.java63 for (int end : Arrays.asList(1, 10, -1, -10)) { in testIntRange()
64 setContext("end", end); in testIntRange()
65 int size = (start < end) ? end - start : 0; in testIntRange()
67 for (int i = start, p = 0; i < end; i++, p++) { in testIntRange()
71 int[] inc = IntStream.range(start, end).toArray(); in testIntRange()
75 withData(intRangeData(start, end)).stream(s -> s). in testIntRange()
83 for (int end : Arrays.asList(1, 10, -1, -10)) { in testIntRange()
84 setContext("end", end); in testIntRange()
85 int size = (start <= end) ? end - start + 1 : 0; in testIntRange()
87 for (int i = start, p = 0; i <= end; i++, p++) { in testIntRange()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_Format.java38 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument
52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) { in t_FormatWithField()
53 assertEquals(field + " " + begin + ".." + end, in t_FormatWithField()
85 int end = iterator.getRunLimit(); in findFields() local
91 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
97 iterator.setIndex(end); in findFields()
104 final int end; field in Support_Format.FieldContainer
109 public FieldContainer(int start, int end, Attribute attribute) { in FieldContainer() argument
110 this(start, end, attribute, attribute); in FieldContainer()
114 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_Format.java37 String text, Format.Field field, int begin, int end) { in t_FormatWithField() argument
56 + field, end, pos.getEndIndex()); in t_FormatWithField()
88 int end = iterator.getRunLimit(); in findFields() local
94 result.add(new FieldContainer(start, end, attribute, value)); in findFields()
100 iterator.setIndex(end); in findFields()
106 int start, end; field in Support_Format.FieldContainer
113 public FieldContainer(int start, int end, in FieldContainer() argument
115 this(start, end, attribute, attribute); in FieldContainer()
119 public FieldContainer(int start, int end, Attribute attribute, int value) { in FieldContainer() argument
120 this(start, end, attribute, new Integer(value)); in FieldContainer()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcher2Test.java49 m.end(); in testErrorConditions()
67 m.end(1); in testErrorConditions()
94 assertEquals(8, m.end()); in testErrorConditions2()
96 assertEquals(4, m.end(1)); in testErrorConditions2()
98 assertEquals(8, m.end(2)); in testErrorConditions2()
107 m.end(3); in testErrorConditions2()
125 m.end(-1); in testErrorConditions2()
138 assertEquals(16, m.end()); in testErrorConditions2()
140 assertEquals(12, m.end(1)); in testErrorConditions2()
142 assertEquals(16, m.end(2)); in testErrorConditions2()
[all …]
/libcore/ojluni/src/main/java/sun/util/locale/
DStringTokenIterator.java40 private int end; field in StringTokenIterator
67 return end; in currentEnd()
76 start = end + 1; in next()
77 end = nextDelimiter(start); in next()
78 token = text.substring(start, end); in next()
80 start = end; in next()
88 return (end < text.length()); in hasNext()
96 end = nextDelimiter(start); in setStart()
97 token = text.substring(start, end); in setStart()
/libcore/ojluni/src/main/java/java/lang/
DAbstractStringBuilder.java533 public AbstractStringBuilder append(CharSequence s, int start, int end) { in append() argument
536 if ((start < 0) || (start > end) || (end > s.length())) in append()
538 "start " + start + ", end " + end + ", s.length() " in append()
540 int len = end - start; in append()
542 for (int i = start, j = count; i < end; i++, j++) in append()
754 public AbstractStringBuilder delete(int start, int end) { in delete() argument
757 if (end > count) in delete()
758 end = count; in delete()
759 if (start > end) in delete()
761 int len = end - start; in delete()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DInflaterTest.java54 inflate.end(); in test_end()
63 i.end(); in test_end()
65 i.end(); in test_end()
90 inflate.end(); in test_finished()
118 inflateDiction.end(); in test_getAdler()
134 inflate.end(); in test_getRemaining()
173 deflate.end(); in test_getTotalIn()
174 inflate.end(); in test_getTotalIn()
194 inflate2.end(); in test_getTotalIn()
262 deflate.end(); in test_getTotalOut()
[all …]
DDeflaterTest.java87 defl.end(); in test_deflate$B()
105 infl.end(); in test_deflate$B()
131 defl.end(); in test_deflate$BII()
149 infl.end(); in test_deflate$BII()
170 defl.end(); in test_deflate$BII()
186 defl.end(); in test_end()
226 defl.end(); in test_finish()
240 infl.end(); in test_finish()
259 defl.end(); in test_finished()
278 defl.end(); in test_getAdler()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DArraysTest.java310 int begin = 100, end = 500; in parallelPrefix$III() local
314 for(int i = begin; i < end - 1; ++i) { in parallelPrefix$III()
318 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); in parallelPrefix$III()
322 Arrays.parallelPrefix(list, begin, end, null); in parallelPrefix$III()
328 Arrays.parallelPrefix((int[]) null, begin, end, (x, y) -> x + y); in parallelPrefix$III() local
334 Arrays.parallelPrefix(list, end, begin, (x, y) -> x + y); in parallelPrefix$III()
387 int begin = 100, end = 500; in parallelPrefix$LII() local
391 for(int i = begin; i < end - 1; ++i) { in parallelPrefix$LII()
395 Arrays.parallelPrefix(list, begin, end, (x, y) -> x + y); in parallelPrefix$LII()
399 Arrays.parallelPrefix(list, begin, end, null); in parallelPrefix$LII()
[all …]
/libcore/ojluni/src/main/java/java/nio/
DStringCharBuffer.java36 StringCharBuffer(CharSequence s, int start, int end) { // package-private in StringCharBuffer() argument
37 super(-1, start, end, s.length()); in StringCharBuffer()
39 if ((start < 0) || (start > n) || (end < start) || (end > n)) in StringCharBuffer()
102 final String toString(int start, int end) { in toString() argument
103 return str.toString().substring(start + offset, end + offset); in toString()
106 public final CharBuffer subSequence(int start, int end) { in subSequence() argument
112 pos + checkIndex(end, pos), in subSequence()
DCharBuffer.java300 public static CharBuffer wrap(CharSequence csq, int start, int end) { in wrap() argument
302 return new StringCharBuffer(csq, start, end); in wrap()
522 int end = offset + length; in get() local
523 for (int i = offset; i < end; i++) in get()
663 int end = offset + length; in put() local
664 for (int i = offset; i < end; i++) in put()
749 public CharBuffer put(String src, int start, int end) { in put() argument
750 checkBounds(start, end - start, src.length()); in put()
754 if (start == end) { in put()
761 if (end - start > remaining()) in put()
[all …]
DByteBufferAsCharBuffer.java161 public String toString(int start, int end) { in toString() argument
162 if ((end > limit()) || (start > end)) in toString()
165 int len = end - start; in toString()
170 db.limit(end); in toString()
180 public CharBuffer subSequence(int start, int end) { in subSequence() argument
187 if ((start < 0) || (end > len) || (start > end)) in subSequence()
192 pos + end, in subSequence()
/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java337 public int end() { in end() method in Matcher
338 return end(0); in end()
365 public int end(int group) { in end() method in Matcher
393 public int end(String name) { in end() method in Matcher
718 appendPos = end(); in appendReplacement()
922 public Matcher region(int start, int end) { in region() argument
923 return reset(originalInput, start, end); in region()
1151 private Matcher reset(CharSequence input, int start, int end) { in reset() argument
1156 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) { in reset()
1163 this.to = end; in reset()
[all …]
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateImpl.java378 ChronoLocalDate end = getChronology().date(endExclusive); in until() local
381 case DAYS: return daysUntil(end); in until()
382 case WEEKS: return daysUntil(end) / 7; in until()
383 case MONTHS: return monthsUntil(end); in until()
384 case YEARS: return monthsUntil(end) / 12; in until()
385 case DECADES: return monthsUntil(end) / 120; in until()
386 case CENTURIES: return monthsUntil(end) / 1200; in until()
387 case MILLENNIA: return monthsUntil(end) / 12000; in until()
388 case ERAS: return end.getLong(ERA) - getLong(ERA); in until()
393 return unit.between(this, end); in until()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/
DMetadataVariations.smali32 .end annotation
33 .end method
40 .end annotation
41 .end method
47 .end annotation
48 .end method
58 .end annotation
59 .end method
667 .end annotation
668 .end method
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DSink.java140 default void end() {} in end() method
259 public void end() { in end() method in Sink.ChainedReference
260 downstream.end(); in end()
291 public void end() { in end() method in Sink.ChainedInt
292 downstream.end(); in end()
323 public void end() { in end() method in Sink.ChainedLong
324 downstream.end(); in end()
355 public void end() { in end() method in Sink.ChainedDouble
356 downstream.end(); in end()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronologyPerf.java45 long end = System.nanoTime(); in test_chronologyGetAvailablePerf() local
46 Duration d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
51 end = System.nanoTime(); in test_chronologyGetAvailablePerf()
52 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
57 end = System.nanoTime(); in test_chronologyGetAvailablePerf()
58 d = Duration.of(end - start, ChronoUnit.NANOS); in test_chronologyGetAvailablePerf()
/libcore/ojluni/src/main/java/sun/invoke/util/
DBytecodeDescriptor.java45 int start, int end, ClassLoader loader) { in parseMethod() argument
51 if (i[0] < end && str.charAt(i[0]) == '(') { in parseMethod()
53 while (i[0] < end && str.charAt(i[0]) != ')') { in parseMethod()
54 Class<?> pt = parseSig(str, i, end, loader); in parseMethod()
63 Class<?> rtype = parseSig(str, i, end, loader); in parseMethod()
64 if (rtype == null || i[0] != end) in parseMethod()
74 static private Class<?> parseSig(String str, int[] i, int end, ClassLoader loader) { in parseSig() argument
75 if (i[0] == end) return null; in parseSig()
88 Class<?> t = parseSig(str, i, end, loader); in parseSig()
/libcore/benchmarks/src/benchmarks/regression/
DSimpleDateFormatBenchmark.java93 long start, end; in main() local
98 end = System.nanoTime(); in main()
99 System.out.printf("Creating first SDF: %,d ns\n", end-start); in main()
107 end = System.nanoTime(); in main()
108 System.out.printf("First parse: %,d ns\n", end-start); in main()
112 end = System.nanoTime(); in main()
113 System.out.printf("First format: %,d ns\n", end-start); in main()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java164 int end = 6; in test_startI() local
174 start = end; in test_startI()
175 end += 3; in test_startI()
200 int end = 6; in test_endI() local
206 …ls("End is wrong for group " + i + " :" + mat.group(i), start + mat.group(i).length(), mat.end(i)); in test_endI()
208 …End is wrong for group " + i + " :" + mat.group(i), start + 4 + mat.group(i).length(), mat.end(i)); in test_endI()
210 start = end; in test_endI()
211 end += 3; in test_endI()
220 matcher.end(-1 /* out of bounds */); in test_endI_groupIndexOutOfBounds()
225 matcher.end(2 /* out of bounds */); in test_endI_groupIndexOutOfBounds()
[all …]
/libcore/ojluni/src/main/native/
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: ; \

12345678