[MonoDevelop] ITextIterator

Jacob Ilsø Christensen jacobilsoe at gmail.com
Tue Nov 29 16:50:31 EST 2005


Ok. That's right of course. Just got a bit confused that MoveAhead(4) did
not move 4 forward the first time.

/Jacob



On 11/29/05, Lluis Sanchez <lluis at ximian.com> wrote:
>
> El mar, 29-11-2005 a las 21:01 +0100, Jacob Ilsø Christensen escribió:
> > Hi.
> >
> > I am hacking a bit at the searching stuff and was wondering what the
> > semantics are for the ITextIterator MoveAhead method.
> >
> > If the iterator is in state Resetted, MoveAhead does not move the
> > iterator forward. It only changes state to Iterating as well as
> > setting the position to endOffset. Should it not set the state to
> > Iterating AND move the iterator  forward?
>
> It has the same semantics as IEnumerator.MoveNext(), that is, you need
> to call MoveNext before you can get the first element.
>
> Lluis.
>
> >
> > /Jacob
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20051129/cb0f6dcd/attachment-0001.html


More information about the Monodevelop-list mailing list