1--TEST--
2IntlCodepointBreakIterator's part iterator
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "pt_PT");
9
10$text = 'ตัวอย่างข้อความ';
11
12$it = IntlBreakIterator::createCodePointInstance()->getPartsIterator();
13$it->getBreakIterator()->setText($text);
14
15foreach ($it as $k => $v) {
16    echo "$k. $v (" . sprintf("U+%04X", $it->getBreakIterator()->getLastCodePoint()) .
17        ") at {$it->getBreakIterator()->current()}\r\n";
18}
19
20?>
21--EXPECT--
220. ต (U+0E15) at 3
231. ั (U+0E31) at 6
242. ว (U+0E27) at 9
253. อ (U+0E2D) at 12
264. ย (U+0E22) at 15
275. ่ (U+0E48) at 18
286. า (U+0E32) at 21
297. ง (U+0E07) at 24
308. ข (U+0E02) at 27
319. ้ (U+0E49) at 30
3210. อ (U+0E2D) at 33
3311. ค (U+0E04) at 36
3412. ว (U+0E27) at 39
3513. า (U+0E32) at 42
3614. ม (U+0E21) at 45
37