| @@ 59-66 (lines=8) @@ | ||
| 56 | $this->header_width = self::$terminal_width; |
|
| 57 | } |
|
| 58 | ||
| 59 | protected function utf8_to_windows($string) |
|
| 60 | { |
|
| 61 | return str_replace( |
|
| 62 | array('┌', '═', '┐', '│', '└', '─', '┘'), |
|
| 63 | array("\xda", "\xdc", "\xbf", "\xb3", "\xc0", "\xc4", "\xd9"), |
|
| 64 | $string |
|
| 65 | ); |
|
| 66 | } |
|
| 67 | ||
| 68 | public function colorValue($string) |
|
| 69 | { |
|
| @@ 45-52 (lines=8) @@ | ||
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| 45 | protected function utf8_to_htmlentity($string) |
|
| 46 | { |
|
| 47 | return str_replace( |
|
| 48 | array('┌', '═', '┐', '│', '└', '─', '┘'), |
|
| 49 | array('┌', '═', '┐', '│', '└', '─', '┘'), |
|
| 50 | $string |
|
| 51 | ); |
|
| 52 | } |
|
| 53 | ||
| 54 | public function colorValue($string) |
|
| 55 | { |
|