Searched defs:length (Results 1 - 7 of 7) sorted by relevance

/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/
H A DFlatRope.java34 * @param length the length.
38 public String toString(int offset, int length); argument
H A DReverseRope.java56 return this.rope.charAt(this.length() - index - 1);
66 if (start < 0 || start > this.length())
72 return this.current < ReverseRope.this.length();
88 public int length() { method in class:ReverseRope
89 return this.rope.length();
98 if (start < 0 || start > this.length())
101 int current = ReverseRope.this.length() - start;
121 if (start == 0 && end == this.length())
123 return this.rope.subSequence(this.length() - end, this.length()
132 write(final Writer out, final int offset, final int length) argument
[all...]
H A DConcatenationRope.java40 private final int length; field in class:ConcatenationRope
51 this.length = left.length() + right.length();
56 if (index < 0 || index >= this.length())
59 if (index < this.left.length())
62 return this.right.charAt(index - this.left.length());
95 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
110 public int length() {
150 public int length() { method in class:ConcatenationRope
198 write(final Writer out, final int offset, final int length) argument
[all...]
H A DFlatCharArrayRope.java46 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 DFlatCharSequenceRope.java61 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 DSubstringRope.java40 private final int length; field in class:SubstringRope
43 public SubstringRope(final FlatRope rope, final int offset, final int length) { argument
44 if (length < 0 || offset < 0 || offset + length > rope.length())
45 throw new IndexOutOfBoundsException("Invalid substring offset (" + offset + ") and length (" + length + ") for underlying rope with length " + rope.length());
49 this.length
104 public int length() { method in class:SubstringRope
157 write(final Writer out, final int offset, final int length) argument
[all...]
/ropes-1.1.3/src/org/ahmadsoft/ropes/
H A DRope.java107 * is negative, greater than <code>length()</code>, or
305 * @param length the range length.
307 public void write(Writer out, int offset, int length) throws IOException; argument

Completed in 4 milliseconds