Home
last modified time | relevance | path

Searched refs:sep_obj (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dpartition.h13 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/cpython3/Objects/stringlib/
Dpartition.h10 PyObject* sep_obj, in STRINGLIB()
49 Py_INCREF(sep_obj); in STRINGLIB()
50 PyTuple_SET_ITEM(out, 1, sep_obj); in STRINGLIB()
65 PyObject* sep_obj, in STRINGLIB()
104 Py_INCREF(sep_obj); in STRINGLIB()
105 PyTuple_SET_ITEM(out, 1, sep_obj); in STRINGLIB()
/external/python/cpython2/Objects/
Dstringobject.c1494 string_partition(PyStringObject *self, PyObject *sep_obj) in string_partition() argument
1499 if (PyString_Check(sep_obj)) { in string_partition()
1500 sep = PyString_AS_STRING(sep_obj); in string_partition()
1501 sep_len = PyString_GET_SIZE(sep_obj); in string_partition()
1504 else if (PyUnicode_Check(sep_obj)) in string_partition()
1505 return PyUnicode_Partition((PyObject *) self, sep_obj); in string_partition()
1507 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) in string_partition()
1513 sep_obj, sep, sep_len in string_partition()
1525 string_rpartition(PyStringObject *self, PyObject *sep_obj) in string_rpartition() argument
1530 if (PyString_Check(sep_obj)) { in string_rpartition()
[all …]
Dunicodeobject.c7504 PyObject* sep_obj; in PyUnicode_Partition() local
7510 sep_obj = PyUnicode_FromObject(sep_in); in PyUnicode_Partition()
7511 if (!sep_obj) { in PyUnicode_Partition()
7518 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj) in PyUnicode_Partition()
7521 Py_DECREF(sep_obj); in PyUnicode_Partition()
7532 PyObject* sep_obj; in PyUnicode_RPartition() local
7538 sep_obj = PyUnicode_FromObject(sep_in); in PyUnicode_RPartition()
7539 if (!sep_obj) { in PyUnicode_RPartition()
7546 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj) in PyUnicode_RPartition()
7549 Py_DECREF(sep_obj); in PyUnicode_RPartition()
Dbytearrayobject.c2118 bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj) in bytearray_partition() argument
2122 bytesep = _PyByteArray_FromBufferObject(sep_obj); in bytearray_partition()
2146 bytearray_rpartition(PyByteArrayObject *self, PyObject *sep_obj) in bytearray_rpartition() argument
2150 bytesep = _PyByteArray_FromBufferObject(sep_obj); in bytearray_rpartition()
/external/python/cpython3/Objects/
Dunicodeobject.c12905 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) in PyUnicode_Partition() argument
12912 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0) in PyUnicode_Partition()
12916 kind2 = PyUnicode_KIND(sep_obj); in PyUnicode_Partition()
12918 len2 = PyUnicode_GET_LENGTH(sep_obj); in PyUnicode_Partition()
12930 buf2 = PyUnicode_DATA(sep_obj); in PyUnicode_Partition()
12932 buf2 = _PyUnicode_AsKind(sep_obj, kind1); in PyUnicode_Partition()
12939 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj)) in PyUnicode_Partition()
12940 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
12942 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
12945 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
[all …]