/external/python/cpython3/Lib/test/ |
D | test_format.py | 15 def testformat(formatstr, args, output=None, limit=None, overflowok=False): argument 18 print("{!a} % {!a} =? {!a} ...".format(formatstr, args, output), 21 print("{!a} % {!a} works? ...".format(formatstr, args), end=' ') 23 result = formatstr % args 34 (formatstr, args, result, output)) 45 (repr(formatstr), repr(args), repr(result), repr(output))) 50 def testcommon(formatstr, args, output=None, limit=None, overflowok=False): argument 53 if isinstance(formatstr, str): 54 testformat(formatstr, args, output, limit, overflowok) 55 b_format = formatstr.encode('ascii') [all …]
|
D | test_bytes.py | 1092 for formatstr, ctypes_type, value, py_formatter in ( 1103 self.assertEqual(PyBytes_FromFormat(formatstr, ctypes_type(value)),
|
D | test_ssl.py | 2753 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n" 2754 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 | 52 static char *formatstr(struct tbl *, const char *); 449 s = formatstr(vp, s); in str_val() 486 s = salloc = formatstr(vq, s); in setstr() 658 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 | 5800 const char *sname, *stc, *formatstr; in emit_image_decl() local 5805 formatstr = get_internalformat_string(image->decl.Format, &itype); in emit_image_decl() 5821 i, formatstr[0] != '\0' ? ", " : ", rgba32f", formatstr); in emit_image_decl() 5822 } else if (formatstr[0] != '\0') { in emit_image_decl() 5823 emit_hdrf(glsl_strbufs, "layout(%s) ", formatstr); in emit_image_decl()
|