Lines Matching defs:width
41 * width: on input, the desired number of character cells; on output, the actual
44 * over the desired width
47 * Pointer to the place in the string that is as near the desired width as
50 * goes over the desired width, the return value may be one character cell
52 * In any case, the return value points after any zero-width characters that
55 const char *mbs_at_width(const char *s, int *width, int dir)
62 if (*width <= 0)
69 if (width_so_far + w > *width && dir < 0)
75 if (width_so_far >= *width) {
86 *width = width_so_far;
91 * get_mbs_width - compute screen width of a string
95 int width;
97 width = INT_MAX;
98 mbs_at_width(s, &width, 1);
99 return width;
103 * get_max_mbs_width - get width of longest string in an array