Lines Matching defs:length
56 return this.rope.charAt(this.length() - index - 1);
66 if (start < 0 || start > this.length())
72 return this.current < ReverseRope.this.length();
88 public int length() {
89 return this.rope.length();
98 if (start < 0 || start > this.length())
101 int current = ReverseRope.this.length() - start;
121 if (start == 0 && end == this.length())
123 return this.rope.subSequence(this.length() - end, this.length() - start).reverse();
128 this.write(out, 0, this.length());
132 public void write(final Writer out, final int offset, final int length) throws IOException {
133 if (offset < 0 || offset + length > this.length())
134 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
135 for (int j=offset; j<offset + length; ++j)