Internationalization IntlRuleBasedBreakIterator 클래스

(PHP 5 >= 5.5.0, PHP 7, PHP 8)


소개

일련의 규칙을 사용하여 동작이 지정된 ICU 중단 반복기를 캡슐화하는 IntlBreakIterator의 하위 클래스입니다. 이것은 가장 일반적인 종류의 break iterator입니다.

이러한 규칙은 » ICU 경계 분석 사용자 가이드에 설명되어 있습니다.


클래스 개요

class IntlRuleBasedBreakIterator extends IntlBreakIterator {
  /* Inherited constants */
  const int IntlBreakIterator::DONE = -1;
  const int IntlBreakIterator::WORD_NONE = 0;
  const int IntlBreakIterator::WORD_NONE_LIMIT = 100;
  const int IntlBreakIterator::WORD_NUMBER = 100;
  const int IntlBreakIterator::WORD_NUMBER_LIMIT = 200;
  const int IntlBreakIterator::WORD_LETTER = 200;
  const int IntlBreakIterator::WORD_LETTER_LIMIT = 300;
  const int IntlBreakIterator::WORD_KANA = 300;
  const int IntlBreakIterator::WORD_KANA_LIMIT = 400;
  const int IntlBreakIterator::WORD_IDEO = 400;
  const int IntlBreakIterator::WORD_IDEO_LIMIT = 500;
  const int IntlBreakIterator::LINE_SOFT = 0;
  const int IntlBreakIterator::LINE_SOFT_LIMIT = 100;
  const int IntlBreakIterator::LINE_HARD = 100;
  const int IntlBreakIterator::LINE_HARD_LIMIT = 200;
  const int IntlBreakIterator::SENTENCE_TERM = 0;
  const int IntlBreakIterator::SENTENCE_TERM_LIMIT = 100;
  const int IntlBreakIterator::SENTENCE_SEP = 100;
  const int IntlBreakIterator::SENTENCE_SEP_LIMIT = 200;
  /* Methods */
  public __construct(string $rules, bool $compiled = false)
  public getBinaryRules(): string|false
  public getRules(): string|false
  public getRuleStatus(): int
  public getRuleStatusVec(): array|false
  /* Inherited methods */
  public static IntlBreakIterator::createCharacterInstance(?string $locale = null): ?IntlBreakIterator
  public static IntlBreakIterator::createCodePointInstance(): IntlCodePointBreakIterator
  public static IntlBreakIterator::createLineInstance(?string $locale = null): ?IntlBreakIterator
  public static IntlBreakIterator::createSentenceInstance(?string $locale = null): ?IntlBreakIterator
  public static IntlBreakIterator::createTitleInstance(?string $locale = null): ?IntlBreakIterator
  public static IntlBreakIterator::createWordInstance(?string $locale = null): ?IntlBreakIterator
  public IntlBreakIterator::current(): int
  public IntlBreakIterator::first(): int
  public IntlBreakIterator::following(int $offset): int
  public IntlBreakIterator::getErrorCode(): int
  intl_get_error_code(): int
  public IntlBreakIterator::getErrorMessage(): string|false
  intl_get_error_message(): string
  public IntlBreakIterator::getLocale(int $type): string
  public IntlBreakIterator::getPartsIterator(string $type = IntlPartsIterator::KEY_SEQUENTIAL): IntlPartsIterator
  public IntlBreakIterator::getText(): ?string
  public IntlBreakIterator::isBoundary(int $offset): bool
  public IntlBreakIterator::last(): int
  public IntlBreakIterator::next(?int $offset = null): int
  public IntlBreakIterator::preceding(int $offset): int
  public IntlBreakIterator::previous(): int
  public IntlBreakIterator::setText(string $text): ?bool
}
                

목차