1 | <?php |
||
9 | class CharacterEncodingConvert implements RobotsTxtInterface |
||
10 | { |
||
11 | /** |
||
12 | * String to convert |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $string; |
||
16 | |||
17 | /** |
||
18 | * Source encoding |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $source; |
||
22 | |||
23 | /** |
||
24 | * CharacterEncodingConvert constructor. |
||
25 | * |
||
26 | * @param string $string |
||
27 | * @param string $source |
||
28 | */ |
||
29 | public function __construct($string, $source) |
||
34 | |||
35 | /** |
||
36 | * Auto mode |
||
37 | * |
||
38 | * @return string|false |
||
39 | */ |
||
40 | public function auto() |
||
51 | |||
52 | /** |
||
53 | * iconv |
||
54 | * |
||
55 | * @param string $outSuffix |
||
56 | * @return string|false |
||
57 | */ |
||
58 | public function iconv($outSuffix = '//TRANSLIT//IGNORE') |
||
68 | |||
69 | /** |
||
70 | * mbstring |
||
71 | * |
||
72 | * @param array|string|null $fromOverride |
||
73 | * @return string|false |
||
74 | */ |
||
75 | public function mbstring($fromOverride = null) |
||
85 | } |
||
86 |