| @@ 68-78 (lines=11) @@ | ||
| 65 | * |
|
| 66 | * @return string|false |
|
| 67 | */ |
|
| 68 | public function intl() |
|
| 69 | { |
|
| 70 | try { |
|
| 71 | $uConverter = new \UConverter(self::ENCODING, $this->encoding); |
|
| 72 | $converted = $uConverter->convert($this->string); |
|
| 73 | } catch (\Exception $e) { |
|
| 74 | return false; |
|
| 75 | } |
|
| 76 | mb_internal_encoding(self::ENCODING); |
|
| 77 | return $converted; |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * iconv |
|
| @@ 87-96 (lines=10) @@ | ||
| 84 | * @param string $outSuffix |
|
| 85 | * @return string|false |
|
| 86 | */ |
|
| 87 | public function iconv($outSuffix = '//TRANSLIT//IGNORE') |
|
| 88 | { |
|
| 89 | try { |
|
| 90 | $converted = iconv($this->encoding, self::ENCODING . $outSuffix, $this->string); |
|
| 91 | } catch (\Exception $e) { |
|
| 92 | return false; |
|
| 93 | } |
|
| 94 | mb_internal_encoding(self::ENCODING); |
|
| 95 | return $converted; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * mbstring |
|