Lines Matching +full:check +full:- +full:pass -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)
32 $width = $this->getTerminalWidth();
34 $this->max = $width - 1;
38 $this->colors = $colors;
40 $this->colors = new Colors();
51 return $this->border;
62 $this->border = $border;
74 return $this->max;
84 $this->max = $max;
122 $border = $this->strlen($this->border);
123 $fixed = (count($columns) - 1) * $border; // borders are used already
124 $fluid = -1;
126 // first pass for format check and fixed columns
133 // check if other colums are using proper units
134 if (substr($col, -1) == '%') {
150 $remain = $this->max - $alloc;
152 // second pass to handle percentages
154 if (substr($col, -1) != '%') {
165 $remain = $this->max - $alloc;
191 $columns = $this->calculateColLengths($columns);
197 $wrapped[$col] = explode("\n", $this->wordwrap($texts[$col], $width, "\n", true));
205 $last = count($columns) - 1;
214 $chunk = $this->pad($val, $width);
216 $chunk = $this->colors->wrap($chunk, $colors[$col]);
222 $out .= $this->border;
240 $strlen = $this->strlen($string);
243 $pad = $len - $strlen;
248 * Measures char length in UTF-8 when possible
259 return mb_strlen($string, 'utf-8');
298 if ($this->strlen($line) <= $width) {
305 if ($this->strlen($actual . $word) <= $width) {
313 while ($this->strlen($actual) > $width) {
314 $line .= $this->substr($actual, 0, $width) . $break;
315 $actual = $this->substr($actual, $width);