Home
last modified time | relevance | path

Searched refs:sep_len (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dpartition.h14 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) in stringlib_partition() argument
19 if (sep_len == 0) { in stringlib_partition()
28 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_SEARCH); in stringlib_partition()
49 pos += sep_len; in stringlib_partition()
64 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) in stringlib_rpartition() argument
69 if (sep_len == 0) { in stringlib_rpartition()
78 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in stringlib_rpartition()
99 pos += sep_len; in stringlib_rpartition()
Dsplit.h150 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, in stringlib_split() argument
156 if (sep_len == 0) { in stringlib_split()
160 else if (sep_len == 1) in stringlib_split()
169 pos = fastsearch(str+i, str_len-i, sep, sep_len, -1, FAST_SEARCH); in stringlib_split()
174 i = j + sep_len; in stringlib_split()
292 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, in stringlib_rsplit() argument
298 if (sep_len == 0) { in stringlib_rsplit()
302 else if (sep_len == 1) in stringlib_rsplit()
311 pos = fastsearch(str, j, sep, sep_len, -1, FAST_RSEARCH); in stringlib_rsplit()
314 SPLIT_ADD(str, pos + sep_len, j); in stringlib_rsplit()
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_helpers.c962 size_t sep_len; in wpas_dbus_new_decompose_object_path() local
987 sep_len = os_strlen(sep); in wpas_dbus_new_decompose_object_path()
988 if (os_strncmp(pos, sep, sep_len) != 0 || pos[sep_len] != '/') in wpas_dbus_new_decompose_object_path()
992 *item = pos + sep_len + 1; in wpas_dbus_new_decompose_object_path()
/external/python/cpython2/Objects/
Dstringobject.c1491 Py_ssize_t sep_len; in string_partition() local
1495 sep_len = PyString_GET_SIZE(sep_obj); in string_partition()
1501 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) in string_partition()
1507 sep_obj, sep, sep_len in string_partition()
1522 Py_ssize_t sep_len; in string_rpartition() local
1526 sep_len = PyString_GET_SIZE(sep_obj); in string_rpartition()
1532 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) in string_rpartition()
1538 sep_obj, sep, sep_len in string_rpartition()