/external/grpc-grpc/src/core/lib/slice/ |
D | slice_string_helpers.cc | 46 const size_t sep_len = strlen(sep); in slice_find_separator_offset() local 47 if (str_len < sep_len) { in slice_find_separator_offset() 51 for (i = 0; i <= str_len - sep_len; i++) { in slice_find_separator_offset() 52 if (memcmp(str_ptr + i, sep, sep_len) == 0) { in slice_find_separator_offset() 73 const size_t sep_len = strlen(sep); in grpc_slice_split_inner() local 78 GPR_ASSERT(sep_len > 0); in grpc_slice_split_inner() 87 } while (slice_find_separator_offset(str, sep, sep_pos + sep_len, &begin, in grpc_slice_split_inner() 89 begin = sep_pos + sep_len; in grpc_slice_split_inner()
|
/external/python/cpython2/Objects/stringlib/ |
D | partition.h | 14 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()
|
D | split.h | 150 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/tensorflow/tensorflow/core/kernels/fuzzing/ |
D | string_split_v2_fuzz.cc | 42 size_t sep_len = static_cast<size_t>(data[0]) % kMaxSepSize; in FuzzImpl() local 46 if (sep_len > size) { in FuzzImpl() 47 sep_len = size - 1; in FuzzImpl() 50 string(reinterpret_cast<const char*>(data), sep_len); in FuzzImpl() 52 reinterpret_cast<const char*>(data + sep_len), size - sep_len); in FuzzImpl()
|
/external/python/cpython3/Objects/stringlib/ |
D | partition.h | 11 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) in STRINGLIB() 16 if (sep_len == 0) { in STRINGLIB() 25 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH); in STRINGLIB() 51 pos += sep_len; in STRINGLIB() 66 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) in STRINGLIB() 71 if (sep_len == 0) { in STRINGLIB() 80 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in STRINGLIB() 106 pos += sep_len; in STRINGLIB()
|
D | split.h | 147 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, in STRINGLIB() 153 if (sep_len == 0) { in STRINGLIB() 157 else if (sep_len == 1) in STRINGLIB() 166 pos = FASTSEARCH(str+i, str_len-i, sep, sep_len, -1, FAST_SEARCH); in STRINGLIB() 171 i = j + sep_len; in STRINGLIB() 289 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, in STRINGLIB() 295 if (sep_len == 0) { in STRINGLIB() 299 else if (sep_len == 1) in STRINGLIB() 308 pos = FASTSEARCH(str, j, sep, sep_len, -1, FAST_RSEARCH); in STRINGLIB() 311 SPLIT_ADD(str, pos + sep_len, j); in STRINGLIB()
|
/external/grpc-grpc/src/core/lib/gpr/ |
D | string.cc | 233 const size_t sep_len = strlen(sep); in gpr_strjoin_sep() local 242 out_length += sep_len * (nstrs - 1); /* separators */ in gpr_strjoin_sep() 249 memcpy(out + out_length, sep, sep_len); in gpr_strjoin_sep() 250 out_length += sep_len; in gpr_strjoin_sep()
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new_helpers.c | 962 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/ |
D | stringobject.c | 1497 Py_ssize_t sep_len; in string_partition() local 1501 sep_len = PyString_GET_SIZE(sep_obj); in string_partition() 1507 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) in string_partition() 1513 sep_obj, sep, sep_len in string_partition() 1528 Py_ssize_t sep_len; in string_rpartition() local 1532 sep_len = PyString_GET_SIZE(sep_obj); in string_rpartition() 1538 else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len)) in string_rpartition() 1544 sep_obj, sep, sep_len in string_rpartition()
|