Lines Matching defs:str2
10545 PyObject *str2, const void *buf2, Py_ssize_t len2, Py_ssize_t offset)
10549 if (PyUnicode_IS_ASCII(str1) && PyUnicode_IS_ASCII(str2))
10606 PyObject *str2, Py_ssize_t maxcount)
10611 const void *buf2 = PyUnicode_DATA(str2);
10615 int kind2 = PyUnicode_KIND(str2);
10618 Py_ssize_t len2 = PyUnicode_GET_LENGTH(str2);
10630 if (str1 == str2)
10638 maxchar_str2 = PyUnicode_MAX_CHAR_VALUE(str2);
10639 /* Replacing str1 with str2 may cause a maxchar reduction in the
10764 /* new_size = PyUnicode_GET_LENGTH(self) + n * (PyUnicode_GET_LENGTH(str2) -
10847 assert(release2 == (buf2 != PyUnicode_DATA(str2)));
10861 assert(release2 == (buf2 != PyUnicode_DATA(str2)));
10873 assert(release2 == (buf2 != PyUnicode_DATA(str2)));
10995 /* This function assumes that str1 and str2 are readied by the caller. */
10998 unicode_compare(PyObject *str1, PyObject *str2)
11020 kind2 = PyUnicode_KIND(str2);
11022 data2 = PyUnicode_DATA(str2);
11024 len2 = PyUnicode_GET_LENGTH(str2);
11114 unicode_compare_eq(PyObject *str1, PyObject *str2)
11122 if (PyUnicode_GET_LENGTH(str2) != len)
11125 if (PyUnicode_KIND(str2) != kind)
11128 data2 = PyUnicode_DATA(str2);
11135 _PyUnicode_Equal(PyObject *str1, PyObject *str2)
11138 assert(PyUnicode_Check(str2));
11139 if (str1 == str2) {
11142 if (PyUnicode_READY(str1) || PyUnicode_READY(str2)) {
11145 return unicode_compare_eq(str1, str2);
14052 PyObject *str2;
14053 str2 = resize_compact(str, writer->pos);
14054 if (str2 == NULL) {
14058 str = str2;