Lines Matching refs:size_t

71         size_t minimum_width;       /* minimum width for the column */
72 size_t maximum_width; /* maximum width for the column */
73 size_t formatted_for_width; /* the width we tried to format for */
115 static size_t TABLE_CELL_TO_INDEX(TableCell *cell) { in TABLE_CELL_TO_INDEX()
116 size_t i; in TABLE_CELL_TO_INDEX()
126 static TableCell* TABLE_INDEX_TO_CELL(size_t index) { in TABLE_INDEX_TO_CELL()
132 size_t n_columns;
133 size_t n_cells;
136size_t width; /* If == 0 format this as wide as necessary. If SIZE_MAX format this to console
138size_t cell_height_max; /* Maximum number of lines per cell. (If there are more, ellipsis is shown…
142size_t *display_map; /* List of columns to show (by their index). It's fine if columns are listed…
143 size_t n_display_map;
145 size_t *sort_map; /* The columns to order rows by, in order of preference. */
146 size_t n_sort_map;
149 size_t n_json_fields;
156 Table *table_new_raw(size_t n_columns) { in table_new_raw()
177 size_t n_columns = 1; in table_new_internal()
238 for (size_t i = 0; i < t->n_cells; i++) in table_unref()
247 for (size_t i = 0; i < t->n_json_fields; i++) in table_unref()
255 static size_t table_data_size(TableDataType type, const void *data) { in table_data_size()
336 size_t minimum_width, in table_data_matches()
337 size_t maximum_width, in table_data_matches()
342 size_t k, l; in table_data_matches()
382 size_t minimum_width, in table_data_new()
383 size_t maximum_width, in table_data_new()
389 size_t data_size; in table_data_new()
420 size_t minimum_width, in table_add_cell_full()
421 size_t maximum_width, in table_add_cell_full()
495 int table_fill_empty(Table *t, size_t until_column) { in table_fill_empty()
517 size_t i; in table_dup_cell()
537 size_t i; in table_dedup_cell()
585 size_t i; in table_get_data()
602 int table_set_minimum_width(Table *t, TableCell *cell, size_t minimum_width) { in table_set_minimum_width()
619 int table_set_maximum_width(Table *t, TableCell *cell, size_t maximum_width) { in table_set_maximum_width()
760 size_t i; in table_update()
988 size_t w = va_arg(ap, size_t); in table_add_many_internal()
995 size_t w = va_arg(ap, size_t); in table_add_many_internal()
1079 void table_set_width(Table *t, size_t width) { in table_set_width()
1085 void table_set_cell_height_max(Table *t, size_t height) { in table_set_cell_height_max()
1099 size_t *d; in table_set_display_all()
1105 d = reallocarray(t->display_map, t->n_columns, sizeof(size_t)); in table_set_display_all()
1109 for (size_t i = 0; i < t->n_columns; i++) in table_set_display_all()
1118 int table_set_display_internal(Table *t, size_t first_column, ...) { in table_set_display_internal()
1119 size_t column; in table_set_display_internal()
1137 column = va_arg(ap, size_t); in table_set_display_internal()
1147 int table_set_sort_internal(Table *t, size_t first_column, ...) { in table_set_sort_internal()
1148 size_t column; in table_set_sort_internal()
1166 column = va_arg(ap, size_t); in table_set_sort_internal()
1176 size_t cur = 0; in table_hide_column_from_display_internal()
1188 for (size_t i = 0; i < t->n_display_map; i++) { in table_hide_column_from_display_internal()
1194 size_t column; in table_hide_column_from_display_internal()
1196 column = va_arg(ap, size_t); in table_hide_column_from_display_internal()
1217 static int cell_data_compare(TableData *a, size_t index_a, TableData *b, size_t index_b) { in cell_data_compare()
1327 static int table_data_compare(const size_t *a, const size_t *b, Table *t) { in table_data_compare()
1342 for (size_t i = 0; i < t->n_sort_map; i++) { in table_data_compare()
1357 static char* format_strv_width(char **strv, size_t column_width) { in format_strv_width()
1360 size_t sz = 0; in format_strv_width()
1366 size_t position = 0; in format_strv_width()
1368size_t our_len = utf8_console_width(*p); /* This returns -1 on invalid utf-8 (which shouldn't happ… in format_strv_width()
1390 static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercasing, size_t column_… in table_data_format()
1505 size_t n; in table_data_format()
1794 size_t *ret_width, in console_width_height()
1795 size_t *ret_height) { in console_width_height()
1797 size_t max_width = 0, height = 0; in console_width_height()
1805 size_t k; in console_width_height()
1841 size_t available_width, in table_data_requested_width_height()
1842 size_t *ret_width, in table_data_requested_width_height()
1843 size_t *ret_height, in table_data_requested_width_height()
1848 size_t width, height; in table_data_requested_width_height()
1887 static char *align_string_mem(const char *str, const char *url, size_t new_length, unsigned percent… in align_string_mem()
1888 size_t w = 0, space, lspace, old_length, clickable_length; in align_string_mem()
1936 for (size_t i = 0; i < lspace; i++) in align_string_mem()
1939 for (size_t i = lspace + clickable_length; i < space + clickable_length; i++) in align_string_mem()
1983 size_t n_rows, *minimum_width, *maximum_width, display_columns, *requested_width, in table_print()
1986 _cleanup_free_ size_t *sorted = NULL; in table_print()
2004 sorted = new(size_t, n_rows); in table_print()
2008 for (size_t i = 0; i < n_rows; i++) in table_print()
2021 minimum_width = newa(size_t, display_columns); in table_print()
2022 maximum_width = newa(size_t, display_columns); in table_print()
2023 requested_width = newa(size_t, display_columns); in table_print()
2026 for (size_t j = 0; j < display_columns; j++) { in table_print()
2034 for (size_t j = 0; j < display_columns; j++) in table_print()
2039 for (size_t i = t->header ? 0 : 1; i < n_rows; i++) { in table_print()
2046 for (size_t j = 0; j < display_columns; j++) { in table_print()
2048 size_t req_width, req_height; in table_print()
2107 for (size_t j = 0; j < display_columns; j++) { in table_print()
2136 width = newa(size_t, display_columns); in table_print()
2139 size_t extra; in table_print()
2146 for (size_t j = 0; j < display_columns; j++) { in table_print()
2147 size_t delta; in table_print()
2177 size_t extra; in table_print()
2181 for (size_t j = 0; j < display_columns; j++) in table_print()
2187 for (size_t j = 0; j < display_columns; j++) { in table_print()
2188 size_t delta, w; in table_print()
2241 for (size_t i = t->header ? 0 : 1; i < n_rows; i++) { in table_print()
2242 size_t n_subline = 0; in table_print()
2255 for (size_t j = 0; j < display_columns; j++) { in table_print()
2260 size_t l; in table_print()
2385 size_t sz = 0; in table_format()
2403 size_t table_get_rows(Table *t) { in table_get_rows()
2411 size_t table_get_columns(Table *t) { in table_get_columns()
2419 int table_set_reverse(Table *t, size_t column, bool b) { in table_set_reverse()
2436 TableCell *table_get_cell(Table *t, size_t row, size_t column) { in table_get_cell()
2437 size_t i; in table_get_cell()
2463 const void* table_get_at(Table *t, size_t row, size_t column) { in table_get_at()
2617 static const char *table_get_json_field_name(Table *t, size_t column) { in table_get_json_field_name()
2625 _cleanup_free_ size_t *sorted = NULL; in table_to_json()
2626 size_t n_rows, display_columns; in table_to_json()
2640 sorted = new(size_t, n_rows); in table_to_json()
2646 for (size_t i = 0; i < n_rows; i++) in table_to_json()
2664 for (size_t j = 0; j < display_columns; j++) { in table_to_json()
2667 size_t c; in table_to_json()
2706 for (size_t i = 1; i < n_rows; i++) { in table_to_json()
2714 for (size_t j = 0; j < display_columns; j++) { in table_to_json()
2716 size_t k; in table_to_json()
2797 int table_set_json_field_name(Table *t, size_t column, const char *name) { in table_set_json_field_name()
2803 size_t m; in table_set_json_field_name()