Lines Matching defs:start

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
132 * Holds the start of the region, or 0 if the matching should start at the
315 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(),</tt>&nbsp;<i>m.</i><tt>end())</tt>
339 * <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>
440 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods. </p>
462 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods. </p>
480 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods, and subsequent
481 * invocations of the {@link #find()} method will start at the first
485 * If start is less than zero or if start is greater than the
492 public boolean find(int start) {
493 if (start < 0 || start > input.length()) {
494 throw new IndexOutOfBoundsException("start=" + start + "; length=" + input.length());
498 matchFound = findImpl(address, start, matchOffsets);
512 * <tt>start</tt>, <tt>end</tt>, and <tt>group</tt> methods. </p>
564 * #start()}&nbsp;<tt>-</tt>&nbsp;<tt>1</tt>. </p></li>
632 sb.append(input.substring(appendPos, start()));
800 * method resets the matcher, and then sets the region to start at the
801 * index specified by the <code>start</code> parameter and end at the
810 * @param start
811 * The index to start searching at (inclusive)
815 * If start or end is less than zero, if
816 * start is greater than the length of the input sequence, if
818 * start is greater than end.
822 public Matcher region(int start, int end) {
823 return reset(input, start, end);
827 * Reports the start index of this matcher's region. The
1051 * an occurrence of the Pattern in the string will start at the beginning of
1057 * @param start
1058 * the start of the region.
1064 private Matcher reset(CharSequence input, int start, int end) {
1069 if (start < 0 || end < 0 || start > input.length() || end > input.length() || start > end) {
1074 this.regionStart = start;
1106 * Returns the start index of the previous match. </p>
1114 public int start() {
1115 return start(0);
1119 * Returns the start index of the subsequence captured by the given group
1124 * the expression <i>m.</i><tt>start(0)</tt> is equivalent to
1125 * <i>m.</i><tt>start()</tt>. </p>
1142 public int start(int group) throws IllegalStateException {
1149 * Returns the start index of the subsequence captured by the given
1169 public int start(String name) {
1194 private static native void setInputImpl(long addr, String s, int start, int end);
1202 * the start and end of a match respectively.
1214 public int start() {
1215 return start(0);
1219 public int start(int group) {
1240 final int start = start(group);
1242 if (start == -1 || end == -1) {
1246 return input.substring(start, end);