Home
last modified time | relevance | path

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

/third_party/python/Objects/stringlib/
Djoin.h11 Py_ssize_t seplen = STRINGLIB_LEN(sep); in STRINGLIB() local
96 if (seplen > PY_SSIZE_T_MAX - sz) { in STRINGLIB()
101 sz += seplen; in STRINGLIB()
123 if (!seplen) { in STRINGLIB()
137 memcpy(p, sepstr, seplen); in STRINGLIB()
138 p += seplen; in STRINGLIB()
/third_party/python/Lib/asyncio/
Dstreams.py523 seplen = len(sep)
530 del self._buffer[:e.consumed + seplen]
557 seplen = len(separator)
558 if seplen == 0:
592 if buflen - offset >= seplen:
601 offset = buflen + 1 - seplen
623 chunk = self._buffer[:isep + seplen]
624 del self._buffer[:isep + seplen]
/third_party/python/Python/
Dpystrhex.c15 Py_ssize_t seplen = PyObject_Length((PyObject*)sep); in _Py_strhex_impl() local
16 if (seplen < 0) { in _Py_strhex_impl()
19 if (seplen != 1) { in _Py_strhex_impl()
/third_party/python/Objects/
Dbytesobject.c1881 Py_ssize_t seplen; in do_xstrip() local
1887 seplen = vsep.len; in do_xstrip()
1891 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip()
1900 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
Dunicodeobject.c10394 Py_ssize_t seplen; in _PyUnicode_JoinArray() local
10417 seplen = 0; in _PyUnicode_JoinArray()
10427 seplen = 1; in _PyUnicode_JoinArray()
10441 seplen = PyUnicode_GET_LENGTH(separator); in _PyUnicode_JoinArray()
10477 add_sz += seplen; in _PyUnicode_JoinArray()
10503 if (seplen != 0) in _PyUnicode_JoinArray()
10513 if (i && seplen != 0) { in _PyUnicode_JoinArray()
10516 kind * seplen); in _PyUnicode_JoinArray()
10517 res_data += kind * seplen; in _PyUnicode_JoinArray()
10537 if (i && seplen != 0) { in _PyUnicode_JoinArray()
[all …]