Searched refs:iterator (Results 1 - 9 of 9) sorted by relevance

/ropes-1.2.5/src/org/ahmadsoft/ropes/impl/
H A DConcatenationRope.java82 private final ConcatenationRopeIteratorImpl iterator = (ConcatenationRopeIteratorImpl) rope.iterator(0);
86 if (index > this.iterator.getPos()) {
87 this.iterator.skip(index-this.iterator.getPos()-1);
89 final char c = this.iterator.next();
96 final int toMoveBack = this.iterator.getPos() - index + 1;
97 if (this.iterator.canMoveBackwards(toMoveBack)) {
98 this.iterator.moveBackwards(toMoveBack);
99 return this.iterator
136 public Iterator<Character> iterator(final int start) { method in class:ConcatenationRope
[all...]
H A DAbstractRope.java61 final Iterator<Character> i = this.iterator();
90 final Iterator<Character> i1 = this.iterator();
91 final Iterator<Character> i2 = rope.iterator();
120 final Iterator<Character> i = this.iterator();
153 for (Iterator<Character> i=this.iterator(offset); i.hasNext() && x < prefix.length(); ) {
175 for (final Iterator<Character> i=this.iterator(fromIndex); i.hasNext(); ) {
244 public Iterator<Character> iterator() { method in class:AbstractRope
245 return this.iterator(0);
H A DSubstringRope.java77 public Iterator<Character> iterator(final int start) { method in class:SubstringRope
82 final Iterator<Character> u = SubstringRope.this.getRope().iterator(SubstringRope.this.getOffset() + start);
H A DReverseRope.java63 public Iterator<Character> iterator(final int start) { method in class:ReverseRope
80 throw new UnsupportedOperationException("Rope iterator is read-only.");
112 throw new UnsupportedOperationException("Rope iterator is read-only.");
H A DFlatCharSequenceRope.java60 public Iterator<Character> iterator(final int start) { method in class:FlatCharSequenceRope
77 throw new UnsupportedOperationException("Rope iterator is read-only.");
116 throw new UnsupportedOperationException("Rope iterator is read-only.");
H A DFlatCharArrayRope.java146 public Iterator<Character> iterator(final int start) { method in class:FlatCharArrayRope
163 throw new UnsupportedOperationException("Rope iterator is read-only.");
196 throw new UnsupportedOperationException("Rope iterator is read-only.");
/ropes-1.2.5/
H A Dropes.jar ... .lang.CharSequence) public abstract java.util.Iterator iterator (int) public abstract org.ahmadsoft.ropes. ...
/ropes-1.2.5/src/org/ahmadsoft/ropes/
H A DRope.java43 * characters with an iterator instead, performance improves to
211 * Returns an iterator positioned to start at the specified index.
213 * @return an iterator positioned to start at the specified index.
216 Iterator<Character> iterator(int start); method in interface:Rope
277 * Returns a reverse iterator positioned to start at the end of this
278 * rope. A reverse iterator moves backwards instead of forwards through
280 * @return A reverse iterator positioned at the end of this rope.
286 * Returns a reverse iterator positioned to start at the specified index.
287 * A reverse iterator moves backwards instead of forwards through a rope.
289 * @return a reverse iterator positione
[all...]
/ropes-1.2.5/src/org/ahmadsoft/ropes/test/
H A DRopeTest.java139 Iterator<Character> i = c2.iterator();
151 i = z2.iterator();
153 i = z3.iterator();
161 z3.iterator(j);
169 z4.iterator(j);
174 i=z4.iterator(4);
176 i=z4.iterator(2);

Completed in 23 milliseconds