Home | History | Annotate | Download | only in Objects

Lines Matching refs:str2

10426             PyObject *str2, void *buf2, Py_ssize_t len2, Py_ssize_t offset)
10430 if (PyUnicode_IS_ASCII(str1) && PyUnicode_IS_ASCII(str2))
10489 PyObject *str2, Py_ssize_t maxcount)
10494 char *buf2 = PyUnicode_DATA(str2);
10498 int kind2 = PyUnicode_KIND(str2);
10501 Py_ssize_t len2 = PyUnicode_GET_LENGTH(str2);
10510 if (str1 == str2)
10518 maxchar_str2 = PyUnicode_MAX_CHAR_VALUE(str2);
10519 /* Replacing str1 with str2 may cause a maxchar reduction in the
10561 buf2 = _PyUnicode_AsKind(str2, rkind);
10620 buf2 = _PyUnicode_AsKind(str2, rkind);
10636 /* new_size = PyUnicode_GET_LENGTH(self) + n * (PyUnicode_GET_LENGTH(str2) -
10849 /* This function assumes that str1 and str2 are readied by the caller. */
10852 unicode_compare(PyObject *str1, PyObject *str2)
10874 kind2 = PyUnicode_KIND(str2);
10876 data2 = PyUnicode_DATA(str2);
10878 len2 = PyUnicode_GET_LENGTH(str2);
10968 unicode_compare_eq(PyObject *str1, PyObject *str2)
10976 if (PyUnicode_GET_LENGTH(str2) != len)
10979 if (PyUnicode_KIND(str2) != kind)
10982 data2 = PyUnicode_DATA(str2);
12552 PyObject *str2;
12555 if (!PyArg_ParseTuple(args, "UU|n:replace", &str1, &str2, &maxcount))
12559 return replace(self, str1, str2, maxcount);
13711 PyObject *str2;
13712 str2 = resize_compact(str, writer->pos);
13713 if (str2 == NULL) {
13717 str = str2;