Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_format.py14 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 …]
Dtest_bytes.py960 for formatstr, ctypes_type, value, py_formatter in (
971 self.assertEqual(PyBytes_FromFormat(formatstr, ctypes_type(value)),
Dtest_ssl.py2640 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n"
2641 sys.stdout.write(formatstr %
/external/python/cpython2/Lib/test/
Dtest_format.py13 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 …]
Dtest_ssl.py2032 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n"
2033 sys.stdout.write(formatstr %
/external/mksh/src/
Dvar.c51 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/
Dsg_lib.c2688 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/
Dvrend_shader.c4310 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()