Searched refs:seplen (Results 1 - 7 of 7) sorted by relevance
/external/python/cpython3/Objects/stringlib/ |
H A D | join.h | 11 const Py_ssize_t seplen = STRINGLIB_LEN(sep); local 84 if (seplen > PY_SSIZE_T_MAX - sz) { 89 sz += seplen; 105 if (!seplen) { 119 memcpy(p, sepstr, seplen); 120 p += seplen;
|
/external/python/cpython2/Modules/ |
H A D | stropmodule.c | 171 Py_ssize_t seqlen, seplen = 0; local 178 if (!PyArg_ParseTuple(args, "O|t#:join", &seq, &sep, &seplen)) 182 seplen = 1; 220 seplen > PY_SSIZE_T_MAX - reslen - seplen) { 226 while (reslen + slen + seplen >= sz) { 233 memcpy(p, sep, seplen); 234 p += seplen; 235 reslen += seplen; 264 seplen > PY_SSIZE_T_MA [all...] |
/external/python/cpython3/Lib/asyncio/ |
H A D | streams.py | 480 seplen = len(sep) 487 del self._buffer[:e.consumed + seplen] 515 seplen = len(separator) 516 if seplen == 0: 523 # one less than seplen. Let's check corner cases with 550 if buflen - offset >= seplen: 559 offset = buflen + 1 - seplen 581 chunk = self._buffer[:isep + seplen] 582 del self._buffer[:isep + seplen]
|
/external/python/cpython2/Objects/ |
H A D | stringobject.c | 1590 const Py_ssize_t seplen = PyString_GET_SIZE(self); local 1649 sz += seplen; 1674 Py_MEMCPY(p, sep, seplen); 1675 p += seplen; 1827 Py_ssize_t seplen = PyString_GET_SIZE(sepobj); local 1832 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { 1841 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen));
|
H A D | unicodeobject.c | 5649 Py_ssize_t seplen = 1; local 5689 /* Set up sep and seplen -- they're needed. */ 5692 seplen = 1; 5699 seplen = PyUnicode_GET_SIZE(internal_separator); 5739 new_res_used += seplen; 5761 Py_UNICODE_COPY(res_p, sep, seplen); 5762 res_p += seplen; 7072 Py_ssize_t seplen = PyUnicode_GET_SIZE(sepobj); local 7075 BLOOM_MASK sepmask = make_bloom_mask(sep, seplen); 7079 while (i < len && BLOOM_MEMBER(sepmask, s[i], sep, seplen)) { [all...] |
/external/python/cpython3/Objects/ |
H A D | bytesobject.c | 1937 Py_ssize_t seplen; local 1943 seplen = vsep.len; 1947 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { 1956 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen));
|
H A D | unicodeobject.c | 9923 Py_ssize_t seplen; local 9946 seplen = 0; 9950 /* Set up sep and seplen */ 9956 seplen = 1; 9970 seplen = PyUnicode_GET_LENGTH(separator); 10006 add_sz += seplen; 10032 if (seplen != 0) 10042 if (i && seplen != 0) { 10045 kind * seplen); 10046 res_data += kind * seplen; 12247 Py_ssize_t seplen; local [all...] |
Completed in 271 milliseconds