Lines Matching refs:left
37 private final Rope left;
44 * @param left the first rope.
47 public ConcatenationRope(final Rope left, final Rope right) {
48 this.left = left;
50 this.depth = (byte) (Math.max(RopeUtilities.INSTANCE.depth(left), RopeUtilities.INSTANCE.depth(right)) + 1);
51 this.length = left.length() + right.length();
59 return (index < this.left.length() ? this.left.charAt(index): this.right.charAt(index - this.left.length()));
120 * Return the left-hand rope.
121 * @return the left-hand rope.
124 return this.left;
139 if (start >= this.left.length()) {
140 return this.right.iterator(start - this.left.length());
166 return this.left.reverseIterator(start - this.right.length());
178 final int l = this.left.length();
180 return this.left.subSequence(start, end);
184 this.left.subSequence(start, l),
190 this.left.write(out);
196 if (offset + length <= this.left.length()) {
197 this.left.write(out, offset, length);
198 } else if (offset >= this.left.length()) {
199 this.right.write(out, offset - this.left.length(), length);
201 final int writeLeft = this.left.length() - offset;
202 this.left.write(out, offset, writeLeft);