Searched refs:formatter (Results 1 - 25 of 114) sorted by relevance

12345

/netbsd-current/external/bsd/kyua-cli/dist/utils/format/
H A Dmacros.hpp40 #include "utils/format/formatter.ipp"
43 /// Constructs a utils::format::formatter object with the given format string.
46 /// utils::format::formatter objects shorter, and thus to allow inlining these
55 #define F(fmt) utils::format::formatter(fmt)
H A Dformatter.hpp29 /// \file utils/format/formatter.hpp
30 /// Provides the definition of the utils::format::formatter class.
32 /// The utils::format::formatter class is a poor man's replacement for the
58 /// A formatter always maintains the original format string but also holds a
60 /// formatter instance, but calls to operator% return new formatter objects with
66 /// const std::string s = (formatter("%s %s") % "foo" % 5).str();
72 /// const formatter f1("%s %s");
73 /// const formatter f2 = f1 % "foo";
74 /// const formatter f
77 class formatter { class in namespace:utils::format
[all...]
H A Dformatter.cpp29 #include "utils/format/formatter.hpp"
62 /// character. We cannot detect any other kind of invalid formatter because
181 /// Performs internal initialization of the formatter.
186 format::formatter::init(void)
201 /// Constructs a new formatter object (internal).
209 format::formatter::formatter(const std::string& format, function in class:format::formatter
221 /// Constructs a new formatter object.
226 format::formatter::formatter(cons function in class:format::formatter
[all...]
H A Dformatter_test.cpp29 #include "utils/format/formatter.hpp"
47 /// support operator<< to the formatter;
87 /// Calls ATF_REQUIRE_EQ on an expected string and a formatter.
93 /// \param expected The expected string generated by the formatter.
94 /// \param formatter The formatter to test.
95 #define EQ(expected, formatter) ATF_REQUIRE_EQ(expected, (formatter).str())
/netbsd-current/external/gpl2/lvm2/dist/include/
H A Dtext_export.h24 struct formatter;
28 int out_size(struct formatter *f, uint64_t size, const char *fmt, ...)
31 int out_hint(struct formatter *f, const char *fmt, ...)
34 int out_text(struct formatter *f, const char *fmt, ...)
37 int out_config_node(struct formatter *f, const struct config_node *cn);
39 int out_areas(struct formatter *f, const struct lv_segment *seg,
42 void out_inc_indent(struct formatter *f);
43 void out_dec_indent(struct formatter *f);
44 int out_newline(struct formatter *f);
H A Dsegtype.h27 struct formatter;
69 struct formatter * f);
/netbsd-current/external/gpl2/lvm2/dist/lib/format_text/
H A Dtext_export.h24 struct formatter;
28 int out_size(struct formatter *f, uint64_t size, const char *fmt, ...)
31 int out_hint(struct formatter *f, const char *fmt, ...)
34 int out_text(struct formatter *f, const char *fmt, ...)
37 int out_config_node(struct formatter *f, const struct config_node *cn);
39 int out_areas(struct formatter *f, const struct lv_segment *seg,
42 void out_inc_indent(struct formatter *f);
43 void out_dec_indent(struct formatter *f);
44 int out_newline(struct formatter *f);
H A Dexport.c31 struct formatter;
32 typedef int (*out_with_comment_fn) (struct formatter * f, const char *comment,
34 typedef int (*nl_fn) (struct formatter * f);
52 struct formatter { struct
95 static void _inc_indent(struct formatter *f)
101 static void _dec_indent(struct formatter *f)
112 static int _nl_file(struct formatter *f)
119 static int _extend_buffer(struct formatter *f)
136 static int _nl_raw(struct formatter *f)
152 static int _out_with_comment_file(struct formatter *
[all...]
/netbsd-current/external/bsd/mdocml/dist/
H A Dmandocd.c121 void *formatter; local
180 formatter = ascii_alloc(&options);
183 formatter = utf8_alloc(&options);
187 formatter = html_alloc(&options);
214 process(parser, outtype, formatter);
217 html_reset(formatter);
235 ascii_free(formatter);
238 html_free(formatter);
247 process(struct mparse *parser, enum outt outtype, void *formatter) argument
257 terminal_mdoc(formatter, met
[all...]
/netbsd-current/external/gpl3/gdb/dist/gdb/python/lib/gdb/
H A Dstyling.py38 formatter = get_formatter()
39 return highlight(contents, lexer, formatter).encode(
90 formatter = get_formatter()
91 return highlight(content, lexer, formatter).rstrip().encode()
/netbsd-current/external/bsd/kyua-cli/dist/cli/
H A Dcmd_help.cpp134 text::table_formatter formatter; local
135 formatter.set_column_width(0, first_width);
136 formatter.set_column_width(1, text::table_formatter::width_refill);
137 formatter.set_separator(" ");
142 ui->out_table(options_table, formatter, " ");
152 ui->out_table(command_tables.find(category)->second, formatter, " ");
184 text::table_formatter formatter; local
185 formatter.set_column_width(0, first_width);
186 formatter.set_column_width(1, text::table_formatter::width_refill);
187 formatter
[all...]
/netbsd-current/external/bsd/top/dist/
H A Ddisplay.h48 void i_minibar(int (*formatter)(char *, int));
49 void u_minibar(int (*formatter)(char *, int));
H A Ddisplay.c992 i_minibar(int (*formatter)(char *, int))
994 (void)((*formatter)(minibar_buffer, MINIBAR_WIDTH));
1000 u_minibar(int (*formatter)(char *, int))
1002 (void)((*formatter)(minibar_buffer, MINIBAR_WIDTH));
/netbsd-current/external/bsd/kyua-cli/dist/utils/cmdline/
H A Dui_test.cpp281 text::table_formatter formatter; local
282 formatter.set_separator(" | ");
283 formatter.set_column_width(0, 23);
284 formatter.set_column_width(1, text::table_formatter::width_refill);
287 ui.out_table(table, formatter, " ");
311 text::table_formatter formatter; local
312 formatter.set_separator(" | ");
313 formatter.set_column_width(0, 23);
314 formatter.set_column_width(1, text::table_formatter::width_refill);
317 ui.out_table(table, formatter, " ");
[all...]
H A Dui.cpp209 /// \param formatter The table formatter to use to convert the table to a
214 text::table_formatter formatter,
222 formatter.set_table_width(max_width.get() - prefix.length());
224 const std::vector< std::string > lines = formatter.format(table);
213 out_table(const text::table& table, text::table_formatter formatter, const std::string& prefix) argument
/netbsd-current/external/gpl2/lvm2/dist/lib/metadata/
H A Dsegtype.h27 struct formatter;
69 struct formatter * f);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/python/lib/gdb/
H A D__init__.py220 formatter = formatters.TerminalFormatter()
221 return highlight(contents, lexer, formatter)
/netbsd-current/external/gpl2/lvm2/dist/lib/unknown/
H A Dunknown.c60 static int _unknown_text_export(const struct lv_segment *seg, struct formatter *f)
/netbsd-current/external/bsd/kyua-cli/lib/utils/
H A DMakefile35 format/formatter.cpp
/netbsd-current/external/bsd/kyua-cli/dist/utils/text/
H A Dtable_test.cpp53 /// \param formatter The formatter to use.
57 const text::table_formatter& formatter,
60 ATF_REQUIRE_EQ(expected, text::join(formatter.format(table), "\n") + "\n");
56 table_formatter_check(const std::string& expected, const text::table_formatter& formatter, const text::table& table) argument
/netbsd-current/external/apache2/llvm/dist/libcxx/utils/google-benchmark/
H A Dmingw.py292 formatter = logging.Formatter('%(message)s')
293 handler.setFormatter(formatter)
/netbsd-current/external/apache2/llvm/dist/llvm/utils/benchmark/
H A Dmingw.py292 formatter = logging.Formatter('%(message)s')
293 handler.setFormatter(formatter)
/netbsd-current/external/gpl2/lvm2/dist/lib/snapshot/
H A Dsnapshot.c82 static int _snap_text_export(const struct lv_segment *seg, struct formatter *f)
/netbsd-current/external/gpl2/lvm2/dist/lib/striped/
H A Dstriped.c96 static int _striped_text_export(const struct lv_segment *seg, struct formatter *f)
/netbsd-current/external/mpl/bind/dist/bin/tests/system/
H A Dconftest.py434 formatter = logging.Formatter(LOG_FORMAT)
435 handler.setFormatter(formatter)

Completed in 185 milliseconds

12345