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

/external/python/cpython2/Objects/stringlib/
H A Dpartition.h13 PyObject* sep_obj,
47 Py_INCREF(sep_obj);
48 PyTuple_SET_ITEM(out, 1, sep_obj);
63 PyObject* sep_obj,
97 Py_INCREF(sep_obj);
98 PyTuple_SET_ITEM(out, 1, sep_obj);
11 stringlib_partition(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) argument
61 stringlib_rpartition(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) argument
/external/python/cpython3/Objects/stringlib/
H A Dpartition.h10 PyObject* sep_obj,
49 Py_INCREF(sep_obj);
50 PyTuple_SET_ITEM(out, 1, sep_obj);
65 PyObject* sep_obj,
104 Py_INCREF(sep_obj);
105 PyTuple_SET_ITEM(out, 1, sep_obj);
8 partition(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) argument
63 rpartition(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) argument
/external/python/cpython2/Objects/
H A Dstringobject.c1488 string_partition(PyStringObject *self, PyObject *sep_obj) argument
1493 if (PyString_Check(sep_obj)) {
1494 sep = PyString_AS_STRING(sep_obj);
1495 sep_len = PyString_GET_SIZE(sep_obj);
1498 else if (PyUnicode_Check(sep_obj))
1499 return PyUnicode_Partition((PyObject *) self, sep_obj);
1501 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len))
1507 sep_obj, sep, sep_len
1519 string_rpartition(PyStringObject *self, PyObject *sep_obj) argument
1524 if (PyString_Check(sep_obj)) {
[all...]
H A Dbytearrayobject.c2106 bytearray_partition(PyByteArrayObject *self, PyObject *sep_obj) argument
2110 bytesep = PyByteArray_FromObject(sep_obj);
2134 bytearray_rpartition(PyByteArrayObject *self, PyObject *sep_obj) argument
2138 bytesep = PyByteArray_FromObject(sep_obj);
H A Dunicodeobject.c7509 PyObject* sep_obj; local
7515 sep_obj = PyUnicode_FromObject(sep_in);
7516 if (!sep_obj) {
7523 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj)
7526 Py_DECREF(sep_obj);
7537 PyObject* sep_obj; local
7543 sep_obj = PyUnicode_FromObject(sep_in);
7544 if (!sep_obj) {
[all...]
/external/python/cpython3/Objects/
H A Dunicodeobject.c12857 PyUnicode_Partition(PyObject *str_obj, PyObject *sep_obj) argument
12864 if (ensure_unicode(str_obj) < 0 || ensure_unicode(sep_obj) < 0)
12868 kind2 = PyUnicode_KIND(sep_obj);
12870 len2 = PyUnicode_GET_LENGTH(sep_obj);
12882 buf2 = PyUnicode_DATA(sep_obj);
12884 buf2 = _PyUnicode_AsKind(sep_obj, kind1);
12891 if (PyUnicode_IS_ASCII(str_obj) && PyUnicode_IS_ASCII(sep_obj))
12892 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
12894 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
12897 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf
12915 PyUnicode_RPartition(PyObject *str_obj, PyObject *sep_obj) argument
[all...]

Completed in 416 milliseconds