1 | <?php |
||
12 | class Utf8 implements InputInterface |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | 6 | public function split($string) |
|
26 | |||
27 | /** |
||
28 | * Convert a list of UTF-8 characters to a list of Unicode codepoint |
||
29 | * |
||
30 | * @param string[] $chars |
||
31 | * @return integer[] |
||
32 | */ |
||
33 | 5 | protected function charsToCodepoints(array $chars) |
|
37 | |||
38 | /** |
||
39 | * Compute and return the Unicode codepoint for given UTF-8 char |
||
40 | * |
||
41 | * @param string $char UTF-8 char |
||
42 | * @return integer |
||
43 | */ |
||
44 | 4 | protected function cp($char) |
|
62 | } |