| @@ 356-364 (lines=9) @@ | ||
| 353 | * |
|
| 354 | * @return bool|mixed |
|
| 355 | */ |
|
| 356 | protected static function getData($file) |
|
| 357 | { |
|
| 358 | $file = __DIR__ . '/charset/' . $file . '.ser'; |
|
| 359 | if (file_exists($file)) { |
|
| 360 | return unserialize(file_get_contents($file)); |
|
| 361 | } else { |
|
| 362 | return false; |
|
| 363 | } |
|
| 364 | } |
|
| 365 | ||
| 366 | /** |
|
| 367 | * map to utf8 |
|
| @@ 506-514 (lines=9) @@ | ||
| 503 | * |
|
| 504 | * @return bool|mixed |
|
| 505 | */ |
|
| 506 | protected static function getData($file) |
|
| 507 | { |
|
| 508 | $file = __DIR__ . '/unidata/' . $file . '.ser'; |
|
| 509 | if (file_exists($file)) { |
|
| 510 | return unserialize(file_get_contents($file)); |
|
| 511 | } else { |
|
| 512 | return false; |
|
| 513 | } |
|
| 514 | } |
|
| 515 | ||
| 516 | /** |
|
| 517 | * @param string $str |
|
| @@ 146-154 (lines=9) @@ | ||
| 143 | * |
|
| 144 | * @return bool|mixed |
|
| 145 | */ |
|
| 146 | protected static function getData($file) |
|
| 147 | { |
|
| 148 | $file = __DIR__ . '/unidata/' . $file . '.ser'; |
|
| 149 | if (file_exists($file)) { |
|
| 150 | return unserialize(file_get_contents($file)); |
|
| 151 | } else { |
|
| 152 | return false; |
|
| 153 | } |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * recompose |
|
| @@ 699-707 (lines=9) @@ | ||
| 696 | * |
|
| 697 | * @return bool|string|array|int false on error |
|
| 698 | */ |
|
| 699 | protected static function getData($file) |
|
| 700 | { |
|
| 701 | $file = __DIR__ . '/data/' . $file . '.ser'; |
|
| 702 | if (file_exists($file)) { |
|
| 703 | return unserialize(file_get_contents($file)); |
|
| 704 | } else { |
|
| 705 | return false; |
|
| 706 | } |
|
| 707 | } |
|
| 708 | ||
| 709 | /** |
|
| 710 | * US-ASCII transliterations of Unicode text |
|