Searched refs:seplen (Results 1 – 3 of 3) sorted by relevance
/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/cpython2/Objects/ |
D | stringobject.c | 1590 const Py_ssize_t seplen = PyString_GET_SIZE(self); in string_join() local 1649 sz += seplen; in string_join() 1674 Py_MEMCPY(p, sep, seplen); in string_join() 1675 p += seplen; in string_join() 1827 Py_ssize_t seplen = PyString_GET_SIZE(sepobj); in do_xstrip() local 1832 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip() 1841 } 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 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() 7072 Py_ssize_t seplen = PyUnicode_GET_SIZE(sepobj); in _PyUnicode_XStrip() local 7075 BLOOM_MASK sepmask = make_bloom_mask(sep, seplen); in _PyUnicode_XStrip() 7079 while (i < len && BLOOM_MEMBER(sepmask, s[i], sep, seplen)) { in _PyUnicode_XStrip() 7088 } while (j >= i && BLOOM_MEMBER(sepmask, s[j], sep, seplen)); in _PyUnicode_XStrip()
|