• Home
  • Raw
  • Download

Lines Matching refs:from_len

2464                          const char *from_s, Py_ssize_t from_len,  in replace_delete_substring()  argument
2476 from_s, from_len, in replace_delete_substring()
2484 result_len = self_len - (count * from_len); in replace_delete_substring()
2497 from_s, from_len, in replace_delete_substring()
2506 start = next+from_len; in replace_delete_substring()
2560 const char *from_s, Py_ssize_t from_len, in replace_substring_in_place() argument
2575 from_s, from_len, in replace_substring_in_place()
2591 Py_MEMCPY(start, to_s, from_len); in replace_substring_in_place()
2592 start += from_len; in replace_substring_in_place()
2597 from_s, from_len, in replace_substring_in_place()
2601 Py_MEMCPY(start+offset, to_s, from_len); in replace_substring_in_place()
2602 start += offset+from_len; in replace_substring_in_place()
2674 const char *from_s, Py_ssize_t from_len, in replace_substring() argument
2687 from_s, from_len, in replace_substring()
2698 if (to_len - from_len > (PY_SSIZE_T_MAX - self_len) / count) { in replace_substring()
2702 result_len = self_len + count * (to_len - from_len); in replace_substring()
2713 from_s, from_len, in replace_substring()
2722 start += from_len; in replace_substring()
2729 start = next+from_len; in replace_substring()
2741 const char *from_s, Py_ssize_t from_len, in replace() argument
2753 (from_len == 0 && to_len == 0)) { in replace()
2760 if (from_len == 0) { in replace()
2776 if (from_len == 1) { in replace()
2780 return replace_delete_substring(self, from_s, from_len, maxcount); in replace()
2786 if (from_len == to_len) { in replace()
2787 if (from_len == 1) { in replace()
2795 self, from_s, from_len, to_s, to_len, maxcount); in replace()
2800 if (from_len == 1) { in replace()
2805 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount); in replace()
2822 Py_ssize_t from_len, to_len; in string_replace() local
2829 from_len = PyString_GET_SIZE(from); in string_replace()
2836 else if (PyObject_AsCharBuffer(from, &from_s, &from_len)) in string_replace()
2852 from_s, from_len, in string_replace()