Searched refs:sub_obj (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Objects/ |
D | bytes_methods.c | 672 PyObject *sub_obj; in _Py_bytes_count() local 682 &sub_obj, &byte, &start, &end)) in _Py_bytes_count() 685 if (sub_obj) { in _Py_bytes_count() 686 if (PyObject_GetBuffer(sub_obj, &vsub, PyBUF_SIMPLE) != 0) in _Py_bytes_count() 703 if (sub_obj) in _Py_bytes_count()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 1157 string_contains(PyObject *str_obj, PyObject *sub_obj) in string_contains() argument 1159 if (!PyString_CheckExact(sub_obj)) { in string_contains() 1161 if (PyUnicode_Check(sub_obj)) in string_contains() 1162 return PyUnicode_Contains(str_obj, sub_obj); in string_contains() 1164 if (!PyString_Check(sub_obj)) { in string_contains() 1167 "not %.200s", Py_TYPE(sub_obj)->tp_name); in string_contains() 1172 return stringlib_contains_obj(str_obj, sub_obj); in string_contains() 2128 PyObject *sub_obj; in string_count() local 2133 if (!stringlib_parse_args_finds("count", args, &sub_obj, &start, &end)) in string_count() 2136 if (PyString_Check(sub_obj)) { in string_count() [all …]
|
D | bytearrayobject.c | 1227 PyObject *sub_obj; in bytearray_count() local 1233 if (!stringlib_parse_args_finds("count", args, &sub_obj, &start, &end)) in bytearray_count() 1236 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()
|