resourcebundle_iterator.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. +----------------------------------------------------------------------+
  3. | This source file is subject to version 3.01 of the PHP license, |
  4. | that is bundled with this package in the file LICENSE, and is |
  5. | available through the world-wide-web at the following url: |
  6. | https://www.php.net/license/3_01.txt |
  7. | If you did not receive a copy of the PHP license and are unable to |
  8. | obtain it through the world-wide-web, please send a note to |
  9. | license@php.net so we can mail you a copy immediately. |
  10. +----------------------------------------------------------------------+
  11. | Authors: Hans-Peter Oeri (University of St.Gallen) <hp@oeri.ch> |
  12. +----------------------------------------------------------------------+
  13. */
  14. #ifndef RESOURCEBUNDLE_ITERATOR_H
  15. #define RESOURCEBUNDLE_ITERATOR_H
  16. #include <zend.h>
  17. #include "resourcebundle/resourcebundle_class.h"
  18. typedef struct {
  19. zend_object_iterator intern;
  20. ResourceBundle_object *subject;
  21. bool is_table;
  22. zend_long length;
  23. zval current;
  24. char *currentkey;
  25. zend_long i;
  26. } ResourceBundle_iterator;
  27. zend_object_iterator *resourcebundle_get_iterator( zend_class_entry *ce, zval *object, int byref );
  28. #endif // #ifndef RESOURCEBUNDLE_ITERATOR_H