Lines Matching defs:offset
39 private final int offset;
42 public SubstringRope(final FlatRope rope, final int offset, final int length) {
43 if (length < 0 || offset < 0 || offset + length > rope.length())
44 throw new IndexOutOfBoundsException("Invalid substring offset (" + offset + ") and length (" + length + ") for underlying rope with length " + rope.length());
47 this.offset = offset;
56 return this.rope.charAt(this.offset + index);
65 return this.offset;
144 return new SubstringRope(this.rope, this.offset + start, end-start);
149 return this.rope.toString(this.offset, this.length);
154 this.rope.write(out, this.offset, this.length);
158 public void write(final Writer out, final int offset, final int length) throws IOException {
159 this.rope.write(out, this.offset + offset, length);