Home | History | Annotate | Download | only in Objects

Lines Matching defs:subobj

1458     PyObject *subobj = Py_None;

1460 if (!PyArg_ParseTuple(args, "|On:split", &subobj, &maxsplit))
1464 if (subobj == Py_None)
1466 if (PyString_Check(subobj)) {
1467 sub = PyString_AS_STRING(subobj);
1468 n = PyString_GET_SIZE(subobj);
1471 else if (PyUnicode_Check(subobj))
1472 return PyUnicode_Split((PyObject *)self, subobj, maxsplit);
1474 else if (PyObject_AsCharBuffer(subobj, &sub, &n))
1557 PyObject *subobj = Py_None;
1559 if (!PyArg_ParseTuple(args, "|On:rsplit", &subobj, &maxsplit))
1563 if (subobj == Py_None)
1565 if (PyString_Check(subobj)) {
1566 sub = PyString_AS_STRING(subobj);
1567 n = PyString_GET_SIZE(subobj);
1570 else if (PyUnicode_Check(subobj))
1571 return PyUnicode_RSplit((PyObject *)self, subobj, maxsplit);
1573 else if (PyObject_AsCharBuffer(subobj, &sub, &n))
1709 PyObject *subobj;
1715 args, &subobj, &start, &end))
1718 if (PyString_Check(subobj)) {
1719 sub = PyString_AS_STRING(subobj);
1720 sub_len = PyString_GET_SIZE(subobj);
1723 else if (PyUnicode_Check(subobj))
1725 (PyObject *)self, subobj, start, end, dir);
1727 else if (PyObject_AsCharBuffer(subobj, &sub, &sub_len))
2920 PyObject *subobj;
2923 if (!stringlib_parse_args_finds("startswith", args, &subobj, &start, &end))
2925 if (PyTuple_Check(subobj)) {
2927 for (i = 0; i < PyTuple_GET_SIZE(subobj); i++) {
2929 PyTuple_GET_ITEM(subobj, i),
2939 result = _string_tailmatch(self, subobj, start, end, -1);
2943 "unicode, or tuple, not %s", Py_TYPE(subobj)->tp_name);
2964 PyObject *subobj;
2967 if (!stringlib_parse_args_finds("endswith", args, &subobj, &start, &end))
2969 if (PyTuple_Check(subobj)) {
2971 for (i = 0; i < PyTuple_GET_SIZE(subobj); i++) {
2973 PyTuple_GET_ITEM(subobj, i),
2983 result = _string_tailmatch(self, subobj, start, end, +1);
2987 "unicode, or tuple, not %s", Py_TYPE(subobj)->tp_name);