Home
last modified time | relevance | path

Searched refs:format_spec (Results 1 – 25 of 1093) sorted by relevance

12345678910>>...44

/dports/www/gallery-dl/gallery-dl-1.21.0/gallery_dl/
H A Dformatter.py267 if format_spec:
268 fmt = format_spec[0]
283 def _parse_optional(format_spec): argument
284 before, after, format_spec = format_spec.split("/", 2)
293 def _parse_maxlen(format_spec): argument
294 maxlen, replacement, format_spec = format_spec.split("/", 2)
304 def _parse_join(format_spec): argument
305 separator, _, format_spec = format_spec.partition("/")
314 def _parse_replace(format_spec): argument
315 old, new, format_spec = format_spec.split("/", 2)
[all …]
/dports/textproc/py-parse-type/parse_type-0.5.6/tests/
H A Dtest_parse_util.py51 self.assertIsNotNone(field.format_spec)
57 field.format_spec
65 _ = field.format_spec.type
66 self.assertIsNotNone(field.format_spec)
68 self.assertIsNone(field.format_spec)
79 self.assertEqual(field.format_spec.align, '<')
176 self.assertEqual(format_spec.width, "")
178 self.assertIsNone(format_spec.align)
179 self.assertIsNone(format_spec.fill)
292 if format_spec.align is not None:
[all …]
/dports/comms/gnuradio/gnuradio-3.8.4.0/gnuradio-runtime/python/gnuradio/
H A Deng_notation.py46 format_spec = '%.' + repr(int(precision)) + 'g'
48 return '%sG' % float(format_spec % (n * 1e-9))
50 return '%sM' % float(format_spec % (n * 1e-6))
52 return '%sk' % float(format_spec % (n * 1e-3))
54 return '%s' % float(format_spec % (n))
56 return '%sm' % float(format_spec % (n * 1e3))
58 return '%su' % float(format_spec % (n * 1e6))
60 return '%sn' % float(format_spec % (n * 1e9))
62 return '%sp' % float(format_spec % (n * 1e12))
64 return '%sf' % float(format_spec % (n * 1e15))
[all …]
/dports/devel/string_theory/string_theory-3.4/include/
H A Dst_formatter.h75 struct format_spec struct
77 format_spec() noexcept in format_spec() argument
94 static_assert(std::is_standard_layout<ST::format_spec>::value, argument
137 ST::format_spec parse_format() in parse_format()
141 ST::format_spec spec; in parse_format()
264 inline void format_string(const format_spec &format, format_writer &output,
291 inline void format_string(const format_spec &format, format_writer &output,
300 typedef std::function<void(const ST::format_spec &, ST::format_writer &)>
322 ST::format_spec spec = data.parse_format(); in apply_format()
485 void format_type(const ST::format_spec &format, ST::format_writer &output, in format_type()
[all …]
/dports/devel/py-twiggy/Twiggy-0.4.7/twiggy/
H A Dlogger.py58 def _emit(self, level, format_spec, args, kwargs): argument
94 def debug(self, format_spec = '', *args, **kwargs): argument
98 def info(self, format_spec = '', *args, **kwargs): argument
100 self._emit(levels.INFO, format_spec, args, kwargs)
102 def notice(self, format_spec = '', *args, **kwargs): argument
107 def warning(self, format_spec = '', *args, **kwargs): argument
111 def error(self, format_spec = '', *args, **kwargs): argument
115 def critical(self, format_spec = '', *args, **kwargs): argument
136 def _emit(self, level, format_spec, args, kwargs): argument
227 def _emit(self, level, format_spec, args, kwargs): argument
[all …]
/dports/lang/python-legacy/Python-2.7.18/Lib/test/
H A Dtest_types.py297 def test(i, format_spec, result): argument
300 assert type(format_spec) == str
427 if not format_spec in 'bcdoxXeEfFgGn%':
434 for format_spec in 'eEfFgG%':
451 def test(i, format_spec, result): argument
454 assert type(format_spec) == str
536 if not format_spec in 'bcdoxXeEfFgGn%':
543 for format_spec in 'eEfFgG%':
590 def test(f, format_spec, result): argument
592 assert type(format_spec) == str
[all …]
/dports/lang/python27/Python-2.7.18/Lib/test/
H A Dtest_types.py297 def test(i, format_spec, result): argument
300 assert type(format_spec) == str
427 if not format_spec in 'bcdoxXeEfFgGn%':
434 for format_spec in 'eEfFgG%':
451 def test(i, format_spec, result): argument
454 assert type(format_spec) == str
536 if not format_spec in 'bcdoxXeEfFgGn%':
543 for format_spec in 'eEfFgG%':
590 def test(f, format_spec, result): argument
592 assert type(format_spec) == str
[all …]
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_types.py297 def test(i, format_spec, result): argument
300 assert type(format_spec) == str
427 if not format_spec in 'bcdoxXeEfFgGn%':
434 for format_spec in 'eEfFgG%':
451 def test(i, format_spec, result): argument
454 assert type(format_spec) == str
536 if not format_spec in 'bcdoxXeEfFgGn%':
543 for format_spec in 'eEfFgG%':
590 def test(f, format_spec, result): argument
592 assert type(format_spec) == str
[all …]
/dports/textproc/py-parse-type/parse_type-0.5.6/parse_type/
H A Dparse_util.py53 def format_spec(self): member in Field
78 def make_format(format_spec): argument
87 width = format_spec.width
88 if format_spec.align:
89 align = format_spec.align[0]
90 if format_spec.fill:
91 fill = format_spec.fill[0]
92 if format_spec.zero:
96 if format_spec.precision:
97 precision_part = ".%s" % format_spec.precision
[all …]
/dports/math/libdivide/libdivide-5.0/test/
H A Dtest_c99.c28 #define ASSERT_EQUAL(type, numer, denom, libdiv_result, native_result, format_spec) \ argument
30 …err, "Division fail: " #type ", %" format_spec "/%" format_spec ". Native: %" format_spec ", Libd…
32 #define TEST_ONE(type, numer, denom, divider, format_spec, OPERATION) \ argument
35 ASSERT_EQUAL(type, numer, denom, libdiv_result, native_result, format_spec)
37 #define TEST_BODY(type, range_max, denom, divider, format_spec, OPERATION) \ argument
44 …printf("Testing " #type ", %" format_spec " from %" format_spec " to %" format_spec ", step %" for…
47 TEST_ONE(type, loop, denom, divider, format_spec, OPERATION) \
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/objtools/blast/blastdb_format/unit_test/
H A Dseq_writer_unit_test.cpp108 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
148 const string format_spec("%i"); in BOOST_AUTO_TEST_CASE() local
150 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
192 const string format_spec("%i"); in BOOST_AUTO_TEST_CASE() local
194 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
225 format_spec += "title '%t'."; in BOOST_AUTO_TEST_CASE()
227 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
256 const string format_spec("%a"); in BOOST_AUTO_TEST_CASE() local
281 const string format_spec("%g|%l|%s"); in BOOST_AUTO_TEST_CASE() local
310 const string format_spec("%f"); in BOOST_AUTO_TEST_CASE() local
[all …]
H A Dseq_formatter_unit_test.cpp53 const string format_spec("hello world!"); in BOOST_AUTO_TEST_CASE() local
99 CBlastDB_SeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
141 const string format_spec("%i,%a"); in BOOST_AUTO_TEST_CASE() local
143 CBlastDB_SeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
187 const string format_spec("%i"); in BOOST_AUTO_TEST_CASE() local
222 format_spec += "title '%t'."; in BOOST_AUTO_TEST_CASE()
255 const string format_spec("%a"); in BOOST_AUTO_TEST_CASE() local
282 const string format_spec("%g|%l|%s"); in BOOST_AUTO_TEST_CASE() local
313 const string format_spec("%f"); in BOOST_AUTO_TEST_CASE() local
357 const string format_spec("%s"); in BOOST_AUTO_TEST_CASE() local
[all …]
/dports/biology/ncbi-blast+/ncbi-blast-2.12.0+-src/c++/src/objtools/blast/blastdb_format/unit_test/
H A Dseq_writer_unit_test.cpp108 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
148 const string format_spec("%i"); in BOOST_AUTO_TEST_CASE() local
150 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
192 const string format_spec("%i"); in BOOST_AUTO_TEST_CASE() local
194 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
225 format_spec += "title '%t'."; in BOOST_AUTO_TEST_CASE()
227 CSeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
256 const string format_spec("%a"); in BOOST_AUTO_TEST_CASE() local
281 const string format_spec("%g|%l|%s"); in BOOST_AUTO_TEST_CASE() local
310 const string format_spec("%f"); in BOOST_AUTO_TEST_CASE() local
[all …]
H A Dseq_formatter_unit_test.cpp53 const string format_spec("hello world!"); in BOOST_AUTO_TEST_CASE() local
99 CBlastDB_SeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
141 const string format_spec("%i,%a"); in BOOST_AUTO_TEST_CASE() local
143 CBlastDB_SeqFormatter f(format_spec, db, out); in BOOST_AUTO_TEST_CASE()
187 const string format_spec("%i"); in BOOST_AUTO_TEST_CASE() local
222 format_spec += "title '%t'."; in BOOST_AUTO_TEST_CASE()
255 const string format_spec("%a"); in BOOST_AUTO_TEST_CASE() local
282 const string format_spec("%g|%l|%s"); in BOOST_AUTO_TEST_CASE() local
313 const string format_spec("%f"); in BOOST_AUTO_TEST_CASE() local
357 const string format_spec("%s"); in BOOST_AUTO_TEST_CASE() local
[all …]
/dports/devel/nuitka/Nuitka-0.6.17/nuitka/nodes/
H A DBuiltinFormatNodes.py48 def __init__(self, value, format_spec, source_ref): argument
51 values={"value": value, "format_spec": format_spec},
63 format_spec = self.subnode_format_spec
66 if format_spec is not None and format_spec.isExpressionConstantStrEmptyRef():
68 format_spec = None
71 if format_spec is None:
/dports/devel/py-pendulum/pendulum-2.1.1/pendulum/mixins/
H A Ddefault.py33 def __format__(self, format_spec): argument
34 if len(format_spec) > 0:
35 if "%" in format_spec:
36 return self.strftime(format_spec)
38 return self.format(format_spec)
/dports/lang/python-legacy/Python-2.7.18/Objects/stringlib/
H A Dstring_format.h567 format_spec->ptr : NULL; in render_field()
569 format_spec->end - format_spec->ptr : 0; in render_field()
646 SubString_init(format_spec, NULL, 0); in parse_field()
668 format_spec->ptr = str->ptr; in parse_field()
669 format_spec->end = str->end; in parse_field()
674 if (format_spec->ptr >= format_spec->end) { in parse_field()
683 if (format_spec->ptr < format_spec->end) { in parse_field()
738 SubString_init(format_spec, NULL, 0); in MarkupIterator_next()
924 actual_format_spec = format_spec; in output_markup()
954 SubString format_spec; in do_markup() local
[all …]
/dports/lang/python27/Python-2.7.18/Objects/stringlib/
H A Dstring_format.h567 format_spec->ptr : NULL; in render_field()
569 format_spec->end - format_spec->ptr : 0; in render_field()
646 SubString_init(format_spec, NULL, 0); in parse_field()
668 format_spec->ptr = str->ptr; in parse_field()
669 format_spec->end = str->end; in parse_field()
674 if (format_spec->ptr >= format_spec->end) { in parse_field()
683 if (format_spec->ptr < format_spec->end) { in parse_field()
738 SubString_init(format_spec, NULL, 0); in MarkupIterator_next()
924 actual_format_spec = format_spec; in output_markup()
954 SubString format_spec; in do_markup() local
[all …]
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/
H A Dstring_format.h570 format_spec->ptr : NULL; in render_field()
572 format_spec->end - format_spec->ptr : 0; in render_field()
649 SubString_init(format_spec, NULL, 0); in parse_field()
671 format_spec->ptr = str->ptr; in parse_field()
672 format_spec->end = str->end; in parse_field()
677 if (format_spec->ptr >= format_spec->end) { in parse_field()
686 if (format_spec->ptr < format_spec->end) { in parse_field()
741 SubString_init(format_spec, NULL, 0); in MarkupIterator_next()
927 actual_format_spec = format_spec; in output_markup()
957 SubString format_spec; in do_markup() local
[all …]
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/gcc/
H A Dpretty-print.c186 for (; *text->format_spec; ++text->format_spec) in pp_base_format_text()
193 const char *p = text->format_spec; in pp_base_format_text()
196 pp_wrap_text (pp, text->format_spec, p); in pp_base_format_text()
197 text->format_spec = p; in pp_base_format_text()
200 if (*text->format_spec == '\0') in pp_base_format_text()
204 switch (*++text->format_spec) in pp_base_format_text()
208 ++text->format_spec; in pp_base_format_text()
224 switch (*text->format_spec) in pp_base_format_text()
297 if (*++text->format_spec != '*') in pp_base_format_text()
494 text.format_spec = msg; in pp_printf()
[all …]
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/gcc/
H A Dpretty-print.c186 for (; *text->format_spec; ++text->format_spec) in pp_base_format_text()
193 const char *p = text->format_spec; in pp_base_format_text()
196 pp_wrap_text (pp, text->format_spec, p); in pp_base_format_text()
197 text->format_spec = p; in pp_base_format_text()
200 if (*text->format_spec == '\0') in pp_base_format_text()
204 switch (*++text->format_spec) in pp_base_format_text()
208 ++text->format_spec; in pp_base_format_text()
224 switch (*text->format_spec) in pp_base_format_text()
297 if (*++text->format_spec != '*') in pp_base_format_text()
494 text.format_spec = msg; in pp_printf()
[all …]
/dports/databases/py-sqlite3/Python-3.8.12/Objects/stringlib/
H A Dunicode_format.h521 format_spec->start, format_spec->end); in render_field()
527 if (format_spec->str) in render_field()
563 SubString_init(format_spec, NULL, 0, 0); in parse_field()
617 format_spec->str = str->str; in parse_field()
618 format_spec->start = str->start; in parse_field()
629 format_spec->end = str->start - 1; in parse_field()
687 SubString_init(format_spec, NULL, 0, 0); in MarkupIterator_next()
754 if (!parse_field(&self->str, field_name, format_spec, in MarkupIterator_next()
845 actual_format_spec = format_spec; in output_markup()
875 SubString format_spec; in do_markup() local
[all …]
/dports/databases/py-gdbm/Python-3.8.12/Objects/stringlib/
H A Dunicode_format.h521 format_spec->start, format_spec->end); in render_field()
527 if (format_spec->str) in render_field()
563 SubString_init(format_spec, NULL, 0, 0); in parse_field()
617 format_spec->str = str->str; in parse_field()
618 format_spec->start = str->start; in parse_field()
629 format_spec->end = str->start - 1; in parse_field()
687 SubString_init(format_spec, NULL, 0, 0); in MarkupIterator_next()
754 if (!parse_field(&self->str, field_name, format_spec, in MarkupIterator_next()
845 actual_format_spec = format_spec; in output_markup()
875 SubString format_spec; in do_markup() local
[all …]
/dports/lang/python-tools/Python-3.8.12/Objects/stringlib/
H A Dunicode_format.h521 format_spec->start, format_spec->end); in render_field()
527 if (format_spec->str) in render_field()
563 SubString_init(format_spec, NULL, 0, 0); in parse_field()
617 format_spec->str = str->str; in parse_field()
618 format_spec->start = str->start; in parse_field()
629 format_spec->end = str->start - 1; in parse_field()
687 SubString_init(format_spec, NULL, 0, 0); in MarkupIterator_next()
754 if (!parse_field(&self->str, field_name, format_spec, in MarkupIterator_next()
845 actual_format_spec = format_spec; in output_markup()
875 SubString format_spec; in do_markup() local
[all …]
/dports/lang/python311/Python-3.11.0a3/Objects/stringlib/
H A Dunicode_format.h523 format_spec->start, format_spec->end); in render_field()
529 if (format_spec->str) in render_field()
565 SubString_init(format_spec, NULL, 0, 0); in parse_field()
619 format_spec->str = str->str; in parse_field()
620 format_spec->start = str->start; in parse_field()
631 format_spec->end = str->start - 1; in parse_field()
689 SubString_init(format_spec, NULL, 0, 0); in MarkupIterator_next()
756 if (!parse_field(&self->str, field_name, format_spec, in MarkupIterator_next()
847 actual_format_spec = format_spec; in output_markup()
877 SubString format_spec; in do_markup() local
[all …]

12345678910>>...44