Lines Matching refs:offset
39 private final int offset;
43 public SubstringRope(final FlatRope rope, final int offset, final int length) {
44 if (length < 0 || offset < 0 || offset + length > rope.length())
45 throw new IndexOutOfBoundsException("Invalid substring offset (" + offset + ") and length (" + length + ") for underlying rope with length " + rope.length());
48 this.offset = offset;
55 return this.rope.charAt(this.offset + index);
64 return this.offset;
143 return new SubstringRope(this.rope, this.offset + start, end-start);
148 return this.rope.toString(this.offset, this.length);
153 this.rope.write(out, this.offset, this.length);
157 public void write(final Writer out, final int offset, final int length) throws IOException {
158 this.rope.write(out, this.offset + offset, this.length + length);