Lines Matching refs:str_obj
13507 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_Partition() argument
13514 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_Partition()
13517 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition()
13519 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_Partition()
13523 return PyTuple_Pack(3, str_obj, empty, empty); in PyUnicode_Partition()
13525 buf1 = PyUnicode_DATA(str_obj); in PyUnicode_Partition()
13535 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_Partition()
13536 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13538 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13541 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13544 out = ucs4lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13559 PyUnicode_RPartition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_RPartition() argument
13566 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_RPartition()
13569 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_RPartition()
13571 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_RPartition()
13575 return PyTuple_Pack(3, empty, empty, str_obj); in PyUnicode_RPartition()
13577 buf1 = PyUnicode_DATA(str_obj); in PyUnicode_RPartition()
13587 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_RPartition()
13588 out = asciilib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()
13590 out = ucs1lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()
13593 out = ucs2lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()
13596 out = ucs4lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()