Home | History | Annotate | Download | only in Objects

Lines Matching full:substr

9409                 PyObject *substr,
9418 if (ensure_unicode(str) < 0 || ensure_unicode(substr) < 0)
9422 kind2 = PyUnicode_KIND(substr);
9427 len2 = PyUnicode_GET_LENGTH(substr);
9433 buf2 = PyUnicode_DATA(substr);
9435 buf2 = _PyUnicode_AsKind(substr, kind1);
9442 if (PyUnicode_IS_ASCII(str) && PyUnicode_IS_ASCII(substr))
9481 PyObject *substr,
9486 if (ensure_unicode(str) < 0 || ensure_unicode(substr) < 0)
9489 return any_find_slice(str, substr, start, end, direction);
9587 PyObject *substr,
9592 if (ensure_unicode(str) < 0 || ensure_unicode(substr) < 0)
9595 return tailmatch(str, substr, start, end, direction);
11228 PyUnicode_Contains(PyObject *str, PyObject *substr)
11235 if (!PyUnicode_Check(substr)) {
11238 Py_TYPE(substr)->tp_name);
11241 if (PyUnicode_READY(substr) == -1)
11247 kind2 = PyUnicode_KIND(substr);
11251 len2 = PyUnicode_GET_LENGTH(substr);
11255 buf2 = PyUnicode_DATA(substr);
11262 buf2 = _PyUnicode_AsKind(substr, kind1);
12531 PyObject *substr,
12535 if (ensure_unicode(str) < 0 || ensure_unicode(substr) < 0 ||
12538 return replace(str, substr, replstr, maxcount);