Home
last modified time | relevance | path

Searched full:format_string (Results 1 – 25 of 111) sorted by relevance

12345

/external/oss-fuzz/projects/spdlog/fuzz/
Dlog_fuzzer.cc39 const std::string format_string = stream.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput() local
41 spdlog::info(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
42 spdlog::trace(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
43 spdlog::debug(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
44 spdlog::error(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
45 spdlog::warn(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
46 spdlog::critical(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
48 SPDLOG_INFO(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
49 SPDLOG_TRACE(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
50 SPDLOG_DEBUG(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
[all …]
Dformat_fuzzer.cc60 const std::string format_string = stream.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput() local
67 spdlog::info(format_string.c_str(), size_arg, int_arg, string_arg); in LLVMFuzzerTestOneInput()
/external/pigweed/pw_string/size_report/
Dstring_builder_size_report_incremental.cc34 #define FORMAT_STRING(string_builder_out, ...) sb << string_builder_out macro
38 #define FORMAT_STRING(unused_string_builder_out, ...) \ macro
96 FORMAT_STRING("Three", "Three"); in main()
97 FORMAT_STRING("point " << 1, "Three point %d", 1); in main()
98 FORMAT_STRING("four " in main()
103 FORMAT_STRING(string, "%s", string); in main()
104 FORMAT_STRING("-->" << string << string << string << ' ' << integer << ' ' in main()
114 FORMAT_STRING("Three", "Three"); in main()
115 FORMAT_STRING("point " << 1, "Three point %d", 1); in main()
116 FORMAT_STRING("four " in main()
[all …]
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Ddecode.py16 The decode(format_string, encoded_arguments) function provides a simple way to
281 def parse_format_specifiers(format_string: str) -> Iterable[FormatSpec]:
282 for spec in FormatSpec.FORMAT_SPEC.finditer(format_string):
294 def __init__(self, format_string: str):
296 self.format_string = format_string
297 self.specifiers = tuple(parse_format_specifiers(self.format_string))
305 return [self.format_string]
310 string_pieces = [self.format_string[:spec_spans[0][0]]]
313 string_pieces.append(self.format_string[end1:start2])
316 string_pieces.append(self.format_string[spec_spans[-1][1]:])
[all …]
/external/rust/crates/bindgen/src/codegen/
Dimpl_debug.rs14 let mut format_string = format!("{} {{{{ ", struct_name); in gen_debug_impl() localVariable
18 format_string.push_str("opaque"); in gen_debug_impl()
22 format_string.push_str("union"); in gen_debug_impl()
32 format_string.push_str(", "); in gen_debug_impl()
35 format_string.push_str(&fstring); in gen_debug_impl()
41 format_string.push_str(" }}"); in gen_debug_impl()
42 tokens.insert(0, quote! { #format_string }); in gen_debug_impl()
92 let mut format_string = String::new(); in impl_debug() localVariable
96 format_string.push_str(", "); in impl_debug()
100 format_string.push_str(&format!("{} : {{:?}}", bitfield_name)); in impl_debug()
[all …]
/external/bsdiff/
Dbsdiff_arguments.cc174 string format_string = str; in ParseBsdiffFormat() local
175 std::transform(format_string.begin(), format_string.end(), in ParseBsdiffFormat()
176 format_string.begin(), ::tolower); in ParseBsdiffFormat()
177 if (format_string == kLegacyString || format_string == kBsdiff40String) { in ParseBsdiffFormat()
180 } else if (format_string == kBsdf2String) { in ParseBsdiffFormat()
183 } else if (format_string == kEndsleyString) { in ParseBsdiffFormat()
/external/llvm-project/lldb/test/API/lang/mixed/
DTestMixedLanguages.py25 self.format_string, check=False)
32 self.format_string = m.group(1)
35format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}\`${function.name}{${f…
36 self.runCmd("settings set frame-format %s" % format_string)
38 substrs=[format_string])
/external/python/cpython3/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)
/external/python/cpython2/Lib/
Dstring.py552 format_string, args = args[0], args[1:] # allow the "format_string" keyword be passed
554 if 'format_string' in kwargs:
555 format_string = kwargs.pop('format_string')
558 "argument: 'format_string'")
559 return self.vformat(format_string, args, kwargs)
561 def vformat(self, format_string, args, kwargs): argument
563 result = self._vformat(format_string, args, kwargs, used_args, 2)
567 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth): argument
572 self.parse(format_string):
634 def parse(self, format_string): argument
[all …]
/external/llvm-project/lldb/source/Core/
DDumpRegisterValue.cpp31 StreamString format_string; in DumpRegisterValue() local
33 format_string.Printf("%%%us", reg_name_right_align_at); in DumpRegisterValue()
35 format_string.Printf("%%s"); in DumpRegisterValue()
36 std::string fmt = std::string(format_string.GetString()); in DumpRegisterValue()
/external/autotest/client/cros/cellular/
Dcellular_logging.py12 def SetupCellularLogging(logger_name, format_string=LOG_FORMAT): argument
16 format_string: The format of the log message this logger prints.
24 formatter = logging.Formatter(format_string)
/external/toybox/toys/posix/
Ddate.c135 char *setdate = *toys.optargs, *format_string = "%a %b %e %H:%M:%S %Z %Y", in date_main() local
144 format_string = xstrdup(iso_formats[i]); in date_main()
177 format_string = toys.optargs[0]+1; in date_main()
190 puts_time(format_string, localtime(&t)); in date_main()
197 if (CFG_TOYBOX_FREE && FLAG(I)) free(format_string); in date_main()
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message.py343 format_string = '<' + ''.join(cls.get_field_formats(get_all=get_all))
344 return format_string
507 def pack(self, format_string, field_names): argument
511 @param format_string: The concatenated formats for the fields given in
518 return array.array('B', struct.pack(format_string, *field_values))
542 format_string = message_class.get_field_format_string()
544 packet = message.pack(format_string, field_names)
/external/python/cpython2/Lib/test/
Dtest_strptime.py416 format_string = "%Y %m %d %H %M %S %w %Z"
417 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
418 format_string)
425 format_string = "%Y %H %M %S %w %j %Z"
426 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
427 format_string)
439 format_string = "%Y %m %d %H %S %j %Z"
440 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
441 format_string)
451 format_string = "%%Y %%%s %%w" % directive
[all …]
Dtest_str.py44 format_string = "%.{}f".format(INT_MAX + 1)
46 result = format_string % 2.34
49 format_string = "%{}f".format(sys.maxsize + 1)
51 result = format_string % 2.34
393 format_string = ".{}f".format(sys.maxsize + 1)
395 result = format(2.34, format_string)
398 format_string = "{}f".format(sys.maxsize + 1)
400 result = format(2.34, format_string)
403 format_string = "{{{}:.6f}}".format(sys.maxsize + 1)
405 result = format_string.format(2.34)
Dtest_locale.py155 func=locale.format_string, **format_opts)
245 """General tests on locale.format_string"""
248 self.assertEqual(locale.format_string('%f%%', 1.0), '%f%%' % 1.0)
249 self.assertEqual(locale.format_string('%d %f%%d', (1, 1.0)),
251 self.assertEqual(locale.format_string('%(foo)s %%d', {'foo': 'bar'}),
255 self.assertEqual(locale.format_string('%(foo)s bing.', {'foo': 'bar'}),
257 self.assertEqual(locale.format_string('%(foo)s', {'foo': 'bar'}),
/external/rust/crates/syn/src/
Dmac.rs73 /// format_string: Expr,
80 /// let format_string: Expr;
84 /// format_string = input.parse()?;
107 /// format_string,
118 /// match args.format_string {
/external/python/cpython3/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_string.py48 self.assertEqual(fmt.format("-{format_string}-", format_string='test'),
50 self.assertRaises(KeyError, fmt.format, "-{format_string}-")
51 with self.assertRaisesRegex(TypeError, "format_string"):
52 fmt.format(format_string="-{arg}-", arg='test')
148 def parse(self, format_string): argument
149 for field in format_string.split('|'):
/external/tcpdump/
Dfuncattrs.h114 #define FORMAT_STRING(p) _Printf_format_string_ p macro
116 #define FORMAT_STRING(p) __format_string p macro
119 #define FORMAT_STRING(p) p macro
/external/libchrome/base/strings/
Dstring_util.cc1014 const FormatStringType& format_string, in DoReplaceStringPlaceholders() argument
1025 formatted.reserve(format_string.length() + sub_length); in DoReplaceStringPlaceholders()
1028 for (auto i = format_string.begin(); i != format_string.end(); ++i) { in DoReplaceStringPlaceholders()
1030 if (i + 1 != format_string.end()) { in DoReplaceStringPlaceholders()
1033 while (i != format_string.end() && '$' == *i) { in DoReplaceStringPlaceholders()
1067 string16 ReplaceStringPlaceholders(const string16& format_string, in ReplaceStringPlaceholders() argument
1070 return DoReplaceStringPlaceholders(format_string, subst, offsets); in ReplaceStringPlaceholders()
1073 std::string ReplaceStringPlaceholders(StringPiece format_string, in ReplaceStringPlaceholders() argument
1076 return DoReplaceStringPlaceholders(format_string, subst, offsets); in ReplaceStringPlaceholders()
1079 string16 ReplaceStringPlaceholders(const string16& format_string, in ReplaceStringPlaceholders() argument
[all …]
/external/openscreen/tools/
Dconvert_to_data_file.py14 FORMAT_STRING = """#pragma once variable
53 FORMAT_STRING.format(namespace, GetVariableName(input_path),
/external/avb/
Daftltool247 FORMAT_STRING = ('!4s2L' # magic, major & minor version. variable in AftlImageHeader
260 assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
265 self.icp_count) = struct.unpack(self.FORMAT_STRING, data)
286 return struct.pack(self.FORMAT_STRING, self.magic,
367 FORMAT_STRING = ('!L' # transparency log server url size variable in AftlIcpEntry
387 assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
397 self._inc_proof_size_expected) = struct.unpack(self.FORMAT_STRING,
545 self.FORMAT_STRING,
886 FORMAT_STRING = ('!B' # Hash algorithm variable in Signature
912 data_length = struct.calcsize(cls.FORMAT_STRING)
[all …]
Daftltool.py247 FORMAT_STRING = ('!4s2L' # magic, major & minor version. variable in AftlImageHeader
260 assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
265 self.icp_count) = struct.unpack(self.FORMAT_STRING, data)
286 return struct.pack(self.FORMAT_STRING, self.magic,
367 FORMAT_STRING = ('!L' # transparency log server url size variable in AftlIcpEntry
387 assert struct.calcsize(self.FORMAT_STRING) == self.SIZE
397 self._inc_proof_size_expected) = struct.unpack(self.FORMAT_STRING,
545 self.FORMAT_STRING,
886 FORMAT_STRING = ('!B' # Hash algorithm variable in Signature
912 data_length = struct.calcsize(cls.FORMAT_STRING)
[all …]
/external/bcc/tools/
Dtcplife.lua196 local format_string = "%-5d %-10.10s %s%-15s %-5d %-15s %-5d %5d %5d %.2f"
272 print(string.format(format_string, event_pid, event_task, iv,
311 print(string.format(format_string, event_pid, event_task, iv,
367 format_string = "%-5d %-16.16s %-2s %-26s %-5s %-26s %-5d %6d %6d %.2f"
373 format_string = "%d,%s,%s,%s,%s,%s,%d,%d,%d,%.2f"

12345