Searched refs:self_start (Results 1 – 2 of 2) sorted by relevance
/third_party/python/Objects/ |
D | bytearrayobject.c | 1193 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removeprefix_impl() local 1199 && memcmp(self_start, prefix_start, prefix_len) == 0) in bytearray_removeprefix_impl() 1201 return PyByteArray_FromStringAndSize(self_start + prefix_len, in bytearray_removeprefix_impl() 1205 return PyByteArray_FromStringAndSize(self_start, self_len); in bytearray_removeprefix_impl() 1225 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removesuffix_impl() local 1231 && memcmp(self_start + self_len - suffix_len, in bytearray_removesuffix_impl() 1234 return PyByteArray_FromStringAndSize(self_start, in bytearray_removesuffix_impl() 1238 return PyByteArray_FromStringAndSize(self_start, self_len); in bytearray_removesuffix_impl()
|
D | bytesobject.c | 2216 const char *self_start = PyBytes_AS_STRING(self); in bytes_removeprefix_impl() local 2223 && memcmp(self_start, prefix_start, prefix_len) == 0) in bytes_removeprefix_impl() 2225 return PyBytes_FromStringAndSize(self_start + prefix_len, in bytes_removeprefix_impl() 2234 return PyBytes_FromStringAndSize(self_start, self_len); in bytes_removeprefix_impl() 2254 const char *self_start = PyBytes_AS_STRING(self); in bytes_removesuffix_impl() local 2261 && memcmp(self_start + self_len - suffix_len, in bytes_removesuffix_impl() 2264 return PyBytes_FromStringAndSize(self_start, in bytes_removesuffix_impl() 2273 return PyBytes_FromStringAndSize(self_start, self_len); in bytes_removesuffix_impl()
|