1<?php
2
3/** @generate-function-entries */
4
5class IntlBreakIterator implements IteratorAggregate
6{
7    /** @return IntlBreakIterator|null */
8    public static function createCharacterInstance(?string $locale = null) {}
9
10    /** @return IntlCodePointBreakIterator */
11    public static function createCodePointInstance() {}
12
13    /** @return IntlBreakIterator|null */
14    public static function createLineInstance(?string $locale = null) {}
15
16    /** @return IntlBreakIterator|null */
17    public static function createSentenceInstance(?string $locale = null) {}
18
19    /** @return IntlBreakIterator|null */
20    public static function createTitleInstance(?string $locale = null) {}
21
22    /** @return IntlBreakIterator|null */
23    public static function createWordInstance(?string $locale = null) {}
24
25    private function __construct() {}
26
27    /** @return int */
28    public function current() {}
29
30    /** @return int */
31    public function first() {}
32
33    /** @return int */
34    public function following(int $offset) {}
35
36    /** @return int */
37    public function getErrorCode() {}
38
39    /** @return string|false */
40    public function getErrorMessage() {}
41
42    /** @return string */
43    public function getLocale(int $type) {}
44
45    /** @return IntlPartsIterator */
46    public function getPartsIterator(string $type = IntlPartsIterator::KEY_SEQUENTIAL) {}
47
48    /** @return string|null */
49    public function getText() {}
50
51    /** @return bool */
52    public function isBoundary(int $offset) {}
53
54    /** @return int */
55    public function last() {}
56
57    /** @return int */
58    public function next(?int $offset = null) {}
59
60    /** @return int */
61    public function preceding(int $offset) {}
62
63    /** @return int */
64    public function previous() {}
65
66    /** @return bool|null */
67    public function setText(string $text) {}
68
69    public function getIterator(): Iterator {}
70}
71
72class IntlRuleBasedBreakIterator extends IntlBreakIterator
73{
74    public function __construct(string $rules, bool $compiled = false) {}
75
76    /** @return string|false */
77    public function getBinaryRules() {}
78
79    /** @return string|false */
80    public function getRules() {}
81
82    /** @return int */
83    public function getRuleStatus() {}
84
85    /** @return array|false */
86    public function getRuleStatusVec() {}
87}
88
89class IntlPartsIterator extends IntlIterator
90{
91    /** @return IntlBreakIterator */
92    public function getBreakIterator() {}
93}
94
95class IntlCodePointBreakIterator extends IntlBreakIterator
96{
97    /** @return int */
98    public function getLastCodePoint() {}
99}
100