1 /*
2 +----------------------------------------------------------------------+
3 | PHP Version 7 |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | http://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Gustavo Lopes <cataphract@php.net> |
14 +----------------------------------------------------------------------+
15 */
16 #ifndef INTL_BREAKITERATOR_ITERATORS_H
17 #define INTL_BREAKITERATOR_ITERATORS_H
18
19 #include <unicode/umachine.h>
20
21 U_CDECL_BEGIN
22 #include <math.h>
23 #include <php.h>
24 U_CDECL_END
25
26 typedef enum {
27 PARTS_ITERATOR_KEY_SEQUENTIAL,
28 PARTS_ITERATOR_KEY_LEFT,
29 PARTS_ITERATOR_KEY_RIGHT,
30 } parts_iter_key_type;
31
32 #ifdef __cplusplus
33 void IntlIterator_from_BreakIterator_parts(zval *break_iter_zv,
34 zval *object,
35 parts_iter_key_type key_type);
36 #endif
37
38 U_CFUNC zend_object_iterator *_breakiterator_get_iterator(
39 zend_class_entry *ce, zval *object, int by_ref);
40 U_CFUNC void breakiterator_register_IntlPartsIterator_class(void);
41
42 #endif