Lines Matching defs:str1
10544 anylib_find(int kind, PyObject *str1, const void *buf1, Py_ssize_t len1,
10549 if (PyUnicode_IS_ASCII(str1) && PyUnicode_IS_ASCII(str2))
10563 PyObject *str1, const void *buf1, Py_ssize_t len1, Py_ssize_t maxcount)
10567 if (PyUnicode_IS_ASCII(sstr) && PyUnicode_IS_ASCII(str1))
10605 replace(PyObject *self, PyObject *str1,
10610 const void *buf1 = PyUnicode_DATA(str1);
10614 int kind1 = PyUnicode_KIND(str1);
10617 Py_ssize_t len1 = PyUnicode_GET_LENGTH(str1);
10630 if (str1 == str2)
10634 maxchar_str1 = PyUnicode_MAX_CHAR_VALUE(str1);
10639 /* Replacing str1 with str2 may cause a maxchar reduction in the
10676 i = anylib_find(rkind, self, sbuf, slen, str1, buf1, len1, 0);
10689 assert(buf1 != PyUnicode_DATA(str1));
10691 buf1 = PyUnicode_DATA(str1);
10717 str1, buf1, len1, i);
10739 n = anylib_count(rkind, self, sbuf, slen, str1, buf1, len1, maxcount);
10755 assert(buf1 != PyUnicode_DATA(str1));
10757 buf1 = PyUnicode_DATA(str1);
10765 PyUnicode_GET_LENGTH(str1)); */
10792 str1, buf1, len1, i);
10846 assert(release1 == (buf1 != PyUnicode_DATA(str1)));
10860 assert(release1 == (buf1 != PyUnicode_DATA(str1)));
10872 assert(release1 == (buf1 != PyUnicode_DATA(str1)));
10995 /* This function assumes that str1 and str2 are readied by the caller. */
10998 unicode_compare(PyObject *str1, PyObject *str2)
11019 kind1 = PyUnicode_KIND(str1);
11021 data1 = PyUnicode_DATA(str1);
11023 len1 = PyUnicode_GET_LENGTH(str1);
11114 unicode_compare_eq(PyObject *str1, PyObject *str2)
11121 len = PyUnicode_GET_LENGTH(str1);
11124 kind = PyUnicode_KIND(str1);
11127 data1 = PyUnicode_DATA(str1);
11135 _PyUnicode_Equal(PyObject *str1, PyObject *str2)
11137 assert(PyUnicode_Check(str1));
11139 if (str1 == str2) {
11142 if (PyUnicode_READY(str1) || PyUnicode_READY(str2)) {
11145 return unicode_compare_eq(str1, str2);