class IntlCodePointBreakIterator extends IntlBreakIterator implements Traversable (View source)

Constants

DONE

WORD_NONE

WORD_NONE_LIMIT

WORD_NUMBER

WORD_NUMBER_LIMIT

WORD_LETTER

WORD_LETTER_LIMIT

WORD_KANA

WORD_KANA_LIMIT

WORD_IDEO

WORD_IDEO_LIMIT

LINE_SOFT

LINE_SOFT_LIMIT

LINE_HARD

LINE_HARD_LIMIT

SENTENCE_TERM

SENTENCE_TERM_LIMIT

SENTENCE_SEP

SENTENCE_SEP_LIMIT

Methods

static IntlBreakIterator|null
createCharacterInstance(string $locale = null)

(PHP 5 >=5.5.0)
Create break iterator for boundaries of combining character sequences

createCodePointInstance()

(PHP 5 >=5.5.0)
Create break iterator for boundaries of code points

static IntlBreakIterator|null
createLineInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for logically possible line breaks

static IntlBreakIterator|null
createSentenceInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for sentence breaks

static IntlBreakIterator|null
createTitleInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for title-casing breaks

static IntlBreakIterator|null
createWordInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for word breaks

int
current()

(PHP 5 >=5.5.0)
Get index of current position

first()

(PHP 5 >=5.5.0)
Set position to the first character in the text

following(int $offset)

(PHP 5 >=5.5.0)
Advance the iterator to the first boundary following specified offset

int
getErrorCode()

(PHP 5 >=5.5.0)
Get last error code on the object

string
getErrorMessage()

(PHP 5 >=5.5.0)
Get last error message on the object

getLocale(int $type)

(PHP 5 >=5.5.0)
Get the locale associated with the object

getPartsIterator(string $type = IntlPartsIterator::KEY_SEQUENTIAL)

(PHP 5 >=5.5.0)
Create iterator for navigating fragments between boundaries

getText()

(PHP 5 >=5.5.0)
Get the text being scanned

isBoundary(int $offset)

(PHP 5 >=5.5.0)
Tell whether an offset is a boundary's offset

int
last()

(PHP 5 >=5.5.0)
Set the iterator position to index beyond the last character

int
next(int $offset = null)

(PHP 5 >=5.5.0)

preceding(int $offset)

(PHP 5 >=5.5.0)

int
previous()

(PHP 5 >=5.5.0)
Set the iterator position to the boundary immediately before the current

setText(string $text)

(PHP 5 >=5.5.0)
Set the text being scanned

TValue>|TValue[]
getIterator()

No description

int
getLastCodePoint()

(PHP 5 >=5.5.0)
Get last code point passed over after advancing or receding the iterator

Details

static IntlBreakIterator|null createCharacterInstance(string $locale = null)

(PHP 5 >=5.5.0)
Create break iterator for boundaries of combining character sequences

Parameters

string $locale

Return Value

IntlBreakIterator|null

static IntlCodePointBreakIterator createCodePointInstance()

(PHP 5 >=5.5.0)
Create break iterator for boundaries of code points

static IntlBreakIterator|null createLineInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for logically possible line breaks

Parameters

string $locale [optional]

Return Value

IntlBreakIterator|null

static IntlBreakIterator|null createSentenceInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for sentence breaks

Parameters

string $locale [optional]

Return Value

IntlBreakIterator|null

static IntlBreakIterator|null createTitleInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for title-casing breaks

Parameters

string $locale [optional]

Return Value

IntlBreakIterator|null

static IntlBreakIterator|null createWordInstance(string $locale)

(PHP 5 >=5.5.0)
Create break iterator for word breaks

Parameters

string $locale [optional]

Return Value

IntlBreakIterator|null

int current()

(PHP 5 >=5.5.0)
Get index of current position

Return Value

int

first()

(PHP 5 >=5.5.0)
Set position to the first character in the text

following(int $offset)

(PHP 5 >=5.5.0)
Advance the iterator to the first boundary following specified offset

Parameters

int $offset

int getErrorCode()

(PHP 5 >=5.5.0)
Get last error code on the object

Return Value

int

string getErrorMessage()

(PHP 5 >=5.5.0)
Get last error message on the object

Return Value

string

getLocale(int $type)

(PHP 5 >=5.5.0)
Get the locale associated with the object

Parameters

int $type

getPartsIterator(string $type = IntlPartsIterator::KEY_SEQUENTIAL)

(PHP 5 >=5.5.0)
Create iterator for navigating fragments between boundaries

Parameters

string $type

[optional]

Optional key type. Possible values are:

  • {[IntlPartsIterator](https://www.php.net/IntlPartsIterator) The default. Sequentially increasing integers used as key.
  • {[IntlPartsIterator](https://www.php.net/IntlPartsIterator) Byte offset left of current part used as key.
  • {[IntlPartsIterator](https://www.php.net/IntlPartsIterator) Byte offset right of current part used as key.

getText()

(PHP 5 >=5.5.0)
Get the text being scanned

isBoundary(int $offset)

(PHP 5 >=5.5.0)
Tell whether an offset is a boundary's offset

Parameters

int $offset

int last()

(PHP 5 >=5.5.0)
Set the iterator position to index beyond the last character

Return Value

int

int next(int $offset = null)

(PHP 5 >=5.5.0)

Parameters

int $offset [optional]

Return Value

int

preceding(int $offset)

(PHP 5 >=5.5.0)

Parameters

int $offset

int previous()

(PHP 5 >=5.5.0)
Set the iterator position to the boundary immediately before the current

Return Value

int

setText(string $text)

(PHP 5 >=5.5.0)
Set the text being scanned

Parameters

string $text

TValue>|TValue[] getIterator()

Since: 8.0

No description

Return Value

TValue>|TValue[]

An instance of an object implementing Iterator or Traversable

int getLastCodePoint()

(PHP 5 >=5.5.0)
Get last code point passed over after advancing or receding the iterator

Return Value

int