Lines Matching full:widths
62 * Parse the source string, storing the offsets and widths of each column in
66 split_row(char *source, unsigned *offsets, unsigned *widths) in split_row() argument
76 widths[result - 1] = offset - offsets[result - 1] - (unsigned) mark; in split_row()
83 widths[result - 1] = offset - offsets[result - 1]; in split_row()
100 unsigned *widths; in dlg_align_columns() local
114 widths = dlg_calloc(unsigned, maxcols); in dlg_align_columns()
118 assert_ptr(widths, "dlg_align_columns"); in dlg_align_columns()
122 /* now, determine the number of columns and the column-widths */ in dlg_align_columns()
124 unsigned cols = split_row(*value, offsets, widths); in dlg_align_columns()
128 if (maxwidth[n] < widths[n]) in dlg_align_columns()
129 maxwidth[n] = widths[n]; in dlg_align_columns()
139 unsigned cols = split_row(*value, offsets, widths); in dlg_align_columns()
147 memcpy(text + offset, *value + offsets[n], (size_t) widths[n]); in dlg_align_columns()
154 free(widths); in dlg_align_columns()