/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 | 960 for formatstr, ctypes_type, value, py_formatter in ( 971 self.assertEqual(PyBytes_FromFormat(formatstr, ctypes_type(value)),
|
D | test_ssl.py | 2640 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n" 2641 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 | 2032 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n" 2033 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/virglrenderer/src/ |
D | vrend_shader.c | 4310 const char *sname, *stc, *formatstr; in emit_image_decl() local 4315 formatstr = get_internalformat_string(image->decl.Format, &itype); in emit_image_decl() 4327 i, formatstr[0] != '\0' ? ", " : "", formatstr); in emit_image_decl() 4329 } else if (formatstr[0] != '\0') { in emit_image_decl() 4330 snprintf(buf, 255, "layout(%s) ", formatstr); in emit_image_decl()
|