Searched refs:sub_obj (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Objects/ |
D | bytes_methods.c | 608 PyObject *sub_obj; in _Py_bytes_count() local 618 &sub_obj, &byte, &start, &end)) in _Py_bytes_count() 621 if (sub_obj) { in _Py_bytes_count() 622 if (PyObject_GetBuffer(sub_obj, &vsub, PyBUF_SIMPLE) != 0) in _Py_bytes_count() 639 if (sub_obj) in _Py_bytes_count()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 1151 string_contains(PyObject *str_obj, PyObject *sub_obj) in string_contains() argument 1153 if (!PyString_CheckExact(sub_obj)) { in string_contains() 1155 if (PyUnicode_Check(sub_obj)) in string_contains() 1156 return PyUnicode_Contains(str_obj, sub_obj); in string_contains() 1158 if (!PyString_Check(sub_obj)) { in string_contains() 1161 "not %.200s", Py_TYPE(sub_obj)->tp_name); in string_contains() 1166 return stringlib_contains_obj(str_obj, sub_obj); in string_contains() 2122 PyObject *sub_obj; in string_count() local 2127 if (!stringlib_parse_args_finds("count", args, &sub_obj, &start, &end)) in string_count() 2130 if (PyString_Check(sub_obj)) { in string_count() [all …]
|
D | bytearrayobject.c | 1206 PyObject *sub_obj; in bytearray_count() local 1212 if (!stringlib_parse_args_finds("count", args, &sub_obj, &start, &end)) in bytearray_count() 1215 if (_getbuffer(sub_obj, &vsub) < 0) in bytearray_count()
|
D | unicodeobject.c | 5381 PyUnicodeObject* sub_obj; in PyUnicode_Count() local 5386 sub_obj = (PyUnicodeObject*) PyUnicode_FromObject(substr); in PyUnicode_Count() 5387 if (!sub_obj) { in PyUnicode_Count() 5394 str_obj->str + start, end - start, sub_obj->str, sub_obj->length, in PyUnicode_Count() 5398 Py_DECREF(sub_obj); in PyUnicode_Count()
|