1 | <?php |
||
11 | class StringUtil |
||
12 | { |
||
13 | /** |
||
14 | * Minimal multi-byte wordwrap implementation |
||
15 | * which also takes break length into consideration |
||
16 | * |
||
17 | * @param string $str |
||
18 | * @param int $width |
||
19 | * @param string $break |
||
20 | * @return string |
||
21 | */ |
||
22 | public static function wordwrap($str, $width, $break = "\n") |
||
36 | |||
37 | /** |
||
38 | * @param string $str |
||
39 | * @return string |
||
40 | */ |
||
41 | public static function stripAnsiEscapeSequence($str) |
||
45 | } |
||
46 |