Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 37) sorted by relevance

12

/external/python/cpython3/Objects/stringlib/
Dsplit.h55 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 …]
Dfind.h8 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()
Dpartition.h9 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()
Dcount.h8 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/
Dsplit.h58 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 …]
Dfind.h11 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 …]
Dpartition.h12 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()
Dcount.h11 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/
Dwps_dev_attr.c246 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/
Dumovestr2.c38 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/
Dumovestr2.c38 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/
Dumovestr2.c38 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/
Dcil.c1213 size_t str_len = 0; in cil_userprefixes_to_string() local
1231str_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 …]
Dcil_post.h36 int str_len; member
Dcil_post.c164 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/
Derr_test.cc104 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/
Dclientinfo_unittest.cpp126 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/
Djson_parser_unittest.cc372 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/
Davb_util.c357 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/
Dutil.c412 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/
Ddef.c128 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/
Dsmogcheck_tpm.py131 def PrintSelfTestResult(str_len, pResult): argument
139 for i in range(str_len):
/external/syslinux/com32/lua/src/
Dlstrlib.c37 static int str_len (lua_State *L) { in str_len() function
988 {"len", str_len},
/external/toybox/lib/
Dlib.h11 struct str_len { struct
/external/avb/contrib/linux/4.4/
D0001-ANDROID-Update-init-do_mounts_dm.c-to-the-latest-Chr.patch300 -static void __init dm_substitute_devices(char *str, size_t str_len)
309 - if (str_len < 3)

12