Searched defs:right (Results 1 - 2 of 2) sorted by relevance

/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/
H A DRopeUtilities.java61 * @param right the second rope.
64 Rope concatenate(final Rope left, final Rope right) { argument
66 return right;
67 if (right.length() == 0)
69 if (left instanceof FlatRope && right instanceof FlatRope) {
71 final FlatRope fRight = (FlatRope) right;
76 if (left instanceof ConcatenationRope && right instanceof FlatRope) {
78 final FlatRope fRight = (FlatRope) right;
87 if (left instanceof FlatRope && right instanceof ConcatenationRope) {
89 final ConcatenationRope cRight = (ConcatenationRope) right;
[all...]
H A DConcatenationRope.java38 private final Rope right; field in class:ConcatenationRope
45 * @param right the second rope.
47 public ConcatenationRope(final Rope left, final Rope right) { argument
49 this.right = right;
50 this.depth = (byte) (Math.max(RopeUtilities.INSTANCE.depth(left), RopeUtilities.INSTANCE.depth(right)) + 1);
51 this.length = left.length() + right.length();
62 return this.right.charAt(index - this.left.length());
131 * Return the right-hand rope.
132 * @return the right
[all...]

Completed in 5 milliseconds