Home
last modified time | relevance | path

Searched refs:self_len (Results 1 – 7 of 7) sorted by relevance

/third_party/python/Objects/stringlib/
Dtransmogrify.h285 Py_ssize_t self_len, result_len; in stringlib_replace_interleave() local
289 self_len = STRINGLIB_LEN(self); in stringlib_replace_interleave()
293 if (maxcount <= self_len) { in stringlib_replace_interleave()
298 count = self_len + 1; in stringlib_replace_interleave()
304 if (to_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_interleave()
309 result_len = count * to_len + self_len; in stringlib_replace_interleave()
342 memcpy(result_s, self_s, self_len - i); in stringlib_replace_interleave()
355 Py_ssize_t self_len, result_len; in stringlib_replace_delete_single_character() local
359 self_len = STRINGLIB_LEN(self); in stringlib_replace_delete_single_character()
362 count = countchar(self_s, self_len, from_c, maxcount); in stringlib_replace_delete_single_character()
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Daddr.rs115 let self_len = self.len() - offsetof_sun_path(); in eq() localVariable
117 self.unix.sun_path[..self_len].eq(&other.unix.sun_path[..other_len]) in eq()
126 let self_len = self.len() - offsetof_sun_path(); in partial_cmp() localVariable
128 self.unix.sun_path[..self_len].partial_cmp(&other.unix.sun_path[..other_len]) in partial_cmp()
135 let self_len = self.len() - offsetof_sun_path(); in cmp() localVariable
137 self.unix.sun_path[..self_len].cmp(&other.unix.sun_path[..other_len]) in cmp()
144 let self_len = self.len() - offsetof_sun_path(); in hash() localVariable
145 self.unix.sun_path[..self_len].hash(state) in hash()
/third_party/rust/crates/rustix/src/backend/libc/net/
Daddr.rs215 let self_len = self.len() - offsetof_sun_path(); in eq() localVariable
217 self.unix.sun_path[..self_len].eq(&other.unix.sun_path[..other_len]) in eq()
228 let self_len = self.len() - offsetof_sun_path(); in partial_cmp() localVariable
230 self.unix.sun_path[..self_len].partial_cmp(&other.unix.sun_path[..other_len]) in partial_cmp()
238 let self_len = self.len() - offsetof_sun_path(); in cmp() localVariable
240 self.unix.sun_path[..self_len].cmp(&other.unix.sun_path[..other_len]) in cmp()
248 let self_len = self.len() - offsetof_sun_path(); in hash() localVariable
249 self.unix.sun_path[..self_len].hash(state) in hash()
/third_party/rust/crates/clap/src/output/
Dhelp_template.rs517 let self_len = display_width(&arg.to_string()); in align_to_about() localVariable
527 let spcs = longest + padding - self_len; in align_to_about()
530 self_len, spcs in align_to_about()
535 let self_len = display_width(&arg.to_string()); in align_to_about() localVariable
537 let spcs = longest + padding - self_len; in align_to_about()
540 self_len, spcs in align_to_about()
/third_party/python/Objects/
Dbytearrayobject.c1194 Py_ssize_t self_len = PyByteArray_GET_SIZE(self); in bytearray_removeprefix_impl() local
1198 if (self_len >= prefix_len in bytearray_removeprefix_impl()
1202 self_len - prefix_len); in bytearray_removeprefix_impl()
1205 return PyByteArray_FromStringAndSize(self_start, self_len); in bytearray_removeprefix_impl()
1226 Py_ssize_t self_len = PyByteArray_GET_SIZE(self); in bytearray_removesuffix_impl() local
1230 if (self_len >= suffix_len in bytearray_removesuffix_impl()
1231 && memcmp(self_start + self_len - suffix_len, in bytearray_removesuffix_impl()
1235 self_len - suffix_len); in bytearray_removesuffix_impl()
1238 return PyByteArray_FromStringAndSize(self_start, self_len); in bytearray_removesuffix_impl()
Dbytesobject.c2217 Py_ssize_t self_len = PyBytes_GET_SIZE(self); in bytes_removeprefix_impl() local
2221 if (self_len >= prefix_len in bytes_removeprefix_impl()
2226 self_len - prefix_len); in bytes_removeprefix_impl()
2234 return PyBytes_FromStringAndSize(self_start, self_len); in bytes_removeprefix_impl()
2255 Py_ssize_t self_len = PyBytes_GET_SIZE(self); in bytes_removesuffix_impl() local
2259 if (self_len >= suffix_len in bytes_removesuffix_impl()
2261 && memcmp(self_start + self_len - suffix_len, in bytes_removesuffix_impl()
2265 self_len - suffix_len); in bytes_removesuffix_impl()
2273 return PyBytes_FromStringAndSize(self_start, self_len); in bytes_removesuffix_impl()
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs33605 let (self_len, other_len) = match &self.inner {
33612 (self_len.saturating_sub(other_len), Some(self_len))