IntlPartsIterator类
(PHP 5 >= 5.5.0, PHP 7)
此类的对象可以从IntlBreakIterator对象获取。虽然break迭代器在迭代时提供了一系列边界位置,但IntlPartsIterator对象提供了在两个连续边界之间理解文本片段的便利。
键可以表示左边界、右边界的偏移量,也可以只是非负整数序列。请参见IntlBreakIterator::getPartsIterator()。
IntlPartsIterator extends IntlIterator implements Iterator { /* Constants */ const integer KEY_SEQUENTIAL = 0 ; const integer KEY_LEFT = 1 ; const integer KEY_RIGHT = 2 ; /* 方法 */ public getBreakIterator ( void ) : IntlBreakIterator /* 继承的方法 */ public IntlIterator::current ( void ) : mixed public IntlIterator::key ( void ) : string public IntlIterator::next ( void ) : void public IntlIterator::rewind ( void ) : void public IntlIterator::valid ( void ) : bool }
IntlPartsIterator::getBreakIterator()
获取IntlBreakIterator以支持此部件迭代器。
public IntlPartsIterator::getBreakIterator ( void ) : IntlBreakIterator