Lines Matching refs:start
112 public CharSequence subSequence(final int start, final int end) {
113 return rope.subSequence(start, end);
136 public Iterator<Character> iterator(final int start) {
137 if (start < 0 || start > this.length())
138 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
139 if (start >= this.left.length()) {
140 return this.right.iterator(start - this.left.length());
142 return new ConcatenationRopeIteratorImpl(this, start);
162 public Iterator<Character> reverseIterator(final int start) {
163 if (start < 0 || start > this.length())
164 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
165 if (start >= this.right.length()) {
166 return this.left.reverseIterator(start - this.right.length());
168 return new ConcatenationRopeReverseIteratorImpl(this, start);
173 public Rope subSequence(final int start, final int end) {
174 if (start < 0 || end > this.length())
175 throw new IllegalArgumentException("Illegal subsequence (" + start + "," + end + ")");
176 if (start == 0 && end == this.length())
180 return this.left.subSequence(start, end);
181 if (start >= l)
182 return this.right.subSequence(start - l, end - l);
184 this.left.subSequence(start, l),