Home
last modified time | relevance | path

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

/third_party/python/Objects/stringlib/
H A Djoin.h11 Py_ssize_t seplen = STRINGLIB_LEN(sep); in bytes_join() local
96 if (seplen > PY_SSIZE_T_MAX - sz) { in bytes_join()
101 sz += seplen; in bytes_join()
123 if (!seplen) { in bytes_join()
137 memcpy(p, sepstr, seplen); in bytes_join()
138 p += seplen; in bytes_join()
/third_party/python/Lib/asyncio/
H A Dstreams.py543 seplen = len(sep)
550 del self._buffer[:e.consumed + seplen]
577 seplen = len(separator)
578 if seplen == 0:
585 # one less than seplen. Let's check corner cases with
612 if buflen - offset >= seplen:
621 offset = buflen + 1 - seplen
643 chunk = self._buffer[:isep + seplen]
644 del self._buffer[:isep + seplen]
/third_party/python/Python/
H A 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/
H A Dbytesobject.c1901 Py_ssize_t seplen; in do_xstrip() local
1907 seplen = vsep.len; in do_xstrip()
1911 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip()
1920 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
H A Dunicodeobject.c10067 Py_ssize_t seplen; in _PyUnicode_JoinArray() local
10090 seplen = 0; in _PyUnicode_JoinArray()
10094 /* Set up sep and seplen */ in _PyUnicode_JoinArray()
10100 seplen = 1; in _PyUnicode_JoinArray()
10114 seplen = PyUnicode_GET_LENGTH(separator); in _PyUnicode_JoinArray()
10150 add_sz += seplen; in _PyUnicode_JoinArray()
10176 if (seplen != 0) in _PyUnicode_JoinArray()
10186 if (i && seplen != 0) { in _PyUnicode_JoinArray()
10189 kind * seplen); in _PyUnicode_JoinArray()
10190 res_data += kind * seplen; in _PyUnicode_JoinArray()
12516 Py_ssize_t seplen; _PyUnicode_XStrip() local
[all...]

Completed in 19 milliseconds