• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/kyua/utils/text/

Lines Matching refs:text

29 #include "utils/text/table.hpp"
35 #include "utils/text/operations.ipp"
37 namespace text = utils::text;
40 /// Performs a check on text::table_formatter.
57 const text::table_formatter& formatter,
58 const text::table& table)
60 ATF_REQUIRE_EQ(expected, text::join(formatter.format(table), "\n") + "\n");
68 ATF_REQUIRE_EQ(5, text::table(5).ncolumns());
69 ATF_REQUIRE_EQ(10, text::table(10).ncolumns());
76 text::table_row row1;
79 text::table_row row2;
83 text::table table(2);
95 text::table_row row1;
98 text::table_row row2;
102 text::table table(2);
114 text::table table(2);
116 table.add_row(text::table_row(2));
124 text::table_row row1;
126 text::table_row row2;
129 text::table table(1);
133 text::table::const_iterator iter = table.begin();
147 ATF_REQUIRE(text::table_formatter().set_separator(" ")
148 .format(text::table(1)).empty());
149 ATF_REQUIRE(text::table_formatter().set_separator(" ")
150 .format(text::table(10)).empty());
157 text::table table(3);
159 text::table_row row;
166 text::table_row row;
167 row.push_back("Fourth with some text");
168 row.push_back("Fifth with some more text");
176 text::table_formatter(), table);
183 text::table table(1);
185 text::table_row row;
190 text::table_row row;
198 text::table_formatter().set_separator(" | "), table);
205 text::table table(1);
207 text::table_row row;
212 text::table_row row;
220 text::table_formatter().set_separator(" | ").set_column_width(0, 1024),
228 text::table table(1);
230 text::table_row row;
235 text::table_row row;
243 text::table_formatter().set_separator(" | ").set_table_width(11),
251 text::table table(3);
253 text::table_row row;
260 text::table_row row;
261 row.push_back("Fourth with some text");
262 row.push_back("Fifth with some more text");
269 "Fourth with some text | Fifth with some more text | Sixth foo\n",
270 text::table_formatter().set_separator(" | "), table);
277 text::table table(3);
279 text::table_row row;
286 text::table_row row;
287 row.push_back("Fourth with some text");
288 row.push_back("Fifth with some more text");
295 "Fourth with some text | Fifth with some more text | Sixth foo\n",
296 text::table_formatter().set_separator(" | ").set_column_width(0, 23)
304 text::table table(3);
306 text::table_row row;
313 text::table_row row;
314 row.push_back("Fourth with some text");
315 row.push_back("Fifth with some more text");
322 "Fourth with some text | Fifth with | Sixth foo\n"
324 " | text | \n",
325 text::table_formatter().set_separator(" | ").set_table_width(46)
326 .set_column_width(1, text::table_formatter::width_refill)
327 .set_column_width(0, text::table_formatter::width_auto), table);
331 "Fourth with some text | Fifth with | Sixth foo\n"
333 " | text | \n",
334 text::table_formatter().set_separator(" | ").set_table_width(48)
335 .set_column_width(1, text::table_formatter::width_refill)
343 text::table options_table(2);
345 text::table_row row;
351 text::table_row row;
353 row.push_back("And this is the text for the second flag");
357 text::table commands_table(2);
359 text::table_row row;
365 text::table_row row;
371 const text::widths_vector::value_type first_width =
377 "-b And this is the text for\n"
379 text::table_formatter().set_separator(" ").set_table_width(36)
381 .set_column_width(1, text::table_formatter::width_refill),
389 text::table_formatter().set_separator(" ").set_table_width(36)
391 .set_column_width(1, text::table_formatter::width_refill),