Home
last modified time | relevance | path

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

/third_party/python/Objects/stringlib/
Dpartition.h16 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) in STRINGLIB()
21 if (sep_len == 0) { in STRINGLIB()
30 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH); in STRINGLIB()
58 pos += sep_len; in STRINGLIB()
73 const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) in STRINGLIB()
78 if (sep_len == 0) { in STRINGLIB()
87 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in STRINGLIB()
115 pos += sep_len; in STRINGLIB()
Dsplit.h147 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()
/third_party/grpc/src/core/lib/slice/
Dslice_string_helpers.cc55 const size_t sep_len = strlen(sep); in slice_find_separator_offset() local
56 if (str_len < sep_len) { in slice_find_separator_offset()
60 for (i = 0; i <= str_len - sep_len; i++) { in slice_find_separator_offset()
61 if (memcmp(str_ptr + i, sep, sep_len) == 0) { in slice_find_separator_offset()
82 const size_t sep_len = strlen(sep); in grpc_slice_split_inner() local
87 GPR_ASSERT(sep_len > 0); in grpc_slice_split_inner()
96 } while (slice_find_separator_offset(str, sep, sep_pos + sep_len, &begin, in grpc_slice_split_inner()
98 begin = sep_pos + sep_len; in grpc_slice_split_inner()
/third_party/grpc/src/core/lib/gpr/
Dstring.cc241 const size_t sep_len = strlen(sep); in gpr_strjoin_sep() local
250 out_length += sep_len * (nstrs - 1); /* separators */ in gpr_strjoin_sep()
257 memcpy(out + out_length, sep, sep_len); in gpr_strjoin_sep()
258 out_length += sep_len; in gpr_strjoin_sep()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/dbus/
Ddbus_new_helpers.c964 size_t sep_len; in wpas_dbus_new_decompose_object_path() local
989 sep_len = os_strlen(sep); in wpas_dbus_new_decompose_object_path()
990 if (os_strncmp(pos, sep, sep_len) != 0 || pos[sep_len] != '/') in wpas_dbus_new_decompose_object_path()
994 *item = pos + sep_len + 1; in wpas_dbus_new_decompose_object_path()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/dbus/
Ddbus_new_helpers.c964 size_t sep_len; in wpas_dbus_new_decompose_object_path() local
989 sep_len = os_strlen(sep); in wpas_dbus_new_decompose_object_path()
990 if (os_strncmp(pos, sep, sep_len) != 0 || pos[sep_len] != '/') in wpas_dbus_new_decompose_object_path()
994 *item = pos + sep_len + 1; in wpas_dbus_new_decompose_object_path()