Lines Matching defs:columns
88 // Show width many columns, negative means from right edge, out=0 just measure
90 // Returns width in columns, moves *str to end of data consumed.
94 int columns = 0, col, bytes;
98 for (end = start = *str; *end; columns += col, end += bytes) {
101 if (width-columns<col) break;
112 col = width-columns;
120 return columns;
153 // Returns length in columns so caller can pad it out with spaces.
159 // Return utf8 columns
165 // Return bytes used by (up to) this many columns
176 // out to padto. If padto<0 left justify. Returns columns printed