Lines Matching refs:sep_obj
13192 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj)
13199 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0)
13203 kind2 = PyUnicode_KIND(sep_obj);
13205 len2 = PyUnicode_GET_LENGTH(sep_obj);
13211 buf2 = PyUnicode_DATA(sep_obj);
13220 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj))
13221 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13223 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13226 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13229 out = ucs4lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13235 assert((kind2 == kind1) == (buf2 == PyUnicode_DATA(sep_obj)));
13244 PyUnicode_RPartition(PyObject *str_obj, PyObject *sep_obj)
13251 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0)
13255 kind2 = PyUnicode_KIND(sep_obj);
13257 len2 = PyUnicode_GET_LENGTH(sep_obj);
13263 buf2 = PyUnicode_DATA(sep_obj);
13272 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj))
13273 out = asciilib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13275 out = ucs1lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13278 out = ucs2lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13281 out = ucs4lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13287 assert((kind2 == kind1) == (buf2 == PyUnicode_DATA(sep_obj)));