Home
last modified time | relevance | path

Searched refs:formatstr (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_format.py15 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 Dtest_bytes.py1124 for formatstr, ctypes_type, value, py_formatter in (
1135 self.assertEqual(PyBytes_FromFormat(formatstr, ctypes_type(value)),
H A Dtest_ssl.py2896 formatstr = (expect_success and " %s->%s %s\n") or " {%s->%s} %s\n"
2897 sys.stdout.write(formatstr %
/third_party/backends/lib/
H A Dsnprintf.c983 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 Dvar.c52 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