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/php_intl.c | |
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/php_intl.c')
-rwxr-xr-x | ext/intl/php_intl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index 5d8aa6be95..c023ba9341 100755 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -79,6 +79,7 @@ #include "calendar/gregoriancalendar_methods.h" #include "breakiterator/breakiterator_class.h" +#include "breakiterator/breakiterator_iterators.h" #include "idn/idn.h" @@ -963,6 +964,9 @@ PHP_MINIT_FUNCTION( intl ) /* Register 'BreakIterator' class */ breakiterator_register_BreakIterator_class( TSRMLS_C ); + /* Register 'IntlPartsIterator' class */ + breakiterator_register_IntlPartsIterator_class( TSRMLS_C ); + /* Global error handling. */ intl_error_init( NULL TSRMLS_CC ); |