/external/python/cpython2/Objects/stringlib/ |
D | split.h | 58 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split_whitespace() argument 70 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace() 72 if (i == str_len) break; in stringlib_split_whitespace() 74 while (i < str_len && !STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace() 77 if (j == 0 && i == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in stringlib_split_whitespace() 88 if (i < str_len) { in stringlib_split_whitespace() 91 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace() 93 if (i != str_len) in stringlib_split_whitespace() 94 SPLIT_ADD(str, i, str_len); in stringlib_split_whitespace() 106 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split_char() argument [all …]
|
D | find.h | 11 stringlib_find(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find() argument 17 if (str_len < 0) in stringlib_find() 22 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_SEARCH); in stringlib_find() 31 stringlib_rfind(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind() argument 37 if (str_len < 0) in stringlib_rfind() 40 return str_len + offset; in stringlib_rfind() 42 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_RSEARCH); in stringlib_rfind() 66 stringlib_find_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find_slice() argument 70 ADJUST_INDICES(start, end, str_len); in stringlib_find_slice() 75 stringlib_rfind_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind_slice() argument [all …]
|
D | partition.h | 12 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_partition() argument 28 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_SEARCH); in stringlib_partition() 32 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in stringlib_partition() 50 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_partition() 62 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rpartition() argument 78 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in stringlib_rpartition() 84 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in stringlib_rpartition() 100 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_rpartition()
|
D | count.h | 11 stringlib_count(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_count() argument 17 if (str_len < 0) in stringlib_count() 20 return (str_len < maxcount) ? str_len + 1 : maxcount; in stringlib_count() 22 count = fastsearch(str, str_len, sub, sub_len, maxcount, FAST_COUNT); in stringlib_count()
|
/external/python/cpython3/Objects/stringlib/ |
D | split.h | 55 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 67 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in STRINGLIB() 69 if (i == str_len) break; in STRINGLIB() 71 while (i < str_len && !STRINGLIB_ISSPACE(str[i])) in STRINGLIB() 74 if (j == 0 && i == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in STRINGLIB() 85 if (i < str_len) { in STRINGLIB() 88 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in STRINGLIB() 90 if (i != str_len) in STRINGLIB() 91 SPLIT_ADD(str, i, str_len); in STRINGLIB() 103 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() [all …]
|
D | find.h | 8 STRINGLIB(find)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 14 assert(str_len >= 0); in STRINGLIB() 18 pos = FASTSEARCH(str, str_len, sub, sub_len, -1, FAST_SEARCH); in STRINGLIB() 27 STRINGLIB(rfind)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 33 assert(str_len >= 0); in STRINGLIB() 35 return str_len + offset; in STRINGLIB() 37 pos = FASTSEARCH(str, str_len, sub, sub_len, -1, FAST_RSEARCH); in STRINGLIB() 46 STRINGLIB(find_slice)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 54 STRINGLIB(rfind_slice)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB()
|
D | partition.h | 9 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 25 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH); in STRINGLIB() 29 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in STRINGLIB() 52 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in STRINGLIB() 64 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 80 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in STRINGLIB() 86 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in STRINGLIB() 107 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in STRINGLIB()
|
D | count.h | 8 STRINGLIB(count)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 14 if (str_len < 0) in STRINGLIB() 17 return (str_len < maxcount) ? str_len + 1 : maxcount; in STRINGLIB() 19 count = FASTSEARCH(str, str_len, sub, sub_len, maxcount, FAST_COUNT); in STRINGLIB()
|
/external/toybox/toys/pending/ |
D | vi.c | 78 int str_len; member 150 lst->line->str_len = 0; in linelist_load() 171 lst->line->str_len = len; in linelist_load() 176 lst->line->str_len--; in linelist_load() 196 text->line->str_len = 1; in ex_dd() 264 l = &c_r->line->str_len; in vi_x() 314 TT.cur_col = (c_r->line->str_len) ? c_r->line->str_len-1 : 0; in vi_movb() 341 if (TT.cur_col < c_r->line->str_len) in vi_move() 358 int sel = c_r->line->str_len-TT.cur_col; in i_insert() 361 if (c_r->line->alloc_len < c_r->line->str_len+il->str_len+5) { in i_insert() [all …]
|
D | bc.c | 299 struct str_len id; 319 int bc_id_cmp(struct str_len *e1, struct str_len *e2); 979 static size_t bc_map_find(BcVec *v, struct str_len *ptr) { in bc_map_find() 986 struct str_len *id = bc_vec_item(v, mid); in bc_map_find() 997 int bc_map_insert(BcVec *v, struct str_len *ptr, size_t *i) { in bc_map_insert() 1008 size_t bc_map_index(BcVec *v, struct str_len *ptr) { in bc_map_index() 2325 int bc_id_cmp(struct str_len *e1, struct str_len *e2) { in bc_id_cmp() 2330 free(((struct str_len *)id)->str); in bc_id_free() 2339 struct str_len a; in bc_func_insert() 2343 struct str_len *id = bc_vec_item(&f->autos, i); in bc_func_insert() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_dev_attr.c | 246 size_t str_len) in wps_process_manufacturer() argument 253 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Manufacturer", str, str_len); in wps_process_manufacturer() 256 dev->manufacturer = dup_binstr(str, str_len); in wps_process_manufacturer() 265 size_t str_len) in wps_process_model_name() argument 272 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Name", str, str_len); in wps_process_model_name() 275 dev->model_name = dup_binstr(str, str_len); in wps_process_model_name() 284 size_t str_len) in wps_process_model_number() argument 291 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Number", str, str_len); in wps_process_model_number() 294 dev->model_number = dup_binstr(str, str_len); in wps_process_model_number() 303 const u8 *str, size_t str_len) in wps_process_serial_number() argument [all …]
|
/external/strace/tests-mx32/ |
D | umovestr2.c | 38 const size_t str_len = tail_len - 1; in main() local 41 memset(addr, '0', str_len); in main() 42 addr[str_len] = '\0'; in main() 49 (int) str_len, 0); in main()
|
/external/strace/tests/ |
D | umovestr2.c | 38 const size_t str_len = tail_len - 1; in main() local 41 memset(addr, '0', str_len); in main() 42 addr[str_len] = '\0'; in main() 49 (int) str_len, 0); in main()
|
/external/strace/tests-m32/ |
D | umovestr2.c | 38 const size_t str_len = tail_len - 1; in main() local 41 memset(addr, '0', str_len); in main() 42 addr[str_len] = '\0'; in main() 49 (int) str_len, 0); in main()
|
/external/selinux/libsepol/cil/src/ |
D | cil.c | 1214 size_t str_len = 0; in cil_userprefixes_to_string() local 1232 …str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string() 1235 *size = str_len * sizeof(char); in cil_userprefixes_to_string() 1236 str_len++; in cil_userprefixes_to_string() 1237 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string() 1244 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string() 1246 str_len -= buf_pos; in cil_userprefixes_to_string() 1339 int str_len = 0; in __cil_level_strlen() local 1345 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen() 1348 str_len++; /* initial ":" */ in __cil_level_strlen() [all …]
|
D | cil_post.h | 36 int str_len; member
|
/external/grpc-grpc/src/core/lib/slice/ |
D | slice_string_helpers.cc | 45 const size_t str_len = GRPC_SLICE_LENGTH(str) - read_offset; 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()
|
/external/boringssl/src/crypto/err/ |
D | err_test.cc | 112 size_t str_len = strlen(str); in HasSuffix() local 113 if (str_len < suffix_len) { in HasSuffix() 116 return strcmp(str + str_len - suffix_len, suffix) == 0; in HasSuffix()
|
/external/mesa3d/src/glx/tests/ |
D | clientinfo_unittest.cpp | 126 uint32_t str_len, in xcb_glx_client_info() argument 134 gl_ext_string = (char *) malloc(str_len); in xcb_glx_client_info() 135 memcpy(gl_ext_string, string, str_len); in xcb_glx_client_info() 136 gl_ext_length = str_len; in xcb_glx_client_info()
|
/external/libchrome/base/json/ |
D | json_parser_unittest.cc | 36 size_t str_len = strlen(input); in MakeNotNullTerminatedInput() local 37 owner->reset(new char[str_len]); in MakeNotNullTerminatedInput() 38 memcpy(owner->get(), input, str_len); in MakeNotNullTerminatedInput() 39 return StringPiece(owner->get(), str_len); in MakeNotNullTerminatedInput()
|
/external/avb/libavb/ |
D | avb_util.c | 357 size_t str_len = avb_strlen(str); in avb_strdupv() local 359 lengths[num_strings] = str_len; in avb_strdupv() 360 if (!avb_safe_add_to(&total_length, str_len)) { in avb_strdupv()
|
/external/u-boot/lib/libavb/ |
D | avb_util.c | 338 size_t str_len = avb_strlen(str); in avb_strdupv() local 340 lengths[num_strings] = str_len; in avb_strdupv() 341 if (!avb_safe_add_to(&total_length, str_len)) { in avb_strdupv()
|
/external/tensorflow/tensorflow/core/kernels/data/experimental/ |
D | csv_dataset_op.cc | 522 size_t str_len = field.size(); in QuotedFieldToOutput() local 524 str_len += p.len; in QuotedFieldToOutput() 526 field_complete.reserve(str_len); in QuotedFieldToOutput() 765 size_t str_len = field.size(); in UnquotedFieldToOutput() local 767 str_len += p.len; in UnquotedFieldToOutput() 770 field_complete.reserve(str_len); in UnquotedFieldToOutput()
|
/external/kernel-headers/original/uapi/linux/ |
D | btf.h | 21 __u32 str_len; /* length of string section */ member
|
/external/grpc-grpc/test/core/iomgr/ |
D | tcp_server_posix_test.cc | 138 size_t str_len; in test_addr_init_str() local 139 memcpy(addr->str, str, (str_len = strnlen(str, sizeof(addr->str) - 1))); in test_addr_init_str() 140 addr->str[str_len] = '\0'; in test_addr_init_str()
|