Home
last modified time | relevance | path

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

/external/python/cpython3/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 …]
/external/python/cpython2/Objects/
Dbytearrayobject.c1594 Py_ssize_t self_len, result_len; in replace_interleave() local
1598 self_len = PyByteArray_GET_SIZE(self); in replace_interleave()
1602 if (maxcount <= self_len) { in replace_interleave()
1607 count = self_len + 1; in replace_interleave()
1613 if (to_len > (PY_SSIZE_T_MAX - self_len) / count) { in replace_interleave()
1618 result_len = count * to_len + self_len; in replace_interleave()
1640 Py_MEMCPY(result_s, self_s, self_len-i); in replace_interleave()
1653 Py_ssize_t self_len, result_len; in replace_delete_single_character() local
1657 self_len = PyByteArray_GET_SIZE(self); in replace_delete_single_character()
1660 count = countchar(self_s, self_len, from_c, maxcount); in replace_delete_single_character()
[all …]
Dstringobject.c2366 Py_ssize_t self_len, result_len; in replace_interleave() local
2370 self_len = PyString_GET_SIZE(self); in replace_interleave()
2374 if (maxcount <= self_len) { in replace_interleave()
2379 count = self_len + 1; in replace_interleave()
2385 if (to_len > (PY_SSIZE_T_MAX - self_len) / count) { in replace_interleave()
2390 result_len = count * to_len + self_len; in replace_interleave()
2412 Py_MEMCPY(result_s, self_s, self_len-i); in replace_interleave()
2425 Py_ssize_t self_len, result_len; in replace_delete_single_character() local
2429 self_len = PyString_GET_SIZE(self); in replace_delete_single_character()
2432 count = countchar(self_s, self_len, from_c, maxcount); in replace_delete_single_character()
[all …]
/external/rust/crates/num-bigint/src/biguint/
Daddition.rs100 let self_len = self.data.len(); in add_assign() localVariable
101 let carry = if self_len < other.data.len() { in add_assign()
102 let lo_carry = __add2(&mut self.data[..], &other.data[..self_len]); in add_assign()
103 self.data.extend_from_slice(&other.data[self_len..]); in add_assign()
104 __add2(&mut self.data[self_len..], &[lo_carry]) in add_assign()
/external/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()
/external/rust/crates/clap/3.2.23/src/output/
Dhelp.rs360 let self_len = display_width(&arg.to_string()); in align_to_about() localVariable
370 let spcs = longest + padding - self_len; in align_to_about()
373 self_len, spcs in align_to_about()
378 let self_len = display_width(&arg.to_string()); in align_to_about() localVariable
380 let spcs = longest + padding - self_len; in align_to_about()
383 self_len, spcs in align_to_about()
/external/python/cpython3/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()