Home
last modified time | relevance | path

Searched refs:fmtcnt (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Objects/
Dbytesobject.c597 Py_ssize_t fmtcnt; in _PyBytes_FormatEx() local
607 fmtcnt = format_len; in _PyBytes_FormatEx()
612 res = _PyBytesWriter_Alloc(&writer, fmtcnt); in _PyBytes_FormatEx()
632 while (--fmtcnt >= 0) { in _PyBytes_FormatEx()
637 pos = (char *)memchr(fmt + 1, '%', fmtcnt); in _PyBytes_FormatEx()
641 len = fmtcnt + 1; in _PyBytes_FormatEx()
647 fmtcnt -= (len - 1); in _PyBytes_FormatEx()
671 fmtcnt--; in _PyBytes_FormatEx()
686 --fmtcnt; in _PyBytes_FormatEx()
689 while (pcount > 0 && --fmtcnt >= 0) { in _PyBytes_FormatEx()
[all …]
Dstringobject.c4247 Py_ssize_t reslen, rescnt, fmtcnt; in PyString_Format() local
4260 fmtcnt = PyString_GET_SIZE(format); in PyString_Format()
4261 reslen = rescnt = fmtcnt + 100; in PyString_Format()
4277 while (--fmtcnt >= 0) { in PyString_Format()
4280 rescnt = fmtcnt + 100; in PyString_Format()
4323 --fmtcnt; in PyString_Format()
4326 while (pcount > 0 && --fmtcnt >= 0) { in PyString_Format()
4334 if (fmtcnt < 0 || pcount > 0) { in PyString_Format()
4356 while (--fmtcnt >= 0) { in PyString_Format()
4382 if (--fmtcnt >= 0) in PyString_Format()
[all …]
Dunicodeobject.c8357 Py_ssize_t fmtcnt, rescnt, reslen, arglen, argidx; in PyUnicode_Format() local
8371 fmtcnt = PyUnicode_GET_SIZE(uformat); in PyUnicode_Format()
8373 reslen = rescnt = fmtcnt + 100; in PyUnicode_Format()
8391 while (--fmtcnt >= 0) { in PyUnicode_Format()
8394 rescnt = fmtcnt + 100; in PyUnicode_Format()
8431 --fmtcnt; in PyUnicode_Format()
8434 while (pcount > 0 && --fmtcnt >= 0) { in PyUnicode_Format()
8442 if (fmtcnt < 0 || pcount > 0) { in PyUnicode_Format()
8473 while (--fmtcnt >= 0) { in PyUnicode_Format()
8499 if (--fmtcnt >= 0) in PyUnicode_Format()
[all …]
/external/python/cpython3/Objects/
Dbytesobject.c616 Py_ssize_t fmtcnt; in _PyBytes_FormatEx() local
626 fmtcnt = format_len; in _PyBytes_FormatEx()
631 res = _PyBytesWriter_Alloc(&writer, fmtcnt); in _PyBytes_FormatEx()
651 while (--fmtcnt >= 0) { in _PyBytes_FormatEx()
656 pos = (char *)memchr(fmt + 1, '%', fmtcnt); in _PyBytes_FormatEx()
660 len = fmtcnt + 1; in _PyBytes_FormatEx()
666 fmtcnt -= (len - 1); in _PyBytes_FormatEx()
687 fmtcnt--; in _PyBytes_FormatEx()
702 --fmtcnt; in _PyBytes_FormatEx()
705 while (pcount > 0 && --fmtcnt >= 0) { in _PyBytes_FormatEx()
[all …]
Dunicodeobject.c14656 Py_ssize_t fmtcnt, fmtpos; member
15042 --ctx->fmtcnt; in unicode_format_arg_parse()
15045 while (pcount > 0 && --ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
15054 if (ctx->fmtcnt < 0 || pcount > 0) { in unicode_format_arg_parse()
15077 while (--ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
15107 if (--ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
15114 while (--ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
15134 if (--ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
15152 if (--ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
15159 while (--ctx->fmtcnt >= 0) { in unicode_format_arg_parse()
[all …]