Searched refs:start (Results 1 - 13 of 13) sorted by relevance

/ropes-1.2.5/src/org/ahmadsoft/ropes/impl/
H A DReverseRope.java63 public Iterator<Character> iterator(final int start) { argument
64 if (start < 0 || start > this.length())
65 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
67 int current = start;
95 public Iterator<Character> reverseIterator(final int start) { argument
96 if (start < 0 || start > this.length())
97 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
99 int current = ReverseRope.this.length() - start;
118 subSequence(final int start, final int end) argument
[all...]
H A DConcatenationRope.java112 public CharSequence subSequence(final int start, final int end) {
113 return rope.subSequence(start, end);
136 public Iterator<Character> iterator(final int start) { argument
137 if (start < 0 || start > this.length())
138 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
139 if (start >= this.left.length()) {
140 return this.right.iterator(start - this.left.length());
142 return new ConcatenationRopeIteratorImpl(this, start);
162 public Iterator<Character> reverseIterator(final int start) { argument
173 subSequence(final int start, final int end) argument
[all...]
H A DFlatCharSequenceRope.java60 public Iterator<Character> iterator(final int start) { argument
61 if (start < 0 || start > this.length())
62 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
64 int current = start;
99 public Iterator<Character> reverseIterator(final int start) { argument
100 if (start < 0 || start > this.length())
101 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
103 int current = FlatCharSequenceRope.this.length() - start;
122 subSequence(final int start, final int end) argument
[all...]
H A DSubstringRope.java77 public Iterator<Character> iterator(final int start) { argument
78 if (start < 0 || start > this.length())
79 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
82 final Iterator<Character> u = SubstringRope.this.getRope().iterator(SubstringRope.this.getOffset() + start);
83 int position = start;
115 public Iterator<Character> reverseIterator(final int start) { argument
116 if (start < 0 || start > this.length())
117 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
141 subSequence(final int start, final int end) argument
[all...]
H A DFlatCharArrayRope.java146 public Iterator<Character> iterator(final int start) { argument
147 if (start < 0 || start > this.length())
148 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
150 int current = start;
179 public Iterator<Character> reverseIterator(final int start) { argument
180 if (start < 0 || start > this.length())
181 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
183 int current = FlatCharArrayRope.this.length() - start;
202 subSequence(final int start, final int end) argument
[all...]
H A DRepeatedCharacterSequence.java54 public CharSequence subSequence(int start, int end) { argument
55 return new RepeatedCharacterSequence(getCharacter(), end - start);
H A DConcatenationRopeIteratorImpl.java51 public ConcatenationRopeIteratorImpl(final Rope rope, final int start) { argument
57 if (start < 0 || start > rope.length()) {
58 throw new IllegalArgumentException("Rope index out of range: " + start);
60 this.moveForward(start);
H A DConcatenationRopeReverseIteratorImpl.java52 public ConcatenationRopeReverseIteratorImpl(final Rope rope, final int start) { argument
59 if (start < 0 || start > rope.length()) {
60 throw new IllegalArgumentException("Rope index out of range: " + start);
62 this.moveForward(start);
H A DRopeUtilities.java136 private Rope merge(ArrayList<Rope> leafNodes, int start, int end) { argument
137 int range = end - start;
140 return leafNodes.get(start);
142 return new ConcatenationRope(leafNodes.get(start), leafNodes.get(start + 1));
144 int middle = start + (range / 2);
145 return new ConcatenationRope(merge(leafNodes, start, middle), merge(leafNodes, middle, end));
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.2.5/src/org/ahmadsoft/ropes/
H A DRope.java93 * @param start the start index, inclusive.
97 //@ requires start <= end && start > -1 && end <= csq.length();
98 //@ ensures \result.length() == (length() + (end-start));
99 Rope append(CharSequence csq, int start, int end); argument
103 * The substring begins at the specified <code>start</code> and extends to
106 * <code>start</code> is equal to <code>end</code>, no changes are made.
108 * @param start The beginning index, inclusive.
111 * @throws StringIndexOutOfBoundsException if <code>start</cod
117 delete(int start, int end) argument
216 iterator(int start) argument
294 reverseIterator(int start) argument
305 subSequence(int start, int end) argument
[all...]
/ropes-1.2.5/
H A Dropes.jar ... java.lang.CharSequence, int, int) CharSequence csq int start int end public int compareTo (java.lang.CharSequence ...
/ropes-1.2.5/src/org/ahmadsoft/ropes/test/
H A DRopeTest.java46 private String fromRope(Rope rope, int start, int end) { argument
48 Writer out = new StringWriter(end - start);
49 rope.write(out, start, end - start);

Completed in 92 milliseconds