Home | History | Annotate | Download | only in Objects

Lines Matching refs:str2

5886                   PyUnicodeObject *str2,
5896 if (str1->length == str2->length) {
5911 u2 = str2->str[0];
5930 Py_UNICODE_COPY(u->str+i, str2->str, str2->length);
5939 Py_UNICODE_COPY(u->str+i, str2->str, str2->length);
5954 /* new_size = self->length + n * (str2->length - str1->length)); */
5955 delta = (str2->length - str1->length);
5959 product = n * (str2->length - str1->length);
5960 if ((product / (str2->length - str1->length)) != n) {
5991 if (str2->length > 0) {
5992 Py_UNICODE_COPY(p, str2->str, str2->length);
5993 p += str2->length;
6003 Py_UNICODE_COPY(p, str2->str, str2->length);
6004 p += str2->length;
6160 unicode_compare(PyUnicodeObject *str1, PyUnicodeObject *str2)
6165 Py_UNICODE *s2 = str2->str;
6168 len2 = str2->length;
6194 unicode_compare(PyUnicodeObject *str1, PyUnicodeObject *str2)
6199 Py_UNICODE *s2 = str2->str;
6202 len2 = str2->length;
7278 PyObject *str2;
7289 str2 = PyUnicode_FromObject(replobj);
7290 if (str2 == NULL) {
7297 (PyUnicodeObject *)str2,
7301 Py_DECREF(str2);
7316 PyUnicodeObject *str2;
7320 if (!PyArg_ParseTuple(args, "OO|n:replace", &str1, &str2, &maxcount))
7325 str2 = (PyUnicodeObject *)PyUnicode_FromObject((PyObject *)str2);
7326 if (str2 == NULL) {
7331 result = replace(self, str1, str2, maxcount);
7334 Py_DECREF(str2);