Searched refs:formatstr (Results 1 - 5 of 5) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_format.py | 15 def testformat(formatstr, args, output=None, limit=None, overflowok=False): 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): 51 # if formatstr is a str, test str, bytes, and bytearray; 53 if isinstance(formatstr, str): 54 testformat(formatstr, arg [all...] |
H A D | test_bytes.py | 1124 for formatstr, ctypes_type, value, py_formatter in ( 1135 self.assertEqual(PyBytes_FromFormat(formatstr, ctypes_type(value)),
|
H A D | test_ssl.py | 2896 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n" 2897 sys.stdout.write(formatstr %
|
/third_party/backends/lib/ |
H A D | snprintf.c | 983 char formatstr[128]; in fmtdouble() local 993 strcpy( formatstr, "%" ); /* 1 */ in fmtdouble() 994 if( ljust ) mystrcat(formatstr, "-" ); /* 1 */ in fmtdouble() 995 if( zpad ) mystrcat(formatstr, "0" ); /* 1 */ in fmtdouble() 997 sprintf( formatstr+strlen(formatstr), "%d", len ); /* 3 */ in fmtdouble() 1000 sprintf( formatstr+strlen(formatstr), ".%d", precision ); /* 3 */ in fmtdouble() 1003 sprintf( formatstr+strlen(formatstr), " in fmtdouble() [all...] |
/third_party/mksh/ |
H A 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
|
Completed in 14 milliseconds