Searched refs:sep_obj (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Objects/stringlib/ |
D | partition.h | 13 PyObject* sep_obj, in stringlib_partition() argument 47 Py_INCREF(sep_obj); in stringlib_partition() 48 PyTuple_SET_ITEM(out, 1, sep_obj); in stringlib_partition() 63 PyObject* sep_obj, in stringlib_rpartition() argument 97 Py_INCREF(sep_obj); in stringlib_rpartition() 98 PyTuple_SET_ITEM(out, 1, sep_obj); in stringlib_rpartition()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 1488 string_partition(PyStringObject *self, PyObject *sep_obj) in string_partition() argument 1493 if (PyString_Check(sep_obj)) { in string_partition() 1494 sep = PyString_AS_STRING(sep_obj); in string_partition() 1495 sep_len = PyString_GET_SIZE(sep_obj); in string_partition() 1498 else if (PyUnicode_Check(sep_obj)) in string_partition() 1499 return PyUnicode_Partition((PyObject *) self, sep_obj); in string_partition() 1501 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) in string_partition() 1507 sep_obj, sep, sep_len in string_partition() 1519 string_rpartition(PyStringObject *self, PyObject *sep_obj) in string_rpartition() argument 1524 if (PyString_Check(sep_obj)) { in string_rpartition() [all …]
|
D | unicodeobject.c | 7509 PyObject* sep_obj; in PyUnicode_Partition() local 7515 sep_obj = PyUnicode_FromObject(sep_in); in PyUnicode_Partition() 7516 if (!sep_obj) { in PyUnicode_Partition() 7523 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj) in PyUnicode_Partition() 7526 Py_DECREF(sep_obj); in PyUnicode_Partition() 7537 PyObject* sep_obj; in PyUnicode_RPartition() local 7543 sep_obj = PyUnicode_FromObject(sep_in); in PyUnicode_RPartition() 7544 if (!sep_obj) { in PyUnicode_RPartition() 7551 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj) in PyUnicode_RPartition() 7554 Py_DECREF(sep_obj); in PyUnicode_RPartition()
|
D | bytearrayobject.c | 2106 bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj) in bytearray_partition() argument 2110 bytesep = PyByteArray_FromObject(sep_obj); in bytearray_partition() 2134 bytearray_rpartition(PyByteArrayObject *self, PyObject *sep_obj) in bytearray_rpartition() argument 2138 bytesep = PyByteArray_FromObject(sep_obj); in bytearray_rpartition()
|