You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!isset($this->_width[$column]) || $width > $this->_width[$column]) {
107
107
$this->_width[$column] = $width;
108
108
}
@@ -228,4 +228,30 @@ public function setRows(array $rows) {
228
228
publicfunctioncountRows() {
229
229
returncount($this->_rows);
230
230
}
231
+
232
+
/**
233
+
* Set whether items in an Ascii table are pre-colorized.
234
+
*
235
+
* @param bool|array $precolorized A boolean to set all columns in the table as pre-colorized, or an array of booleans keyed by column index (number) to set individual columns as pre-colorized.
static$eaw_regex; // East Asian Width regex. Characters that count as 2 characters as they're "wide" or "fullwidth". See http://www.unicode.org/reports/tr11/tr11-19.html
* @param bool|array $colorized A boolean to set all columns in the table as pre-colorized, or an array of booleans keyed by column index (number) to set individual columns as pre-colorized.
199
+
*/
200
+
publicfunctionsetPreColorized( $pre_colorized ) {
201
+
$this->_pre_colorized = $pre_colorized;
202
+
}
203
+
204
+
/**
205
+
* Is a column pre-colorized?
206
+
*
207
+
* @param int $column Column index to check.
208
+
* @return bool True if whole table is marked as pre-colorized, or if the individual column is pre-colorized; else false.
0 commit comments