diff options
| author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-07 15:20:00 +0200 |
|---|---|---|
| committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-10 00:04:53 +0200 |
| commit | 4ec75539dba8cefef16e56f02c62755a9aa9c60b (patch) | |
| tree | 21437d4d80b94eb510158b7d31fbbd34bd45ab90 /ext/intl/breakiterator/breakiterator_iterators.h | |
| parent | c6593a0e9b3ea1a6045f8a52a1b9d8bce4d63773 (diff) | |
| download | php-git-4ec75539dba8cefef16e56f02c62755a9aa9c60b.tar.gz | |
Change in BreakIterator::getPartsIterator()
BreakIterator::getPartsIterator() now returns an IntlIterator subclass
with a special method, getBreakIterator(), that returns the
associated BreakIterator.
Any call to getRuleStatus() is forwarded to the BreakIterator.
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_iterators.h')
| -rw-r--r-- | ext/intl/breakiterator/breakiterator_iterators.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/ext/intl/breakiterator/breakiterator_iterators.h b/ext/intl/breakiterator/breakiterator_iterators.h index 4ef5a2f4ef..855246ff77 100644 --- a/ext/intl/breakiterator/breakiterator_iterators.h +++ b/ext/intl/breakiterator/breakiterator_iterators.h @@ -16,24 +16,20 @@ #ifndef INTL_BREAKITERATOR_ITERATORS_H #define INTL_BREAKITERATOR_ITERATORS_H -#ifndef __cplusplus -#error Header for C++ only -#endif - -#include <unicode/brkiter.h> #include <unicode/umachine.h> -#include "../common/common_enum.h" - -extern "C" { +U_CDECL_BEGIN #include <math.h> #include <php.h> -} +U_CDECL_END +#ifdef __cplusplus void IntlIterator_from_BreakIterator_parts(zval *break_iter_zv, zval *object TSRMLS_DC); +#endif U_CFUNC zend_object_iterator *_breakiterator_get_iterator( - zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC); + zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC); +U_CFUNC void breakiterator_register_IntlPartsIterator_class(TSRMLS_D); #endif
\ No newline at end of file |
