| Total Complexity | 8 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class StringUtil |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Minimal multi-byte wordwrap implementation |
||
| 12 | * which also takes break length into consideration |
||
| 13 | */ |
||
| 14 | public static function wordwrap(string $string, int $width, string $break = "\n") : string |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function stripAnsiEscapeSequence(string $str) : string |
||
| 45 | } |
||
| 46 | |||
| 47 | public static function length(string $str, bool $ignoreAnsiEscapeSequence = true) : int |
||
| 52 |