Searched refs:self_start (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | bytearrayobject.c | 1203 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removeprefix_impl() local 1209 && memcmp(self_start, prefix_start, prefix_len) == 0) in bytearray_removeprefix_impl() 1211 return PyByteArray_FromStringAndSize(self_start + prefix_len, in bytearray_removeprefix_impl() 1215 return PyByteArray_FromStringAndSize(self_start, self_len); in bytearray_removeprefix_impl() 1235 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removesuffix_impl() local 1241 && memcmp(self_start + self_len - suffix_len, in bytearray_removesuffix_impl() 1244 return PyByteArray_FromStringAndSize(self_start, in bytearray_removesuffix_impl() 1248 return PyByteArray_FromStringAndSize(self_start, self_len); in bytearray_removesuffix_impl()
|
D | bytesobject.c | 2201 const char *self_start = PyBytes_AS_STRING(self); in bytes_removeprefix_impl() local 2208 && memcmp(self_start, prefix_start, prefix_len) == 0) in bytes_removeprefix_impl() 2210 return PyBytes_FromStringAndSize(self_start + prefix_len, in bytes_removeprefix_impl() 2219 return PyBytes_FromStringAndSize(self_start, self_len); in bytes_removeprefix_impl() 2239 const char *self_start = PyBytes_AS_STRING(self); in bytes_removesuffix_impl() local 2246 && memcmp(self_start + self_len - suffix_len, in bytes_removesuffix_impl() 2249 return PyBytes_FromStringAndSize(self_start, in bytes_removesuffix_impl() 2258 return PyBytes_FromStringAndSize(self_start, self_len); in bytes_removesuffix_impl()
|