Hello l0t3k,
in SPL the iterator classes can be overloaded in TextIterator not.
Foreach does what is necccessary and especially if inside foreach()
someone uses the value it is being copied automatically. Since you do
it all yourself you also need to do the copying yourself. So there is
no incon
Marcus,
one last question ...
> You should never touch the data member of that iterator
does this mean that i should make a copy of whatever i get from
the get_current_data() handler ? There seems to be a bit of inconsistency
in dealing with the current element in the iterators For example, the
> ic, sounds interesting. Actually Andrei doesn't it look like something for
> ext/unicode?
that's what it's for, actually...
>>> The second thing is that you did not use the dtor() handler so you have
>>> a memory leak.
>> which dtor handler ?
>
> Zend/zend_iterators.h:
> typedef struct _zend_ob
Hello l0t3k, Anrei,
Wednesday, February 15, 2006, 11:28:15 PM, you wrote:
> "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hello l0t3k,
>>
>> first of all your question does not make any sense to me whatsoever.
> What im trying to allow for is sorting by itera
"Marcus Boerger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello l0t3k,
>
> first of all your question does not make any sense to me whatsoever.
What im trying to allow for is sorting by iterator as well as standard
arrays, for example :
// assume en_US as default locale
$c
Hello l0t3k,
first of all your question does not make any sense to me whatsoever.
Anyway looking at the code you seem to be using a c-level iterator
manually instead of using it inside foreach() construct.
The first thing i can see is that you use the iterator index while the
source code (zend
A quick question about using iterators in C code:
If it sufficient to use the interface gotten from
zend_class_entry->get_iterator to handle userland classes which implement
Iterator ?
The attachment is part of code i'm using to do Unicode based collation. Will
this work for userland iterators