1<?php
2
3/** @generate-class-entries */
4
5/** @not-serializable */
6class IntlBreakIterator implements IteratorAggregate
7{
8    /** @cvalue BreakIterator::DONE */
9    public const int DONE = UNKNOWN;
10
11    /** @cvalue UBRK_WORD_NONE */
12    public const int WORD_NONE = UNKNOWN;
13    /** @cvalue UBRK_WORD_NONE_LIMIT */
14    public const int WORD_NONE_LIMIT = UNKNOWN;
15    /** @cvalue UBRK_WORD_NUMBER */
16    public const int WORD_NUMBER = UNKNOWN;
17    /** @cvalue UBRK_WORD_NUMBER_LIMIT */
18    public const int WORD_NUMBER_LIMIT = UNKNOWN;
19    /** @cvalue UBRK_WORD_LETTER */
20    public const int WORD_LETTER = UNKNOWN;
21    /** @cvalue UBRK_WORD_LETTER_LIMIT */
22    public const int WORD_LETTER_LIMIT = UNKNOWN;
23    /** @cvalue UBRK_WORD_KANA */
24    public const int WORD_KANA = UNKNOWN;
25    /** @cvalue UBRK_WORD_KANA_LIMIT */
26    public const int WORD_KANA_LIMIT = UNKNOWN;
27    /** @cvalue UBRK_WORD_IDEO */
28    public const int WORD_IDEO = UNKNOWN;
29    /** @cvalue UBRK_WORD_IDEO_LIMIT */
30    public const int WORD_IDEO_LIMIT = UNKNOWN;
31
32    /** @cvalue UBRK_LINE_SOFT */
33    public const int LINE_SOFT = UNKNOWN;
34    /** @cvalue UBRK_LINE_SOFT_LIMIT */
35    public const int LINE_SOFT_LIMIT = UNKNOWN;
36    /** @cvalue UBRK_LINE_HARD */
37    public const int LINE_HARD = UNKNOWN;
38    /** @cvalue UBRK_LINE_HARD_LIMIT */
39    public const int LINE_HARD_LIMIT = UNKNOWN;
40
41    /** @cvalue UBRK_SENTENCE_TERM */
42    public const int SENTENCE_TERM = UNKNOWN;
43    /** @cvalue UBRK_SENTENCE_TERM_LIMIT */
44    public const int SENTENCE_TERM_LIMIT = UNKNOWN;
45    /** @cvalue UBRK_SENTENCE_SEP */
46    public const int SENTENCE_SEP = UNKNOWN;
47    /** @cvalue UBRK_SENTENCE_SEP_LIMIT */
48    public const int SENTENCE_SEP_LIMIT = UNKNOWN;
49
50    /** @tentative-return-type */
51    public static function createCharacterInstance(?string $locale = null): ?IntlBreakIterator {}
52
53    /** @tentative-return-type */
54    public static function createCodePointInstance(): IntlCodePointBreakIterator {}
55
56    /** @tentative-return-type */
57    public static function createLineInstance(?string $locale = null): ?IntlBreakIterator {}
58
59    /** @tentative-return-type */
60    public static function createSentenceInstance(?string $locale = null): ?IntlBreakIterator {}
61
62    /** @tentative-return-type */
63    public static function createTitleInstance(?string $locale = null): ?IntlBreakIterator {}
64
65    /** @tentative-return-type */
66    public static function createWordInstance(?string $locale = null): ?IntlBreakIterator {}
67
68    private function __construct() {}
69
70    /** @tentative-return-type */
71    public function current(): int {}
72
73    /** @tentative-return-type */
74    public function first(): int {}
75
76    /** @tentative-return-type */
77    public function following(int $offset): int {}
78
79    /** @tentative-return-type */
80    public function getErrorCode(): int {}
81
82    /** @tentative-return-type */
83    public function getErrorMessage(): string {}
84
85    /** @tentative-return-type */
86    public function getLocale(int $type): string|false {}
87
88    /** @tentative-return-type */
89    public function getPartsIterator(string $type = IntlPartsIterator::KEY_SEQUENTIAL): IntlPartsIterator {}
90
91    /** @tentative-return-type */
92    public function getText(): ?string {}
93
94    /** @tentative-return-type */
95    public function isBoundary(int $offset): bool {}
96
97    /** @tentative-return-type */
98    public function last(): int {}
99
100    /** @tentative-return-type */
101    public function next(?int $offset = null): int {}
102
103    /** @tentative-return-type */
104    public function preceding(int $offset): int {}
105
106    /** @tentative-return-type */
107    public function previous(): int {}
108
109    /** @tentative-return-type */
110    public function setText(string $text): bool {}
111
112    public function getIterator(): Iterator {}
113}
114
115/** @not-serializable */
116class IntlRuleBasedBreakIterator extends IntlBreakIterator
117{
118    public function __construct(string $rules, bool $compiled = false) {}
119
120    /** @tentative-return-type */
121    public function getBinaryRules(): string|false {}
122
123    /** @tentative-return-type */
124    public function getRules(): string|false {}
125
126    /** @tentative-return-type */
127    public function getRuleStatus(): int {}
128
129    /** @tentative-return-type */
130    public function getRuleStatusVec(): array|false {}
131}
132
133/** @not-serializable */
134class IntlCodePointBreakIterator extends IntlBreakIterator
135{
136    /** @tentative-return-type */
137    public function getLastCodePoint(): int {}
138}
139