/ropes-1.2.5/src/org/ahmadsoft/ropes/impl/ |
H A D | FlatRope.java | 34 * @param length the length.
38 public String toString(int offset, int length);
argument
|
H A D | RepeatedCharacterSequence.java | 49 public int length() {
method in class:RepeatedCharacterSequence
|
H A D | ReverseRope.java | 54 return this.rope.charAt(this.length() - index - 1);
64 if (start < 0 || start > this.length())
70 return this.current < ReverseRope.this.length();
86 public int length() {
method in class:ReverseRope 87 return this.rope.length();
96 if (start < 0 || start > this.length())
99 int current = ReverseRope.this.length() - start;
119 if (start == 0 && end == this.length())
121 return this.rope.subSequence(this.length() - end, this.length() 130 write(final Writer out, final int offset, final int length) argument [all...] |
H A D | ConcatenationRope.java | 40 private final int length;
field in class:ConcatenationRope 51 this.length = left.length() + right.length();
56 if (index >= this.length())
59 return (index < this.left.length() ? this.left.charAt(index): this.right.charAt(index - this.left.length()));
92 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
107 public int length() {
147 public int length() { method in class:ConcatenationRope 195 write(final Writer out, final int offset, final int length) argument [all...] |
H A D | FlatCharArrayRope.java | 46 this(sequence, 0, sequence.length);
53 * @param length the length of the array.
55 public FlatCharArrayRope(final char[] sequence, final int offset, final int length) {
argument 56 if (length > sequence.length)
57 throw new IllegalArgumentException("Length must be less than " + sequence.length);
58 this.sequence = new char[length];
59 System.arraycopy(sequence, offset, this.sequence, 0, length);
79 for (int j=0; j<this.sequence.length; 169 public int length() { method in class:FlatCharArrayRope 218 toString(final int offset, final int length) argument 228 write(final Writer out, final int offset, final int length) argument [all...] |
H A D | FlatCharSequenceRope.java | 61 if (start < 0 || start > this.length())
67 return this.current < FlatCharSequenceRope.this.length();
83 public int length() {
method in class:FlatCharSequenceRope 84 return this.sequence.length();
100 if (start < 0 || start > this.length())
103 int current = FlatCharSequenceRope.this.length() - start;
123 if (start == 0 && end == this.length())
137 public String toString(final int offset, final int length) {
argument 138 return this.sequence.subSequence(offset, offset + length).toString();
143 this.write(out, 0, this.length());
147 write(final Writer out, final int offset, final int length) argument [all...] |
H A D | SubstringRope.java | 40 private final int length;
field in class:SubstringRope 42 public SubstringRope(final FlatRope rope, final int offset, final int length) {
argument 43 if (length < 0 || offset < 0 || offset + length > rope.length())
44 throw new IndexOutOfBoundsException("Invalid substring offset (" + offset + ") and length (" + length + ") for underlying rope with length " + rope.length());
48 this.length 105 public int length() { method in class:SubstringRope 158 write(final Writer out, final int offset, final int length) argument [all...] |
/ropes-1.2.5/ |
H A D | ropes.jar | ... y
int j
CharSequence sequence
int fromIndex
CharSequence me
int length
int[] bcs
public org.ahmadsoft.ropes.Rope ... |
/ropes-1.2.5/src/org/ahmadsoft/ropes/ |
H A D | Rope.java | 76 //@ ensures \result.length() == length() + 1;
86 //@ ensures \result.length() == length() + suffix.length();
97 //@ requires start <= end && start > -1 && end <= csq.length();
98 //@ ensures \result.length() == (length() + (end-start));
112 * is negative, greater than <code>length()</code>, or
115 //@ requires start <= end && start > -1 && end <= length();
326 write(Writer out, int offset, int length) argument [all...] |