首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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 */

代码语言:javascript
复制
public ReturnType getBreakIterator ( void )

/* Inherited methods */

代码语言:javascript
复制
public ReturnType IntlIterator::current ( void )
代码语言:javascript
复制
public ReturnType IntlIterator::key ( void )
代码语言:javascript
复制
public ReturnType IntlIterator::next ( void )
代码语言:javascript
复制
public ReturnType IntlIterator::rewind ( void )
代码语言:javascript
复制
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 →

代码语言:txt
复制
 ? 1997–2017 The PHP Documentation Group

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com