Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 2490) sorted by relevance

12345678910>>...100

/freebsd/contrib/kyua/utils/format/
H A Dformatter.cpp40 namespace format = utils::format;
65 find_next_placeholder(const std::string& format, in find_next_placeholder() argument
75 throw format::bad_format_error(format, "Trailing %"); in find_next_placeholder()
83 throw format::bad_format_error(format, "Unterminated placeholder '" + in find_next_placeholder()
98 to_int(const std::string& format, const std::string& str, const char* what) in to_int() argument
103 throw format::bad_format_error(format, "Invalid " + std::string(what) + in to_int()
119 new_ostringstream(const std::string& format) in new_ostringstream() argument
123 if (format.length() <= 2) { in new_ostringstream()
132 std::string partial = format.substr(1, format.length() - 2); in new_ostringstream()
140 output->width(to_int(format, partial.substr(0, dot), "width")); in new_ostringstream()
[all …]
H A DMakefile.am.inc29 libutils_a_SOURCES += utils/format/containers.hpp
30 libutils_a_SOURCES += utils/format/containers.ipp
31 libutils_a_SOURCES += utils/format/exceptions.cpp
32 libutils_a_SOURCES += utils/format/exceptions.hpp
33 libutils_a_SOURCES += utils/format/formatter.cpp
34 libutils_a_SOURCES += utils/format/formatter.hpp
35 libutils_a_SOURCES += utils/format/formatter_fwd.hpp
36 libutils_a_SOURCES += utils/format/formatter.ipp
37 libutils_a_SOURCES += utils/format/macros.hpp
40 tests_utils_formatdir = $(pkgtestsdir)/utils/format
[all …]
/freebsd/sys/dev/vmm/
H A Dvmm_ktr.h39 #define VCPU_CTR0(vm, vcpuid, format) \ argument
40 CTR2(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid))
42 #define VCPU_CTR1(vm, vcpuid, format, p1) \ argument
43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1))
45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ argument
46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2))
48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ argument
49 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3))
51 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ argument
52 CTR6(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), \
[all …]
/freebsd/contrib/ntp/libparse/
H A Dclk_meinberg.c90 * Extended data format (PZFUERL for PZF type clocks)
115 * With newer GPS receiver types the Uni Erlangen string format can be configured at the device.
185 static struct format meinberg_fmt[] =
196 { /* special extended FAU Erlangen extended format */
205 { /* special extended FAU Erlangen GPS format */
240 "Meinberg Standard", /* Meinberg simple format - beware */
249 "Meinberg Extended", /* Meinberg enhanced format */
258 "Meinberg GPS Extended", /* Meinberg FAU GPS format */
267 * convert simple type format
273 struct format *unuse in cvt_meinberg()
278 struct format *format; cvt_meinberg() local
471 cvt_mgps(unsigned char * buffer,int size,struct format * format,clocktime_t * clock_time,void * local) cvt_mgps() argument
[all...]
H A Dclk_dcf7000.c57 static struct format dcf7000_fmt =
85 * convert dcf7000 type format
91 struct format *format, in cvt_dcf7000() argument
96 if (!Strok(buffer, format->fixed_string)) in cvt_dcf7000()
102 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day, in cvt_dcf7000()
103 format->field_offsets[O_DAY].length) || in cvt_dcf7000()
104 Stoi(&buffer[format->field_offsets[O_MONTH].offset], &clock_time->month, in cvt_dcf7000()
105 format->field_offsets[O_MONTH].length) || in cvt_dcf7000()
106 Stoi(&buffer[format in cvt_dcf7000()
[all...]
H A Dclk_computime.c61 * The Computime receiver sends a datagram in the following format every minute
80 static struct format computime_fmt =
108 * convert simple type format
114 struct format *format, in cvt_computime() argument
120 if (!Strok(buffer, format->fixed_string)) { in cvt_computime()
123 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day, in cvt_computime()
124 format->field_offsets[O_DAY].length) || in cvt_computime()
125 Stoi(&buffer[format->field_offsets[O_MONTH].offset], &clock_time->month, in cvt_computime()
126 format in cvt_computime()
[all...]
H A Dclk_varitext.c69 * The Varitext receiver sends a datagram in the following format every minute
97 static struct format varitext_fmt =
121 inp_varitext, /* Because of the strange format we need to parse it ourselves */
133 * convert simple type format
139 struct format *format, in cvt_varitext() argument
145 if (!Strok(buffer, format->fixed_string)) { in cvt_varitext()
148 if (Stoi(&buffer[format->field_offsets[O_DAY].offset], &clock_time->day, in cvt_varitext()
149 format->field_offsets[O_DAY].length) || in cvt_varitext()
150 Stoi(&buffer[format in cvt_varitext()
[all...]
/freebsd/sys/contrib/libsodium/packaging/dotnet-core/
H A Dprepare.py53 self.projfile = os.path.join(self.builddir, '{0}.{1}.pkgproj'.format(PACKAGE, package_version))
54 self.propsfile = os.path.join(self.builddir, '{0}.props'.format(PACKAGE))
55 self.pkgfile = os.path.join(BUILDDIR, '{0}.{1}.nupkg'.format(PACKAGE, package_version))
60 …self.url = 'https://download.libsodium.org/libsodium/releases/libsodium-{0}-msvc.zip'.format(versi…
63 self.itemfile = '{0}/Release/v140/dynamic/libsodium.dll'.format(platform)
69 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile))
73 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile))
75 f.write('\tcd {0} && unzip -q -DD -o {1} \'{2}\'\n'.format(
84 …omebrew/bottles/download_file?file_path=libsodium-{0}.{1}.bottle.tar.gz'.format(version.libsodium_…
87 self.itemfile = 'libsodium/{0}/lib/libsodium.dylib'.format(version.libsodium_version)
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.lib_strings.lua113 assert(string.format('%q%s', x, x) == '"\\"\195\174lo\\"\\\n\\\\""\195\174lo"\n\\')
114 assert(string.format('%q', "\0") == [["\0"]])
116 assert(string.format("\0%c\0%c%x\0", string.byte("\xe4"), string.byte("b"), 140) ==
118 assert(string.format('') == "")
119 assert(string.format("%c",34)..string.format("%c",48)..string.format("%c",90)..string.format("%c",1…
120 string.format("%c%c%c%c", 34, 48, 90, 100))
121 assert(string.format("%s\0 is not \0%s", 'not be', 'be') == 'not be\0 is not \0be')
122 assert(string.format("%%%d %010d", 10, 23) == "%10 0000000023")
123 x = string.format('"%-50s"', 'a')
127 assert(string.format("-%.20s.20s", string.rep("%", 2000)) ==
[all …]
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dformat.cppm
/freebsd/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionGroupFormat.cpp109 Format format = eFormatDefault; in SetOptionValue() local
113 ParserGDBFormatLetter(execution_context, gdb_format_str[0], format, in SetOptionValue()
123 (format == eFormatInvalid && byte_size == 0 && count == 0)) { in SetOptionValue()
132 if (format == eFormatInvalid) in SetOptionValue()
133 ParserGDBFormatLetter(execution_context, m_prev_gdb_format, format, in SetOptionValue()
141 ParserGDBFormatLetter(execution_context, m_prev_gdb_size, format, in SetOptionValue()
146 if (byte_size > 0 && format != lldb::eFormatAddressInfo) { in SetOptionValue()
166 m_format.SetCurrentValue(format); in SetOptionValue()
186 ExecutionContext *execution_context, char format_letter, Format &format, in ParserGDBFormatLetter() argument
191 format = eFormatOctal; in ParserGDBFormatLetter()
[all …]
/freebsd/contrib/bc/scripts/
H A Dkaratsuba.py37 print("usage: {} [num_iterations test_num exe]".format(script))
93 indata = indata.format(num, num).encode()
116 p = run([ "{}/../configure.sh".format(testdir), "-O3" ], flags)
118 print("configure.sh returned an error ({}); exiting...".format(p.returncode))
136 print("make returned an error ({}); exiting...".format(p.returncode))
161 p = run([ "{}/../configure.sh".format(testdir), "-O3", "-k{}".format(i) ], config_env)
164 print("configure.sh returned an error ({}); exiting...".format(p.returncode))
170 print("make returned an error ({}); exiting...".format(p.returncode))
176 print("Running tests for Karatsuba Num: {}\n".format(
[all...]
/freebsd/crypto/openssl/include/openssl/
H A Dtrace.h287 # define OSSL_TRACE1(category, format, arg1) \ argument
288 OSSL_TRACEV(category, (trc_out, format, arg1))
289 # define OSSL_TRACE2(category, format, arg1, arg2) \ argument
290 OSSL_TRACEV(category, (trc_out, format, arg1, arg2))
291 # define OSSL_TRACE3(category, format, arg1, arg2, arg3) \ argument
292 OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3))
293 # define OSSL_TRACE4(category, format, arg1, arg2, arg3, arg4) \ argument
294 OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4))
295 # define OSSL_TRACE5(category, format, arg1, arg2, arg3, arg4, arg5) \ argument
296 OSSL_TRACEV(category, (trc_out, format, arg1, arg2, arg3, arg4, arg5))
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dutil.c120 whine(const char *type, const char *format, va_list ap) in whine() argument
125 vfprintf(stderr, format, ap); in whine()
127 if (format[strlen(format) - 1] != '\n') in whine()
139 terminate(const char *format, ...) in terminate() argument
143 va_start(ap, format); in terminate()
144 whine("ERROR", format, ap); in terminate()
167 aborterr(const char *format, ...) in aborterr() argument
171 va_start(ap, format); in aborterr()
172 whine("ERROR", format, ap); in aborterr()
184 warning(const char *format, ...) in warning() argument
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dformat16 // [format.context], class template basic_format_context
21 // [format.args], class template basic_format_args
26 // [format.fmt.string], class template basic_format_string
34 basic_format_string(runtime-format-string<charT> s) noexcept : str(s.str) {} // since C++26
45 template<class charT> struct runtime-format-string { // since C++26, exposition-only
50 runtime-format-string(basic_string_view<charT> s) noexcept : str(s) {}
52 runtime-format-string(const runtime-format-string&) = delete;
53 runtime-format-string& operator=(const runtime-format-string&) = delete;
56 runtime-format-string<char> runtime_format(string_view fmt) noexcept {
59 runtime-format-string<wchar_t> runtime_format(wstring_view fmt) noexcept {
[all …]
/freebsd/sys/dev/pms/freebsd/driver/common/
H A Dosdebug.h65 #define AG_ERROR_MSG(mask, val, format) \ argument
70 printf format; \
73 printf format; \
77 #define TIDEBUG_MSG(mask, val, format) \ argument
82 printf format ; \
87 printf format ; \
92 printf format ; \
97 #define TIDEBUG_MSG0(format) \ argument
99 printf format ; \
102 #define TIDEBUG_MSG(mask, val, format) argument
[all …]
/freebsd/contrib/ncurses/ncurses/base/
H A Dvsscanf.c162 vsscanf(const char *str, const char *format, va_list ap) in vsscanf() argument
176 return (vfscanf(&strbuf, format, ap)); in vsscanf()
178 return (_doscan(&strbuf, format, ap)); in vsscanf()
188 _nc_visbuf2(2, format))); in vsscanf()
209 size_t len_fmt = strlen(format) + 32; in vsscanf()
227 while (*format != '\0') { in vsscanf()
233 for (n = 0; format[n] != 0 && state != sFinal; ++n) { in vsscanf()
234 my_fmt[n] = format[n]; in vsscanf()
237 if (format[n] == '%') in vsscanf()
241 if (format[n] == '%') { in vsscanf()
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/mdb/tools/common/
H A Ddie.c39 die(char *format, ...) in die() argument
49 va_start(ap, format); in die()
51 (void) vfprintf(stderr, format, ap); in die()
54 if (format[strlen(format) - 1] != '\n') in die()
65 elfdie(char *format, ...) in elfdie() argument
74 va_start(ap, format); in elfdie()
76 (void) vfprintf(stderr, format, ap); in elfdie()
79 if (format[strlen(format) - 1] != '\n') in elfdie()
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_dbg.h8 #define _sdp_printk(func, line, level, sk, format, arg...) \ argument
10 printk(level "%s:%d %p sdp_sock(%d:%d %d:%d): " format "\n", \
16 #define sdp_printk(level, sk, format, arg...) \ argument
17 _sdp_printk(__func__, __LINE__, level, sk, format, ## arg)
18 #define sdp_warn(sk, format, arg...) \ argument
19 sdp_printk(KERN_WARNING, sk, format , ## arg)
64 #define sdp_prf1(sk, s, format, arg...) ({ \ argument
74 snprintf(l->msg, sizeof(l->msg) - 1, format, ## arg); \
82 #define sdp_prf(sk, s, format, arg...) sdp_prf1(sk, s, format, ## arg) argument
85 #define sdp_prf1(sk, s, format, arg...) argument
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DARMWinEHPrinter.cpp103 OS << format("+0x%" PRIX64 " (0x%" PRIX64 ")", Offset, Address); in formatSymbol()
105 OS << format("(0x%" PRIX64 ")", Address); in formatSymbol()
107 OS << format("0x%" PRIX64, Address); in formatSymbol()
331 SW.startLine() << format("0x%02x ; %s sp, #(%u * 4)\n", in opcode_0xxxxxxx()
348 SW.startLine() << format("0x%02x 0x%02x ; %s.w ", in opcode_10Lxxxxx()
361 SW.startLine() << format("0x%02x ; mov r%u, sp\n", in opcode_1100xxxx()
364 SW.startLine() << format("0x%02x ; mov sp, r%u\n", in opcode_1100xxxx()
378 SW.startLine() << format("0x%02x ; %s ", OC[Offset], in opcode_11010Lxx()
395 SW.startLine() << format("0x%02x ; %s.w ", OC[Offset], in opcode_11011Lxx()
409 SW.startLine() << format(" in opcode_11100xxx()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFTypeUnit.cpp25 << ", type_signature = " << format("0x%016" PRIx64, getTypeHash()) in dump()
26 << ", length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength()) in dump()
31 OS << format("0x%08" PRIx64, getOffset()) << ": Type Unit:" in dump()
32 << " length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength()) in dump()
34 << ", version = " << format("0x%04x", getVersion()); in dump()
37 OS << ", abbr_offset = " << format("0x%04" PRIx64, getAbbrOffset()); in dump()
40 OS << ", addr_size = " << format("0x%02x", getAddressByteSize()) in dump()
42 << ", type_signature = " << format("0x%016" PRIx64, getTypeHash()) in dump()
43 << ", type_offset = " << format("0x%04" PRIx64, getTypeOffset()) in dump()
44 << " (next unit at " << format("0x%08" PRIx64, getNextUnitOffset()) in dump()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DStatus.cpp54 Status::Status(const char *format, ...) : m_string() { in Status() argument
56 va_start(args, format); in Status()
58 SetErrorStringWithVarArg(format, args); in Status()
190 const char *format, ...) { in SetExpressionErrorWithFormat() argument
193 if (format != nullptr && format[0]) { in SetExpressionErrorWithFormat()
195 va_start(args, format); in SetExpressionErrorWithFormat()
196 length = SetErrorStringWithVarArg(format, args); in SetExpressionErrorWithFormat()
246 int Status::SetErrorStringWithFormat(const char *format, ...) { in SetErrorStringWithFormat() argument
247 if (format != nullptr && format[0]) { in SetErrorStringWithFormat()
249 va_start(args, format); in SetErrorStringWithFormat()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_nicenum.c62 enum zfs_nicenum_format format) in zfs_nicenum_format() argument
83 if (format == ZFS_NICENUM_RAW) { in zfs_nicenum_format()
86 } else if (format == ZFS_NICENUM_RAWTIME && num > 0) { in zfs_nicenum_format()
89 } else if (format == ZFS_NICENUM_RAWTIME && num == 0) { in zfs_nicenum_format()
94 while (n >= k_unit[format] && index < units_len[format]) { in zfs_nicenum_format()
95 n /= k_unit[format]; in zfs_nicenum_format()
99 u = units[format][index]; in zfs_nicenum_format()
102 if ((format == ZFS_NICENUM_TIME) && (num == 0)) { in zfs_nicenum_format()
105 (uint64_t)powl(k_unit[format], index)) == 0)) { in zfs_nicenum_format()
125 (uint64_t)powl(k_unit[format], index); in zfs_nicenum_format()
[all …]
/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dcore.h84 #define mlx5_fpga_dbg(__adev, format, ...) \ argument
85 dev_dbg(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d:(pid %d): " format, \
88 #define mlx5_fpga_err(__adev, format, ...) \ argument
89 dev_err(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d:(pid %d): " format, \
92 #define mlx5_fpga_warn(__adev, format, ...) \ argument
93 dev_warn(&(__adev)->mdev->pdev->dev, "FPGA: %s:%d:(pid %d): " format, \
96 #define mlx5_fpga_warn_ratelimited(__adev, format, ...) \ argument
98 format, __func__, __LINE__, ##__VA_ARGS__)
100 #define mlx5_fpga_notice(__adev, format, ...) \ argument
101 dev_notice(&(__adev)->mdev->pdev->dev, "FPGA: " format, ##__VA_ARGS__)
[all …]
/freebsd/contrib/tcp_wrappers/
H A Ddiag.c32 static void tcpd_diag(int severity, char *tag, char *format, va_list ap) in tcpd_diag() argument
38 tag, tcpd_context.file, tcpd_context.line, format); in tcpd_diag()
40 sprintf(fmt, "%s: %s", tag, format); in tcpd_diag()
46 void VARARGS(tcpd_warn, char *, format) in VARARGS() argument
50 VASTART(ap, char *, format); in VARARGS()
51 tcpd_diag(LOG_WARNING, "warning", format, ap); in VARARGS()
57 void VARARGS(tcpd_jump, char *, format) in VARARGS() argument
61 VASTART(ap, char *, format); in VARARGS()
62 tcpd_diag(LOG_ERR, "error", format, ap); in VARARGS()

12345678910>>...100