From 4ec75539dba8cefef16e56f02c62755a9aa9c60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Thu, 7 Jun 2012 15:20:00 +0200 Subject: 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. --- ext/intl/php_intl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/intl/php_intl.c') 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 ); -- cgit v1.2.1