IntlRuleBasedBreakIterator (class)
The IntlRuleBasedBreakIterator class
Introduction
(No version information available, might only be in Git)
A subclass of IntlBreakIterator that encapsulates ICU break iterators whose behavior is specified using a set of rules. This is the most common kind of break iterators.
These rules are described in the » ICU Boundary Analysis User Guide.
Class synopsis
IntlRuleBasedBreakIterator
extends IntlBreakIterator implements Traversable {
/* Constants */
const integer DONE = -1 ;
const integer WORD_NONE = 0 ;
const integer WORD_NONE_LIMIT = 100 ;
const integer WORD_NUMBER = 100 ;
const integer WORD_NUMBER_LIMIT = 200 ;
const integer WORD_LETTER = 200 ;
const integer WORD_LETTER_LIMIT = 300 ;
const integer WORD_KANA = 300 ;
const integer WORD_KANA_LIMIT = 400 ;
const integer WORD_IDEO = 400 ;
const integer WORD_IDEO_LIMIT = 500 ;
const integer LINE_SOFT = 0 ;
const integer LINE_SOFT_LIMIT = 100 ;
const integer LINE_HARD = 100 ;
const integer LINE_HARD_LIMIT = 200 ;
const integer SENTENCE_TERM = 0 ;
const integer SENTENCE_TERM_LIMIT = 100 ;
const integer SENTENCE_SEP = 100 ;
const integer SENTENCE_SEP_LIMIT = 200 ;
/* Methods */
public __construct ( string $rules [, string $areCompiled ] )
public ReturnType getBinaryRules ( void )
public ReturnType getRules ( void )
public ReturnType getRuleStatus ( void )
public ReturnType getRuleStatusVec ( void )
/* Inherited methods */
private IntlBreakIterator::__construct ( void )
public static ReturnType IntlBreakIterator::createCharacterInstance ([ string $"locale" ] )
public static ReturnType IntlBreakIterator::createCodePointInstance ( void )
public static ReturnType IntlBreakIterator::createLineInstance ([ string $"locale" ] )
public static ReturnType IntlBreakIterator::createSentenceInstance ([ string $"locale" ] )
public static ReturnType IntlBreakIterator::createTitleInstance ([ string $"locale" ] )
public static ReturnType IntlBreakIterator::createWordInstance ([ string $"locale" ] )
public ReturnType IntlBreakIterator::current ( void )
public ReturnType IntlBreakIterator::first ( void )
public ReturnType IntlBreakIterator::following ( string $"offset" )
public ReturnType IntlBreakIterator::getErrorCode ( void )
ReturnType intl_get_error_code ( void )
public ReturnType IntlBreakIterator::getErrorMessage ( void )
ReturnType intl_get_error_message ( void )
public ReturnType IntlBreakIterator::getLocale ( string $"locale_type" )
public ReturnType IntlBreakIterator::getPartsIterator ([ string $"key_type" ] )
public ReturnType IntlBreakIterator::getText ( void )
public ReturnType IntlBreakIterator::isBoundary ( string $"offset" )
public ReturnType IntlBreakIterator::last ( void )
public ReturnType IntlBreakIterator::next ([ string $"offset" ] )
public ReturnType IntlBreakIterator::preceding ( string $"offset" )
public ReturnType IntlBreakIterator::previous ( void )
public ReturnType IntlBreakIterator::setText ( string $"text" )
}
Predefined Constants
IntlRuleBasedBreakIterator::DONEIntlRuleBasedBreakIterator::WORD_NONEIntlRuleBasedBreakIterator::WORD_NONE_LIMITIntlRuleBasedBreakIterator::WORD_NUMBERIntlRuleBasedBreakIterator::WORD_NUMBER_LIMITIntlRuleBasedBreakIterator::WORD_LETTERIntlRuleBasedBreakIterator::WORD_LETTER_LIMITIntlRuleBasedBreakIterator::WORD_KANAIntlRuleBasedBreakIterator::WORD_KANA_LIMITIntlRuleBasedBreakIterator::WORD_IDEOIntlRuleBasedBreakIterator::WORD_IDEO_LIMITIntlRuleBasedBreakIterator::LINE_SOFTIntlRuleBasedBreakIterator::LINE_SOFT_LIMITIntlRuleBasedBreakIterator::LINE_HARDIntlRuleBasedBreakIterator::LINE_HARD_LIMITIntlRuleBasedBreakIterator::SENTENCE_TERMIntlRuleBasedBreakIterator::SENTENCE_TERM_LIMITIntlRuleBasedBreakIterator::SENTENCE_SEPIntlRuleBasedBreakIterator::SENTENCE_SEP_LIMIT
Table of Contents
- IntlRuleBasedBreakIterator::__construct — Create iterator from ruleset
- IntlRuleBasedBreakIterator::getBinaryRules — Get the binary form of compiled rules
- IntlRuleBasedBreakIterator::getRules — Get the rule set used to create this object
- IntlRuleBasedBreakIterator::getRuleStatus — Get the largest status value from the break rules that determined the current break position
- IntlRuleBasedBreakIterator::getRuleStatusVec — Get the status values from the break rules that determined the current break position
← IntlBreakIterator::setText
IntlRuleBasedBreakIterator::__construct →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/class.intlrulebasedbreakiterator.php