php8.5
Home/ Manual/ reference / intl/ The IntlPartsIterator class

The IntlPartsIterator class

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.

Intro

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().

Class synopsis

class IntlPartsIterator extends IntlIterator { }

Predefined Constants

IntlPartsIterator::KEY_SEQUENTIALint
IntlPartsIterator::KEY_LEFTint
IntlPartsIterator::KEY_RIGHTint

Changelog

VersionDescription
8.4.0The class constants are now typed.

Intlpartsiterator

In this section

Source: reference/intl/intlpartsiterator.xml · from the official PHP manual (php/doc-en)