Searched refs:index (Results 1 - 6 of 6) sorted by relevance

/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/
H A DConcatenationRope.java55 public char charAt(final int index) { argument
56 if (index < 0 || index >= this.length())
57 throw new IndexOutOfBoundsException("Rope index out of range: " + index);
59 if (index < this.left.length())
60 return this.left.charAt(index);
62 return this.right.charAt(index - this.left.length());
88 public char charAt(final int index) {
89 if (index > thi
[all...]
H A DAbstractRope.java131 int index = -1;
133 ++index;
135 return index;
143 throw new IndexOutOfBoundsException("Rope index out of range: " + fromIndex);
144 int index = fromIndex - 1;
146 ++index;
148 return index;
220 int index = -1;
222 ++index;
226 if (index <
[all...]
H A DReverseRope.java55 public char charAt(final int index) { argument
56 return this.rope.charAt(this.length() - index - 1);
67 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
99 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
134 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
H A DFlatCharSequenceRope.java50 public char charAt(final int index) { argument
51 return this.sequence.charAt(index);
62 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
101 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
149 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
H A DSubstringRope.java54 public char charAt(final int index) { argument
55 return this.rope.charAt(this.offset + index);
78 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
116 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
H A DFlatCharArrayRope.java63 public char charAt(final int index) { argument
64 return this.sequence[index];
93 throw new IndexOutOfBoundsException("Rope index out of range: " + fromIndex);
148 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
181 throw new IndexOutOfBoundsException("Rope index out of range: " + start);

Completed in 6 milliseconds