/external/python/cpython3/Objects/stringlib/ |
D | join.h | 11 const Py_ssize_t seplen = STRINGLIB_LEN(sep); in STRINGLIB() local 84 if (seplen > PY_SSIZE_T_MAX - sz) { in STRINGLIB() 89 sz += seplen; in STRINGLIB() 105 if (!seplen) { in STRINGLIB() 119 memcpy(p, sepstr, seplen); in STRINGLIB() 120 p += seplen; in STRINGLIB()
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 171 Py_ssize_t seqlen, seplen = 0; in strop_joinfields() local 178 if (!PyArg_ParseTuple(args, "O|t#:join", &seq, &sep, &seplen)) in strop_joinfields() 182 seplen = 1; in strop_joinfields() 220 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 226 while (reslen + slen + seplen >= sz) { in strop_joinfields() 233 memcpy(p, sep, seplen); in strop_joinfields() 234 p += seplen; in strop_joinfields() 235 reslen += seplen; in strop_joinfields() 264 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 271 while (reslen + slen + seplen >= sz) { in strop_joinfields() [all …]
|
/external/python/cpython3/Python/ |
D | pystrhex.c | 18 Py_ssize_t seplen = PyObject_Length((PyObject*)sep); in _Py_strhex_impl() local 19 if (seplen < 0) { in _Py_strhex_impl() 22 if (seplen != 1) { in _Py_strhex_impl()
|
/external/python/cpython3/Lib/asyncio/ |
D | streams.py | 538 seplen = len(sep) 545 del self._buffer[:e.consumed + seplen] 572 seplen = len(separator) 573 if seplen == 0: 607 if buflen - offset >= seplen: 616 offset = buflen + 1 - seplen 638 chunk = self._buffer[:isep + seplen] 639 del self._buffer[:isep + seplen]
|
/external/u-boot/common/ |
D | command.c | 357 int i, j, k, len, seplen, argc; in cmd_auto_complete() local 401 seplen = 0; in cmd_auto_complete() 411 seplen = 1; in cmd_auto_complete() 426 k = len + seplen; in cmd_auto_complete() 437 for (i = 0; i < seplen; i++) in cmd_auto_complete()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 1596 const Py_ssize_t seplen = PyString_GET_SIZE(self); in string_join() local 1655 sz += seplen; in string_join() 1680 Py_MEMCPY(p, sep, seplen); in string_join() 1681 p += seplen; in string_join() 1833 Py_ssize_t seplen = PyString_GET_SIZE(sepobj); in do_xstrip() local 1838 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip() 1847 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
|
D | unicodeobject.c | 5649 Py_ssize_t seplen = 1; in PyUnicode_Join() local 5692 seplen = 1; in PyUnicode_Join() 5699 seplen = PyUnicode_GET_SIZE(internal_separator); in PyUnicode_Join() 5739 if (new_res_used > PY_SSIZE_T_MAX - seplen) in PyUnicode_Join() 5741 new_res_used += seplen; in PyUnicode_Join() 5761 Py_UNICODE_COPY(res_p, sep, seplen); in PyUnicode_Join() 5762 res_p += seplen; in PyUnicode_Join() 7067 Py_ssize_t seplen = PyUnicode_GET_SIZE(sepobj); in _PyUnicode_XStrip() local 7070 BLOOM_MASK sepmask = make_bloom_mask(sep, seplen); in _PyUnicode_XStrip() 7074 while (i < len && BLOOM_MEMBER(sepmask, s[i], sep, seplen)) { in _PyUnicode_XStrip() [all …]
|
D | bytesobject.c | 1952 Py_ssize_t seplen; in do_xstrip() local 1958 seplen = vsep.len; in do_xstrip() 1962 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip() 1971 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 1937 Py_ssize_t seplen; in do_xstrip() local 1943 seplen = vsep.len; in do_xstrip() 1947 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip() 1956 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
|
D | unicodeobject.c | 9954 Py_ssize_t seplen; in _PyUnicode_JoinArray() local 9977 seplen = 0; in _PyUnicode_JoinArray() 9987 seplen = 1; in _PyUnicode_JoinArray() 10001 seplen = PyUnicode_GET_LENGTH(separator); in _PyUnicode_JoinArray() 10037 add_sz += seplen; in _PyUnicode_JoinArray() 10063 if (seplen != 0) in _PyUnicode_JoinArray() 10073 if (i && seplen != 0) { in _PyUnicode_JoinArray() 10076 kind * seplen); in _PyUnicode_JoinArray() 10077 res_data += kind * seplen; in _PyUnicode_JoinArray() 10097 if (i && seplen != 0) { in _PyUnicode_JoinArray() [all …]
|
/external/one-true-awk/ |
D | run.c | 473 size_t blen, seplen; in makearraystring() local 481 seplen = strlen(getsval(subseploc)); in makearraystring() 486 size_t nsub = p->nnext ? seplen : 0; in makearraystring()
|