Re: [PHP-DEV] TextIterator changes

2006-06-23 Thread Andrei Zmievski
Sean (on IRC) convinced me that something called *Iterator had better implement Iterator interface (which TextIterator currently does not). So changing method signatures is out of the question. Towards that, the current functions will stay as they are, but I'll have to add current_offset() (for

[PHP-DEV] TextIterator changes

2006-06-23 Thread Andrei Zmievski
I am working on implementing BreakIterator API [1]. I considered two approaches: making a separate class or merging the API into the existing TextIterator. Having a separate class would be a bit cleaner, but I can see people wanting to use it in foreach(), and since TextIterator already provide