Lines Matching refs:Rope
33 import org.ahmadsoft.ropes.Rope;
39 public abstract class AbstractRope implements Rope {
44 public Rope append(final char c) {
45 return RopeUtilities.INSTANCE.concatenate(this, Rope.BUILDER.build(String.valueOf(c)));
49 public Rope append(final CharSequence suffix) {
50 return RopeUtilities.INSTANCE.concatenate(this, Rope.BUILDER.build(suffix));
54 public Rope append(final CharSequence csq, final int start, final int end) {
55 return RopeUtilities.INSTANCE.concatenate(this, Rope.BUILDER.build(csq).subSequence(start, end));
72 public Rope delete(final int start, final int end) {
86 if (other instanceof Rope) {
87 final Rope rope = (Rope) other;
148 throw new IndexOutOfBoundsException("Rope offset out of range: " + offset);
173 throw new IndexOutOfBoundsException("Rope index out of range: " + fromIndex);
232 public Rope insert(final int dstOffset, final CharSequence s) {
233 final Rope r = (s == null) ? Rope.BUILDER.build("null"): Rope.BUILDER.build(s);
249 public Rope trimStart() {
278 public Rope rebalance() {
288 public Rope trimEnd() {
315 public Rope trim() {
325 public Rope padStart(final int toWidth) {
330 public Rope padStart(final int toWidth, final char padChar) {
335 Rope.BUILDER.build(new RepeatedCharacterSequence(padChar, toPad)),
340 public Rope padEnd(final int toWidth) {
345 public Rope padEnd(final int toWidth, final char padChar) {
351 Rope.BUILDER.build(new RepeatedCharacterSequence(padChar, toPad)));