PHP - Manual: IntlPartsIterator
2024-11-12
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Objects of this class can be obtained from IntlBreakIterator objects. While the break iterators provide a sequence of boundary positions when iterated, IntlPartsIterator objects provide, as a convenience, the text fragments comprehended between two successive boundaries.
The keys may represent the offset of the left boundary, right boundary, or they may just the sequence of non-negative integers. See IntlBreakIterator::getPartsIterator().
IntlPartsIterator::KEY_SEQUENTIAL
IntlPartsIterator::KEY_LEFT
IntlPartsIterator::KEY_RIGHT
官方地址:https://www.php.net/manual/en/class.intlpartsiterator.php