Home
last modified time | relevance | path

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

1234

/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.c261 size_t str_len) in wps_process_manufacturer() argument
268 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Manufacturer", str, str_len); in wps_process_manufacturer()
271 dev->manufacturer = dup_binstr(str, str_len); in wps_process_manufacturer()
280 size_t str_len) in wps_process_model_name() argument
287 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Name", str, str_len); in wps_process_model_name()
290 dev->model_name = dup_binstr(str, str_len); in wps_process_model_name()
299 size_t str_len) in wps_process_model_number() argument
306 wpa_hexdump_ascii(MSG_DEBUG, "WPS: Model Number", str, str_len); in wps_process_model_number()
309 dev->model_number = dup_binstr(str, str_len); in wps_process_model_number()
318 const u8 *str, size_t str_len) in wps_process_serial_number() argument
[all …]
/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/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/rust/crates/ring/crypto/fipsmodule/ec/
Decp_nistz.c28 void gfp_little_endian_bytes_from_scalar(uint8_t str[], size_t str_len, in gfp_little_endian_bytes_from_scalar() argument
31 debug_assert_nonsecret(str_len == (num_limbs * sizeof(Limb)) + 1); in gfp_little_endian_bytes_from_scalar()
49 for (; i < str_len; i++) { in gfp_little_endian_bytes_from_scalar()
/external/python/cryptography/src/cryptography/hazmat/primitives/serialization/
Dssh.py114 str_len, = struct.unpack('>I', data[:4])
115 if len(data) < str_len + 4:
118 return data[4:4 + str_len], data[4 + str_len:]
/external/grpc-grpc/src/core/lib/slice/
Dslice_string_helpers.cc45 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/selinux/libsepol/cil/src/
Dcil.c1377 size_t str_len = 0; in cil_userprefixes_to_string() local
1395str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string()
1398 *size = str_len * sizeof(char); in cil_userprefixes_to_string()
1399 str_len++; in cil_userprefixes_to_string()
1400 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1407 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1409 str_len -= buf_pos; in cil_userprefixes_to_string()
1502 int str_len = 0; in __cil_level_strlen() local
1508 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1511 str_len++; /* initial ":" */ in __cil_level_strlen()
[all …]
Dcil_post.h36 int str_len; member
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Dslice_string_helpers.cc54 const size_t str_len = GRPC_SLICE_LENGTH(str) - read_offset; 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()
/external/libchrome/base/i18n/
Dchar_iterator.cc49 UTF16CharIterator::UTF16CharIterator(const char16* str, size_t str_len) in UTF16CharIterator() argument
51 len_(str_len), in UTF16CharIterator()
/external/openscreen/third_party/mozilla/
Durl_parse_internal.cc45 int CountConsecutiveSlashes(const char* str, int begin_offset, int str_len) { in CountConsecutiveSlashes() argument
47 while ((begin_offset + count) < str_len && in CountConsecutiveSlashes()
/external/rust/crates/quiche/deps/boringssl/src/crypto/err/
Derr_test.cc112 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/boringssl/src/crypto/err/
Derr_test.cc112 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/libabigail/src/
Dabg-tools-utils.cc787 string::size_type str_len = str.length(), suffix_len = suffix.length(); in string_ends_with() local
789 if (str_len < suffix_len) in string_ends_with()
791 return str.compare(str_len - suffix_len, suffix_len, suffix) == 0; in string_ends_with()
1517 string::size_type str_len = str.length(), i = 0 ; in get_deb_name() local
1519 for (; i < str_len; ++i) in get_deb_name()
1525 if (i == str_len) in get_deb_name()
1547 string::size_type str_len = str.length(), i = 0; in get_rpm_name() local
1550 for (; i < str_len; ++i) in get_rpm_name()
1554 if ((next_index < str_len) && c == '-' && isdigit(str[next_index])) in get_rpm_name()
1558 if (i == str_len) in get_rpm_name()
[all …]
/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.cc36 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()

1234