Lines Matching refs:length
54 return this.rope.charAt(this.length() - index - 1);
64 if (start < 0 || start > this.length())
70 return this.current < ReverseRope.this.length();
86 public int length() {
87 return this.rope.length();
96 if (start < 0 || start > this.length())
99 int current = ReverseRope.this.length() - start;
119 if (start == 0 && end == this.length())
121 return this.rope.subSequence(this.length() - end, this.length() - start).reverse();
126 this.write(out, 0, this.length());
130 public void write(final Writer out, final int offset, final int length) throws IOException {
131 if (offset < 0 || offset + length > this.length())
132 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
133 for (int j=offset; j<offset + length; ++j)