Home
last modified time | relevance | path

Searched refs:format_string (Results 1 – 25 of 39) sorted by relevance

12

/third_party/rust/crates/bindgen/bindgen/codegen/
Dimpl_debug.rs13 let mut format_string = format!("{} {{{{ ", struct_name); in gen_debug_impl() localVariable
17 format_string.push_str("opaque"); in gen_debug_impl()
21 format_string.push_str("union"); in gen_debug_impl()
31 format_string.push_str(", "); in gen_debug_impl()
34 format_string.push_str(&fstring); in gen_debug_impl()
40 format_string.push_str(" }}"); in gen_debug_impl()
41 tokens.insert(0, quote! { #format_string }); in gen_debug_impl()
91 let mut format_string = String::new(); in impl_debug() localVariable
95 format_string.push_str(", "); in impl_debug()
99 format_string.push_str(&format!("{} : {{:?}}", bitfield_name)); in impl_debug()
[all …]
/third_party/python/Lib/
Dstring.py160 def format(self, format_string, /, *args, **kwargs): argument
161 return self.vformat(format_string, args, kwargs)
163 def vformat(self, format_string, args, kwargs): argument
165 result, _ = self._vformat(format_string, args, kwargs, used_args, 2)
169 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth, argument
175 self.parse(format_string):
258 def parse(self, format_string): argument
259 return _string.formatter_parser(format_string)
Dlocale.py213 def format_string(f, val, grouping=False, monetary=False): function
347 s1 = format_string("%d", 123456789,1)
Dfunctools.py378 format_string = "{module}.{cls}({func}, {args}, {keywords})"
379 return format_string.format(module=self.__class__.__module__,
/third_party/python/Lib/test/
Dtest_strptime.py498 format_string = "%Y %m %d %H %M %S %w %Z"
499 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
500 format_string)
508 format_string = "%Y %H %M %S %w %j %Z"
509 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
510 format_string)
523 format_string = "%Y %m %d %H %S %j %Z"
524 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
525 format_string)
551 format_string = year_week_format + ' ' + weekday_format
[all …]
Dtest_locale.py155 func=locale.format_string, **format_opts)
253 self.assertEqual(locale.format_string('%f%%', 1.0), '%f%%' % 1.0)
254 self.assertEqual(locale.format_string('%d %f%%d', (1, 1.0)),
256 self.assertEqual(locale.format_string('%(foo)s %%d', {'foo': 'bar'}),
260 self.assertEqual(locale.format_string('%(foo)s bing.', {'foo': 'bar'}),
262 self.assertEqual(locale.format_string('%(foo)s', {'foo': 'bar'}),
Dtest_string.py48 self.assertEqual(fmt.format("-{format_string}-", format_string='test'),
52 fmt.format(format_string="-{arg}-", arg='test')
148 def parse(self, format_string): argument
149 for field in format_string.split('|'):
Dtest_unicode.py1353 format_string = ".{}f".format(sys.maxsize + 1)
1355 result = format(2.34, format_string)
1358 format_string = "{}f".format(sys.maxsize + 1)
1360 result = format(2.34, format_string)
1363 format_string = "{{{}:.6f}}".format(sys.maxsize + 1)
1365 result = format_string.format(2.34)
1517 format_string = "%.{}f".format(sys.maxsize + 1)
1519 result = format_string % 2.34
1533 format_string = "%.{}f".format(INT_MAX + 1)
1535 result = format_string % 2.34
[all …]
/third_party/toybox/porting/liteos_a/toys/posix/
Ddate.c115 char *setdate = *toys.optargs, *format_string = "%a %b %e %H:%M:%S %Z %Y", in date_main() local
149 format_string = toys.optargs[0]+1; in date_main()
162 puts_time(format_string, localtime(&t)); in date_main()
/third_party/toybox/toys/posix/
Ddate.c118 char *setdate = *toys.optargs, *format_string = "%a %b %e %H:%M:%S %Z %Y", in date_main() local
152 format_string = toys.optargs[0]+1; in date_main()
165 puts_time(format_string, localtime(&t)); in date_main()
/third_party/gn/src/base/strings/
Dstring_util.cc940 const FormatStringType& format_string, in DoReplaceStringPlaceholders() argument
951 formatted.reserve(format_string.length() + sub_length); in DoReplaceStringPlaceholders()
954 for (auto i = format_string.begin(); i != format_string.end(); ++i) { in DoReplaceStringPlaceholders()
956 if (i + 1 != format_string.end()) { in DoReplaceStringPlaceholders()
959 while (i != format_string.end() && '$' == *i) { in DoReplaceStringPlaceholders()
994 const std::u16string& format_string, in ReplaceStringPlaceholders() argument
997 return DoReplaceStringPlaceholders(format_string, subst, offsets); in ReplaceStringPlaceholders()
1000 std::string ReplaceStringPlaceholders(std::string_view format_string, in ReplaceStringPlaceholders() argument
1003 return DoReplaceStringPlaceholders(format_string, subst, offsets); in ReplaceStringPlaceholders()
1006 std::u16string ReplaceStringPlaceholders(const std::u16string& format_string, in ReplaceStringPlaceholders() argument
[all …]
Dstring_util.h401 const std::u16string& format_string,
405 std::string ReplaceStringPlaceholders(std::string_view format_string,
410 std::u16string ReplaceStringPlaceholders(const std::u16string& format_string,
/third_party/ffmpeg/tests/checkasm/
Dvf_colorspace.c48 static const char *format_string[] = { variable
96 format_string[fmt], in check_yuv2yuv()
160 format_string[fmt], idepth * 2 + 8)) { in check_yuv2rgb()
241 format_string[fmt], odepth * 2 + 8)) { in check_rgb2yuv()
/third_party/FreeBSD/contrib/libexecinfo/
Dbacktrace.c85 static ssize_t format_string(char **buf, size_t *bufsiz, size_t offs, const char *fmt, in format_string() function
141 return format_string(buf, bufsiz, offs, fmt, &dli, addr); in format_address()
/third_party/musl/third_party/openbsd/gnu/lib/libexecinfo/
Dbacktrace.c85 static ssize_t format_string(char **buf, size_t *bufsiz, size_t offs, const char *fmt, in format_string() function
157 return format_string(buf, bufsiz, offs, fmt, &dli, addr); in format_address()
/third_party/node/deps/v8/third_party/jinja2/
Dsandbox.py429 def format_string(self, s, args, kwargs, format_func=None): member in SandboxedEnvironment
456 return __self.format_string(fmt, args, kwargs, __obj)
/third_party/skia/third_party/externals/jinja2/
Dsandbox.py429 def format_string(self, s, args, kwargs, format_func=None): member in SandboxedEnvironment
456 return __self.format_string(fmt, args, kwargs, __obj)
/third_party/node/tools/inspector_protocol/jinja2/
Dsandbox.py405 def format_string(self, s, args, kwargs): member in SandboxedEnvironment
421 return __self.format_string(fmt, args, kwargs)
/third_party/jinja2/
Dsandbox.py348 def format_string( member in SandboxedEnvironment
387 return __self.format_string(fmt, args, kwargs, __obj)
/third_party/mbedtls/scripts/mbedtls_dev/
Dbignum_common.py184 format_string = "{1:x} {0}" if self.suffix else "{0} {1:x}"
185 self.case_description = format_string.format(
/third_party/mesa3d/src/mapi/glapi/gen/
Dgl_apitemp.py78 t_string = t_string + comma + p.format_string()
Dtypeexpr.py269 def format_string(self): member in type_expression
Dgl_XML.py599 def format_string(self): member in gl_parameter
603 return self.type_expr.format_string()
/third_party/python/Doc/library/
Dlocale.rst374 .. function:: format_string(format, val, grouping=False, monetary=False)
393 Please note that this function works like :meth:`format_string` but will
397 For whole format strings, use :func:`format_string`.
400 Use :meth:`format_string` instead.
Dstring.rst91 .. method:: format(format_string, /, *args, **kwargs)
101 .. method:: vformat(format_string, args, kwargs)
114 .. method:: parse(format_string)
116 Loop over the format_string and return an iterable of tuples

12