/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/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/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-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/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/selinux/libsepol/cil/src/ |
D | cil.c | 1213 size_t str_len = 0; in cil_userprefixes_to_string() local 1231 …str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string() 1234 *size = str_len * sizeof(char); in cil_userprefixes_to_string() 1235 str_len++; in cil_userprefixes_to_string() 1236 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string() 1243 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string() 1245 str_len -= buf_pos; in cil_userprefixes_to_string() 1338 int str_len = 0; in __cil_level_strlen() local 1344 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen() 1347 str_len++; /* initial ":" */ in __cil_level_strlen() [all …]
|
D | cil_post.h | 36 int str_len; member
|
D | cil_post.c | 164 fc->str_len = 0; in cil_post_fc_fill_data() 189 fc->str_len++; in cil_post_fc_fill_data() 217 } else if (a_data->str_len < b_data->str_len) { in cil_post_filecon_compare() 219 } else if (b_data->str_len < a_data->str_len) { in cil_post_filecon_compare()
|
/external/boringssl/src/crypto/err/ |
D | err_test.cc | 104 size_t str_len = strlen(str); in HasSuffix() local 105 if (str_len < suffix_len) { in HasSuffix() 108 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 | 372 size_t str_len = strlen(test_case.input); in TEST_F() local 373 auto non_nul_termianted = MakeUnique<char[]>(str_len); in TEST_F() 374 memcpy(non_nul_termianted.get(), test_case.input, str_len); in TEST_F() 376 StringPiece string_piece(non_nul_termianted.get(), str_len); in TEST_F()
|
/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/strace/ |
D | util.c | 412 const size_t str_len = strlen(str); in getfdinode() local 413 if (str_len && str[str_len - 1] == ']') in getfdinode()
|
/external/protobuf/php/ext/google/protobuf/ |
D | def.c | 128 int str_len; in PHP_METHOD() local 129 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &str_len) == in PHP_METHOD()
|
/external/autotest/client/common_lib/ |
D | smogcheck_tpm.py | 131 def PrintSelfTestResult(str_len, pResult): argument 139 for i in range(str_len):
|
/external/syslinux/com32/lua/src/ |
D | lstrlib.c | 37 static int str_len (lua_State *L) { in str_len() function 988 {"len", str_len},
|
/external/toybox/lib/ |
D | lib.h | 11 struct str_len { struct
|
/external/avb/contrib/linux/4.4/ |
D | 0001-ANDROID-Update-init-do_mounts_dm.c-to-the-latest-Chr.patch | 300 -static void __init dm_substitute_devices(char *str, size_t str_len) 309 - if (str_len < 3)
|