Searched refs:end (Results 1 - 7 of 7) sorted by relevance

/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/
H A DConcatenationRope.java115 public CharSequence subSequence(final int start, final int end) {
116 return rope.subSequence(start, end);
176 public Rope subSequence(final int start, final int end) { argument
177 if (start < 0 || end > this.length())
178 throw new IllegalArgumentException("Illegal subsequence (" + start + "," + end + ")");
179 if (start == 0 && end == this.length())
182 if (end <= l)
183 return this.left.subSequence(start, end);
185 return this.right.subSequence(start - l, end - l);
188 this.right.subSequence(0, end
[all...]
H A DFlatCharSequenceRope.java122 public Rope subSequence(final int start, final int end) { argument
123 if (start == 0 && end == this.length())
125 if (end - start < 8 || this.sequence instanceof String /* special optimization for String */) {
126 return new FlatCharSequenceRope(this.sequence.subSequence(start, end));
128 return new SubstringRope(this, start, end-start);
H A DReverseRope.java120 public Rope subSequence(final int start, final int end) { argument
121 if (start == 0 && end == this.length())
123 return this.rope.subSequence(this.length() - end, this.length() - start).reverse();
H A DFlatCharArrayRope.java202 public Rope subSequence(final int start, final int end) { argument
203 if (start == 0 && end == this.length())
205 if (end - start < 16) {
206 return new FlatCharArrayRope(this.sequence, start, end-start);
208 return new SubstringRope(this, start, end-start);
H A DSubstringRope.java140 public Rope subSequence(final int start, final int end) { argument
141 if (start == 0 && end == this.length())
143 return new SubstringRope(this.rope, this.offset + start, end-start);
H A DAbstractRope.java54 public Rope append(final CharSequence csq, final int start, final int end) { argument
55 return RopeUtilities.INSTANCE.concatenate(this, Rope.BUILDER.build(csq).subSequence(start, end));
72 public Rope delete(final int start, final int end) { argument
73 if (start == end)
75 return this.subSequence(0, start).append(this.subSequence(end, this.length()));
/ropes-1.1.3/src/org/ahmadsoft/ropes/
H A DRope.java91 * @param end the end index, non-inclusive.
94 Rope append(CharSequence csq, int start, int end); argument
99 * the character at index <code>end - 1</code> or to the end of the
101 * <code>start</code> is equal to <code>end</code>, no changes are made.
104 * @param end The ending index, exclusive.
108 * greater than <code>end</code>.
110 Rope delete(int start, int end); argument
259 * Returns a reverse iterator positioned to start at the end o
286 subSequence(int start, int end) argument
[all...]

Completed in 29 milliseconds