Lines Matching defs:str_obj
13192 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj)
13199 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0)
13202 kind1 = PyUnicode_KIND(str_obj);
13204 len1 = PyUnicode_GET_LENGTH(str_obj);
13208 return PyTuple_Pack(3, str_obj, empty, empty);
13210 buf1 = PyUnicode_DATA(str_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);
13244 PyUnicode_RPartition(PyObject *str_obj, PyObject *sep_obj)
13251 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0)
13254 kind1 = PyUnicode_KIND(str_obj);
13256 len1 = PyUnicode_GET_LENGTH(str_obj);
13260 return PyTuple_Pack(3, empty, empty, str_obj);
13262 buf1 = PyUnicode_DATA(str_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);