Searched refs:formatstr (Results 1 – 8 of 8) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_format.py | 14 def testformat(formatstr, args, output=None, limit=None, overflowok=False): argument 17 print("{!a} % {!a} =? {!a} ...".format(formatstr, args, output), 20 print("{!a} % {!a} works? ...".format(formatstr, args), end=' ') 22 result = formatstr % args 33 (formatstr, args, result, output)) 44 (repr(formatstr), repr(args), repr(result), repr(output))) 49 def testcommon(formatstr, args, output=None, limit=None, overflowok=False): argument 52 if isinstance(formatstr, str): 53 testformat(formatstr, args, output, limit, overflowok) 54 b_format = formatstr.encode('ascii') [all …]
|
D | test_bytes.py | 848 for formatstr, ctypes_type, value, py_formatter in ( 859 self.assertEqual(PyBytes_FromFormat(formatstr, ctypes_type(value)),
|
D | test_ssl.py | 2245 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n" 2246 sys.stdout.write(formatstr %
|
/external/python/cpython2/Lib/test/ |
D | test_format.py | 13 def testformat(formatstr, args, output=None, limit=None, overflowok=False): argument 17 (repr(formatstr), repr(args), repr(output)), 19 print "%s %% %s works? ..." % (repr(formatstr), repr(args)), 21 result = formatstr % args 32 (formatstr, args, result, output)) 43 (repr(formatstr), repr(args), repr(result), repr(output)) 49 def testboth(formatstr, *args, **kwargs): argument 50 testformat(formatstr, *args, **kwargs) 52 testformat(unicode(formatstr), *args, **kwargs) 252 def test_exc(formatstr, args, exception, excmsg): argument [all …]
|
D | test_ssl.py | 2039 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n" 2040 sys.stdout.write(formatstr %
|
/external/mksh/src/ |
D | var.c | 51 static char *formatstr(struct tbl *, const char *); 442 s = formatstr(vp, s); in str_val() 480 s = salloc = formatstr(vq, s); in setstr() 648 formatstr(struct tbl *vp, const char *s) in formatstr() function
|
/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_lib.c | 2688 const char * formatstr; in dStrHexFp() local 2702 formatstr = "%.76s\n"; in dStrHexFp() 2704 formatstr = "%s\n"; /* when < 0 str was: "%.48s\n" */ in dStrHexFp() 2718 fprintf(fp, formatstr, buff); in dStrHexFp() 2752 fprintf(fp, formatstr, buff); in dStrHexFp()
|
/external/fio/ |
D | init.c | 2592 char formatstr[8]; in parse_cmd_line() local 2600 sprintf(formatstr, "%%%ds", PATH_MAX - 1); in parse_cmd_line() 2605 while (fscanf(hostf, formatstr, hostaddr) == 1) { in parse_cmd_line()
|