Searched refs:left (Results 1 - 3 of 3) sorted by relevance

/ropes-1.2.5/src/org/ahmadsoft/ropes/impl/
H A DConcatenationRope.java37 private final Rope left; field in class:ConcatenationRope
44 * @param left the first rope.
47 public ConcatenationRope(final Rope left, final Rope right) { argument
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
[all...]
H A DRopeUtilities.java61 * @param left the first rope.
65 Rope concatenate(final Rope left, final Rope right) { argument
66 if (left.length() == 0)
69 return left;
70 if ((long) left.length() + right.length() > Integer.MAX_VALUE)
72 "Left length=" + left.length() + ", right length=" + right.length()
75 if (left.length() + right.length() < combineLength) {
76 return new FlatCharSequenceRope(left.toString() + right.toString());
78 if (!(left instanceof ConcatenationRope)) {
81 if (left
[all...]
/ropes-1.2.5/
H A Dropes.jar ... AbstractRope { private final org.ahmadsoft.ropes.Rope left private final org.ahmadsoft.ropes.Rope right ...

Completed in 75 milliseconds