/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | MatchResult.java | 43 * Returns the start index of the match. 51 public int start(); method in interface:MatchResult 54 * Returns the start index of the subsequence captured by the given group 59 * the expression <i>m.</i><tt>start(0)</tt> is equivalent to 60 * <i>m.</i><tt>start()</tt>. </p> 77 public int start(int group); method in interface:MatchResult 121 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(),</tt> <i>m.</i><tt>end())</tt> 143 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(</tt><i>g</i><tt>),</tt> <i>m.</i><tt>end(</tt><i>g</i><tt>))</tt>
|
H A D | Matcher.java | 73 * <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 start of the region, or 0 if the matching should start at the 321 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(),</tt> <i>m.</i><tt>end())</tt> 345 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(</tt><i>g</i><tt>),</tt> <i>m.</i><tt>end(</tt><i>g</i><tt>))</tt> 446 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods. </p> 468 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods. </p> 486 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods, and subsequent 487 * invocations of the {@link #find()} method will start a 498 find(int start) argument 829 region(int start, int end) argument 1071 reset(CharSequence input, int start, int end) argument 1122 public int start() { method in class:Matcher 1150 public int start(int group) throws IllegalStateException { method in class:Matcher 1177 public int start(String name) { method in class:Matcher 1202 setInputImpl(long addr, String s, int start, int end) argument 1222 public int start() { method in class:Matcher.OffsetBasedMatchResult 1227 public int start(int group) { method in class:Matcher.OffsetBasedMatchResult [all...] |
/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { argument 33 if (chars[start + i] != s.charAt(i)) { 41 * Returns a string equal to {@code new String(array, start, length)}. 43 public String get(char[] array, int start, int length) { argument 46 for (int i = start; i < start + length; i++) { 56 if (pooled != null && contentEquals(pooled, array, start, length)) { 60 String result = new String(array, start, length);
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | CharacterIteratorFieldDelegate.java | 56 public void formatted(Format.Field attr, Object value, int start, int end, argument 58 if (start != end) { 59 if (start < size) { 64 while (start < index) { 68 int aStart = Math.max(0, start - newIndex); 71 end - start, as.length() - aStart) + 76 if (size < start) { 79 buffer.substring(size, start))); 80 size = start; 84 int aStart = Math.max(start, siz 95 formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument [all...] |
H A D | DontCareFieldPosition.java | 38 public void formatted(Format.Field attr, Object value, int start, 42 int start, int end, StringBuffer buffer) {
|
H A D | FieldPosition.java | 76 * Input: Desired field to determine start and end offsets for. 296 public void formatted(Format.Field attr, Object value, int start, argument 299 setBeginIndex(start); 301 encounteredField = (start != end); 306 int start, int end, StringBuffer buffer) { 308 setBeginIndex(start); 310 encounteredField = (start != end); 305 formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | StringTokenIterator.java | 39 private int start; field in class:StringTokenIterator 63 return start; 76 start = end + 1; 77 end = nextDelimiter(start); 78 token = text.substring(start, end); 80 start = end; 95 start = offset; 96 end = nextDelimiter(start); 97 token = text.substring(start, end); 108 private int nextDelimiter(int start) { argument [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ManifestDigester.java | 51 int startOfNext; // the start of the next section 96 // start of a new line 126 int start = pos.startOfNext; 127 while(findSection(start, pos)) { 128 int len = pos.endOfFirstLine-start+1; 129 int sectionLen = pos.endOfSection-start+1; 130 int sectionLenWithBlank = pos.startOfNext-start; 133 if (isNameAttr(bytes, start)) { 138 new String(bytes, start+6, len-6, "UTF8")); 140 int i = start 184 isNameAttr(byte bytes[], int start) argument [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
H A D | StringCharBuffer.java | 35 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 110 pos + checkIndex(start, pos),
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
H A D | TestChronoUnit.java | 108 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, LocalDat 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/luni/src/main/java/org/xml/sax/ |
H A D | DocumentHandler.java | 172 * @param start The start position in the array. 179 public abstract void characters (char ch[], int start, int length) argument 201 * @param start The start position in the array. 207 public abstract void ignorableWhitespace (char ch[], int start, int length) argument
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
H A D | TestChronologyPerf.java | 43 long start = System.nanoTime(); 46 Duration d = Duration.of(end - start, ChronoUnit.NANOS); 49 start = System.nanoTime(); 52 d = Duration.of(end - start, ChronoUnit.NANOS); 55 start = 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 D | RangeTest.java | 61 for (int start : Arrays.asList(1, 10, -1, -10)) { 62 setContext("start", start); 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). 81 for (int start : Arrays.asList(1, 10, -1, -10)) { 82 setContext("start", star 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | Matcher2Test.java | 43 m.start(); 61 m.start(1); 93 assertEquals(0, m.start()); 95 assertEquals(0, m.start(1)); 97 assertEquals(4, m.start(2)); 101 m.start(3); 119 m.start(-1); 137 assertEquals(8, m.start()); 139 assertEquals(8, m.start(1)); 141 assertEquals(12, m.start( [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | Matcher2Test.java | 41 m.start(); 59 m.start(1); 91 assertEquals(0, m.start()); 93 assertEquals(0, m.start(1)); 95 assertEquals(4, m.start(2)); 99 m.start(3); 117 m.start(-1); 135 assertEquals(8, m.start()); 137 assertEquals(8, m.start(1)); 139 assertEquals(12, m.start( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | Support_Format.java | 79 * which stores start and end indexes and an attribute this range has 84 int start = iterator.getRunStart(); 91 result.add(new FieldContainer(start, end, attribute, value)); 92 // System.out.println(start + " " + end + ": " + attribute + ", 94 // System.out.println("v.add(new FieldContainer(" + start +"," + 103 final int start; field in class:Support_Format.FieldContainer 109 public FieldContainer(int start, int end, Attribute attribute) { argument 110 this(start, end, attribute, attribute); 114 public FieldContainer(int start, int end, Attribute attribute, int value) { argument 115 this(start, en 119 FieldContainer(int start, int end, Attribute attribute, Object value) argument [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Format.java | 81 * which stores start and end indexes and an attribute this range 87 int start = iterator.getRunStart(); 94 result.add(new FieldContainer(start, end, attribute, value)); 95 // System.out.println(start + " " + end + ": " + attribute + ", 97 // System.out.println("v.add(new FieldContainer(" + start +"," + 106 int start, end; field in class:Support_Format.FieldContainer 113 public FieldContainer(int start, int end, argument 115 this(start, end, attribute, attribute); 119 public FieldContainer(int start, int end, Attribute attribute, int value) { argument 120 this(start, en 124 FieldContainer(int start, int end, Attribute attribute, Object value) argument [all...] |
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Blob.java | 118 * <code>start</code>. 121 * @param start the position at which to begin searching; the 125 * <code>BLOB</code> or if start is less than 1 130 long position(byte pattern[], long start) throws SQLException; argument 136 * <code>start</code>. 140 * @param start the position in the <code>BLOB</code> value 144 * <code>BLOB</code> value or if start is less than 1 149 long position(Blob pattern, long start) throws SQLException; argument 170 * to start writing; the first position is 1 202 * to start writin [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Appendable.java | 77 * <p> An invocation of this method of the form <tt>out.append(csq, start, 82 * out.append(csq.subSequence(start, end)) </pre> 90 * @param start 100 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt> 107 Appendable append(CharSequence csq, int start, int end) throws IOException; argument
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | Util.java | 65 private int start; field in class:Util.BufferCache 86 ByteBuffer buf = buffers[start]; 89 int i = start; 90 while ((i = next(i)) != start) { 102 buffers[i] = buffers[start]; 106 buffers[start] = null; 107 start = next(start); 120 start = (start [all...] |
/libcore/ojluni/src/main/native/ |
H A D | PollArrayWrapper.c | 44 jlong start, now; local 50 start = t.tv_sec * 1000 + t.tv_usec / 1000; 58 diff = now - start; 63 start = now;
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
H A D | MockIOExceptionAppendable.java | 77 public Appendable append(CharSequence csq, int start, int end) argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | SimpleDateFormatBenchmark.java | 93 long start, end; 96 start = System.nanoTime(); 99 System.out.printf("Creating first SDF: %,d ns\n", end-start); 105 start = System.nanoTime(); 108 System.out.printf("First parse: %,d ns\n", end-start); 110 start = System.nanoTime(); 113 System.out.printf("First format: %,d ns\n", end-start);
|
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | MemoryHandler.java | 96 int start, count; field in class:MemoryHandler 153 start = 0; 206 int ix = (start+count)%buffer.length; 211 start++; 212 start %= buffer.length; 226 int ix = (start+i)%buffer.length; 231 start = 0;
|
/libcore/json/src/main/java/org/json/ |
H A D | JSONTokener.java | 201 int start = pos; 208 return new String(in.substring(start, pos - 1)); 210 builder.append(in, start, pos - 1); 222 builder.append(in, start, pos - 1); 224 start = pos; 335 int start = pos; 339 return in.substring(start, pos); 342 return in.substring(start);
|