Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanotool/
Dnanomessage.cpp44 const char format_string[] = "Hardware version info:\n" in ToString() local
52 snprintf(buffer, sizeof(buffer), format_string, in ToString()
64 const char format_string[] = "Write event accepted: %s\n"; in ToString() local
67 snprintf(buffer, sizeof(buffer), format_string, in ToString()
96 const char format_string[] = "Read event at time: %" PRIx64 "\n"; in ToString() local
99 snprintf(buffer, sizeof(buffer), format_string, in ToString()
217 const char format_string[] = "Sensor configuration:\n" in ToString() local
225 snprintf(buffer, sizeof(buffer), format_string, in ToString()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dstring.py552 format_string, args = args[0], args[1:] # allow the "format_string" keyword be passed
555 format_string = kwargs.pop('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
635 return format_string._formatter_parser()
Dlocale.py222 def format_string(f, val, grouping=False): function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dstring.py544 def format(self, format_string, *args, **kwargs): argument
545 return self.vformat(format_string, args, kwargs)
547 def vformat(self, format_string, args, kwargs): argument
549 result = self._vformat(format_string, args, kwargs, used_args, 2)
553 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth): argument
558 self.parse(format_string):
620 def parse(self, format_string): argument
621 return format_string._formatter_parser()
Dlocale.py216 def format_string(f, val, grouping=False): function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_strptime.py412 format_string = "%Y %m %d %H %M %S %w %Z"
413 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
414 format_string)
421 format_string = "%Y %H %M %S %w %j %Z"
422 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
423 format_string)
435 format_string = "%Y %m %d %H %S %j %Z"
436 result = _strptime._strptime_time(time.strftime(format_string, self.time_tuple),
437 format_string)
447 format_string = "%%Y %%%s %%w" % directive
[all …]
Dtest_locale.py155 func=locale.format_string, **format_opts)
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'}),
Dtest_string.py164 def parse(self, format_string): argument
165 for field in format_string.split('|'):