Re: cvs: php-src /ext/unicode unicode_iterators.c
| From: | Antony Dovgal | Date: | Tue, 11 Jul 2006 09:33:41 +0000 |
| Subject: | Re: cvs: php-src /ext/unicode unicode_iterators.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-39147@lists.php.net to get a copy of this message | ||
On 08.07.2006 02:34, Andrei Zmievski wrote:
andrei Fri Jul 7 22:34:46 2006 UTCAndrei, long flags is used uninitialized in this function. Did you forget something?Modified files: /php-src/ext/unicode unicode_iterators.c Log:Implement TextIterator::isBoundary() for break iterators.
+PHP_METHOD(TextIterator, isBoundary) +{ + long flags, offset; + zval *object = getThis(); + text_iter_obj *intern = (text_iter_obj*) zend_object_store_get_object(object TSRMLS_CC); + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &offset) == FAILURE) { + return; + } + + /* + * ReverseTextIterator will behave the same as the normal one. + */ + RETURN_BOOL(iter_ops[intern->type]->isBoundary(intern, offset, flags TSRMLS_CC)); +} +-- Wbr, Antony Dovgal