Searched refs:sub_len (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Objects/stringlib/ |
D | find.h | 12 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_find() argument 19 if (sub_len == 0) in stringlib_find() 22 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_SEARCH); in stringlib_find() 32 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_rfind() argument 39 if (sub_len == 0) in stringlib_rfind() 42 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_RSEARCH); in stringlib_rfind() 67 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_find_slice() argument 71 return stringlib_find(str + start, end - start, sub, sub_len, start); in stringlib_find_slice() 76 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_rfind_slice() argument 80 return stringlib_rfind(str + start, end - start, sub, sub_len, start); in stringlib_rfind_slice()
|
D | count.h | 12 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_count() argument 19 if (sub_len == 0) in stringlib_count() 22 count = fastsearch(str, str_len, sub, sub_len, maxcount, FAST_COUNT); in stringlib_count()
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 1091 const char *sub, Py_ssize_t sub_len, /* substitution string */ in mymemreplace() argument 1111 delta_len = sub_len - pat_len; in mymemreplace() 1146 memcpy(new_s, sub, sub_len); in mymemreplace() 1147 new_s += sub_len; in mymemreplace() 1173 Py_ssize_t len,pat_len,sub_len,out_len; in strop_replace() local 1179 &str, &len, &pat, &pat_len, &sub, &sub_len, in strop_replace() 1192 new_s = mymemreplace(str,len,pat,pat_len,sub,sub_len,count,&out_len); in strop_replace()
|
/external/python/cpython2/Objects/ |
D | stringobject.c | 1711 Py_ssize_t sub_len; in string_find_internal() local 1720 sub_len = PyString_GET_SIZE(subobj); in string_find_internal() 1727 else if (PyObject_AsCharBuffer(subobj, &sub, &sub_len)) in string_find_internal() 1735 sub, sub_len, start, end); in string_find_internal() 1739 sub, sub_len, start, end); in string_find_internal() 2124 Py_ssize_t sub_len; in string_count() local 2132 sub_len = PyString_GET_SIZE(sub_obj); in string_count() 2144 else if (PyObject_AsCharBuffer(sub_obj, &sub, &sub_len)) in string_count() 2150 stringlib_count(str + start, end - start, sub, sub_len, PY_SSIZE_T_MAX) in string_count()
|