在线文档教程
PHP
Internationalization

IntlPartsIterator (class)

The IntlPartsIterator class

Introduction

(No version information available, might only be in Git)

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

IntlPartsIterator extends IntlIterator implements Iterator {

/* Constants */

const integer KEY_SEQUENTIAL = 0 ;

const integer KEY_LEFT = 1 ;

const integer KEY_RIGHT = 2 ;

/* Methods */

public ReturnType getBreakIterator ( void )

/* Inherited methods */

public ReturnType IntlIterator::current ( void )

public ReturnType IntlIterator::key ( void )

public ReturnType IntlIterator::next ( void )

public ReturnType IntlIterator::rewind ( void )

public ReturnType IntlIterator::valid ( void )

}

Predefined Constants

IntlPartsIterator::KEY_SEQUENTIALIntlPartsIterator::KEY_LEFTIntlPartsIterator::KEY_RIGHT

Table of Contents

  • IntlPartsIterator::getBreakIterator — Get IntlBreakIterator backing this parts iterator

← IntlCodePointBreakIterator::getLastCodePoint

IntlPartsIterator::getBreakIterator →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/class.intlpartsiterator.php