summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/breakiterator_iterators.h
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-06-22 18:28:19 +0200
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-06-22 18:52:06 +0200
commit77daa3482d5592181560e0e6076c1e3291620e7b (patch)
treea38cf12c807131552628a2f278dcebbc7f39979f /ext/intl/breakiterator/breakiterator_iterators.h
parent0a7ae87e91368fe17c52767cfb31dabf3a94e38f (diff)
downloadphp-git-77daa3482d5592181560e0e6076c1e3291620e7b.tar.gz
BreakIterator::getPartsIterator: new optional arg
Can take one of: * IntlPartsIterator::KEY_SEQUENTIAL (keys are 0, 1, ...) * IntlPartsIterator::KEY_LEFT (keys are left boundaries) * IntlPartsIterator::KEY_LEFT (keys are right boundaries) The default is IntlPartsIterator::KEY_SEQUENTIAL (the previous behavior).
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_iterators.h')
-rw-r--r--ext/intl/breakiterator/breakiterator_iterators.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/intl/breakiterator/breakiterator_iterators.h b/ext/intl/breakiterator/breakiterator_iterators.h
index 855246ff77..7162072414 100644
--- a/ext/intl/breakiterator/breakiterator_iterators.h
+++ b/ext/intl/breakiterator/breakiterator_iterators.h
@@ -23,9 +23,16 @@ U_CDECL_BEGIN
#include <php.h>
U_CDECL_END
+typedef enum {
+ PARTS_ITERATOR_KEY_SEQUENTIAL,
+ PARTS_ITERATOR_KEY_LEFT,
+ PARTS_ITERATOR_KEY_RIGHT,
+} parts_iter_key_type;
+
#ifdef __cplusplus
void IntlIterator_from_BreakIterator_parts(zval *break_iter_zv,
- zval *object TSRMLS_DC);
+ zval *object,
+ parts_iter_key_type key_type TSRMLS_DC);
#endif
U_CFUNC zend_object_iterator *_breakiterator_get_iterator(