Home | History | Annotate | Download | only in Objects

Lines Matching defs:from_len

2432     result_len = self_len - count;  /* from_len == 1 */

2459 const char *from_s, Py_ssize_t from_len,
2471 from_s, from_len,
2479 result_len = self_len - (count * from_len);
2492 from_s, from_len,
2501 start = next+from_len;
2555 const char *from_s, Py_ssize_t from_len,
2570 from_s, from_len,
2586 Py_MEMCPY(start, to_s, from_len);
2587 start += from_len;
2592 from_s, from_len,
2596 Py_MEMCPY(start+offset, to_s, from_len);
2597 start += offset+from_len;
2673 const char *from_s, Py_ssize_t from_len,
2686 from_s, from_len,
2695 /* result_len = self_len + count * (to_len-from_len) */
2696 product = count * (to_len-from_len);
2697 if (product / (to_len-from_len) != count) {
2716 from_s, from_len,
2725 start += from_len;
2732 start = next+from_len;
2744 const char *from_s, Py_ssize_t from_len,
2756 (from_len == 0 && to_len == 0)) {
2763 if (from_len == 0) {
2779 if (from_len == 1) {
2783 return replace_delete_substring(self, from_s, from_len, maxcount);
2789 if (from_len == to_len) {
2790 if (from_len == 1) {
2798 self, from_s, from_len, to_s, to_len, maxcount);
2803 if (from_len == 1) {
2808 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount);
2825 Py_ssize_t from_len, to_len;
2832 from_len = PyString_GET_SIZE(from);
2839 else if (PyObject_AsCharBuffer(from, &from_s, &from_len))
2855 from_s, from_len,