Searched refs:ConcatenationRope (Results 1 - 5 of 5) sorted by relevance
/ropes-1.2.2/src/org/ahmadsoft/ropes/impl/ |
H A D | RopeUtilities.java | 78 if (!(left instanceof ConcatenationRope)) {
79 if (right instanceof ConcatenationRope) {
80 final ConcatenationRope cRight = (ConcatenationRope) right;
82 return this.autoRebalance(new ConcatenationRope(new FlatCharSequenceRope(left.toString() + cRight.getLeft().toString()), cRight.getRight()));
85 if (!(right instanceof ConcatenationRope)) {
86 if (left instanceof ConcatenationRope) {
87 final ConcatenationRope cLeft = (ConcatenationRope) left;
89 return this.autoRebalance(new ConcatenationRope(cLef [all...] |
H A D | ConcatenationRopeIteratorImpl.java | 82 if (this.currentRope instanceof ConcatenationRope) {
83 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
84 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
119 if (this.currentRope instanceof ConcatenationRope) {
120 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
121 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
|
H A D | ConcatenationRopeReverseIteratorImpl.java | 84 if (this.currentRope instanceof ConcatenationRope) {
85 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
86 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
118 if (this.currentRope instanceof ConcatenationRope) {
119 this.toTraverse.push(((ConcatenationRope) this.currentRope).getLeft());
120 this.toTraverse.push(((ConcatenationRope) this.currentRope).getRight());
|
H A D | ConcatenationRope.java | 2 * ConcatenationRope.java
35 public final class ConcatenationRope extends AbstractRope {
class in inherits:AbstractRope 47 public ConcatenationRope(final Rope left, final Rope right) {
method in class:ConcatenationRope 212 // private ConcatenationRope rotateLeft(final ConcatenationRope input) {
214 // if (!(_R instanceof ConcatenationRope))
216 // final ConcatenationRope R = (ConcatenationRope) _R;
220 // return new ConcatenationRope(new ConcatenationRope( [all...] |
/ropes-1.2.2/src/org/ahmadsoft/ropes/test/ |
H A D | RopeTest.java | 39 import org.ahmadsoft.ropes.impl.ConcatenationRope;
112 Rope x2 = new ConcatenationRope(x1, x1);
136 ConcatenationRope c1 = new ConcatenationRope(x1, x2);
137 ConcatenationRope c2 = new ConcatenationRope(c1, x3);
149 Rope z4 = new ConcatenationRope(z3, new SubstringRope(z1, 6, 2)); // 2367
189 Rope x3 = new ConcatenationRope(x1, x2);
201 Rope x3 = new ConcatenationRope(x1, x2);
250 Rope r2 = new ConcatenationRope(ne [all...] |
Completed in 9 milliseconds