Home
last modified time | relevance | path

Searched refs:str_len (Results 1 - 25 of 52) sorted by relevance

123

/third_party/python/Objects/stringlib/
H A Dsplit.h55 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in split_whitespace()
67 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in split_whitespace()
69 if (i == str_len) break; in split_whitespace()
71 while (i < str_len && !STRINGLIB_ISSPACE(str[i])) in split_whitespace()
74 if (j == 0 && i == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in split_whitespace()
85 if (i < str_len) { in split_whitespace()
88 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in split_whitespace()
90 if (i != str_len) in split_whitespace()
91 SPLIT_ADD(str, i, str_len); in split_whitespace()
103 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in split_char()
54 split_whitespace(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, Py_ssize_t maxcount) split_whitespace() argument
102 split_char(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR ch, Py_ssize_t maxcount) split_char() argument
145 split(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, Py_ssize_t maxcount) split() argument
193 rsplit_whitespace(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, Py_ssize_t maxcount) rsplit_whitespace() argument
243 rsplit_char(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR ch, Py_ssize_t maxcount) rsplit_char() argument
287 rsplit(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len, Py_ssize_t maxcount) rsplit() argument
336 splitlines(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, int keepends) splitlines() argument
[all...]
H A Dfind.h8 STRINGLIB(find)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in find() argument
14 assert(str_len >= 0); in find()
18 pos = FASTSEARCH(str, str_len, sub, sub_len, -1, FAST_SEARCH); in find()
27 STRINGLIB(rfind)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in rfind() argument
33 assert(str_len >= 0); in rfind()
35 return str_len + offset; in rfind()
37 pos = FASTSEARCH(str, str_len, sub, sub_len, -1, FAST_RSEARCH); in rfind()
46 STRINGLIB(find_slice)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in find_slice() argument
54 STRINGLIB(rfind_slice)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in rfind_slice() argument
H A Dcount.h8 STRINGLIB(count)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in count() argument
14 if (str_len < 0) in count()
17 return (str_len < maxcount) ? str_len + 1 : maxcount; in count()
19 count = FASTSEARCH(str, str_len, sub, sub_len, maxcount, FAST_COUNT); in count()
H A Dpartition.h14 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in partition()
30 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_SEARCH); in partition()
34 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in partition()
59 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in partition()
71 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in rpartition()
87 pos = FASTSEARCH(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in rpartition()
93 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in rpartition()
116 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in rpartition()
13 partition(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) partition() argument
70 rpartition(PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len, PyObject* sep_obj, const STRINGLIB_CHAR* sep, Py_ssize_t sep_len) rpartition() argument
/third_party/ltp/testcases/kernel/syscalls/mmap/
H A Dmmap17.c44 int str_len; in cleanup() local
46 str_len = strlen(str); in cleanup()
53 SAFE_MUNMAP(mapped_address, str_len); in cleanup()
58 int str_len; in test_mmap() local
61 str_len = strlen(str); in test_mmap()
63 SAFE_WRITE(SAFE_WRITE_ALL, fd_file1, str, str_len); in test_mmap()
64 mapped_address = SAFE_MMAP(NULL, str_len, PROT_WRITE, in test_mmap()
67 SAFE_WRITE(SAFE_WRITE_ALL, fd_file2, str, str_len); in test_mmap()
69 address = mmap(mapped_address, str_len, PROT_WRITE, in test_mmap()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
H A Dwps_dev_attr.c246 size_t str_len) in wps_process_manufacturer()
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()
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()
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()
245 wps_process_manufacturer(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_manufacturer() argument
264 wps_process_model_name(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_model_name() argument
283 wps_process_model_number(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_model_number() argument
302 wps_process_serial_number(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_serial_number() argument
321 wps_process_dev_name(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_dev_name() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
H A Dwps_dev_attr.c261 size_t str_len) in wps_process_manufacturer()
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()
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()
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()
260 wps_process_manufacturer(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_manufacturer() argument
279 wps_process_model_name(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_model_name() argument
298 wps_process_model_number(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_model_number() argument
317 wps_process_serial_number(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_serial_number() argument
336 wps_process_dev_name(struct wps_device_data *dev, const u8 *str, size_t str_len) wps_process_dev_name() argument
[all...]
/third_party/libsnd/src/
H A Dstrings.c33 size_t str_len ; in psf_store_string() local
39 str_len = strlen (str) ; in psf_store_string()
48 if (str_type != SF_STR_SOFTWARE && str_len == 0) in psf_store_string()
126 str_len = strlen (str) + 1 ; in psf_store_string()
128 if (psf->strings.storage_used + str_len + 1 > psf->strings.storage_len) in psf_store_string()
130 size_t newlen = 2 * psf->strings.storage_len + str_len + 1 ; in psf_store_string()
146 memcpy (psf->strings.storage + psf->strings.storage_used, str, str_len) ; in psf_store_string()
147 psf->strings.storage_used += str_len ; in psf_store_string()
/third_party/selinux/libsepol/cil/src/
H A Dcil.c1427 size_t str_len = 0; in cil_userprefixes_to_string() local
1445 str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->prefix_str) + 2; in cil_userprefixes_to_string()
1448 *size = str_len * sizeof(char); in cil_userprefixes_to_string()
1449 str_len++; in cil_userprefixes_to_string()
1450 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1457 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1465 str_len -= buf_pos; in cil_userprefixes_to_string()
1551 int str_len = 0; in __cil_level_strlen() local
1557 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1560 str_len in __cil_level_strlen()
1664 size_t str_len = 0; cil_selinuxusers_to_string() local
1723 size_t str_len = 0; cil_filecons_to_string() local
[all...]
/third_party/node/test/node-api/1_hello_world/
H A Dbinding.c8 size_t str_len = strlen(str); in Method() local
9 NODE_API_CALL(env, napi_create_string_utf8(env, str, str_len, &world)); in Method()
/third_party/node/test/node-api/test_policy/
H A Dbinding.c8 size_t str_len = strlen(str); in Method() local
9 NODE_API_CALL(env, napi_create_string_utf8(env, str, str_len, &world)); in Method()
/third_party/libbpf/src/
H A Dlibbpf_probes.c222 const char *str_sec, size_t str_len) in libbpf__load_raw_btf()
230 .str_len = str_len, in libbpf__load_raw_btf()
235 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
242 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
221 libbpf__load_raw_btf(const char *raw_types, size_t types_len, const char *str_sec, size_t str_len) libbpf__load_raw_btf() argument
H A Dlibbpf_internal.h154 size_t str_len = strlen(str); in str_has_sfx() local
157 if (sfx_len > str_len) in str_has_sfx()
159 return strcmp(str + str_len - sfx_len, sfx) == 0; in str_has_sfx()
415 const char *str_sec, size_t str_len);
H A Dbtf.c221 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr()
254 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr()
261 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
277 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec()
279 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec()
281 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { in btf_parse_str_sec()
997 btf->start_str_off = base_btf->hdr->str_len; in btf_new_empty()
1015 btf->hdr->str_len in btf_new_empty()
[all...]
/third_party/node/src/
H A Dstring_bytes.cc653 size_t str_len = buflen / 2; in Encode() local
655 uint16_t* dst = node::UncheckedMalloc<uint16_t>(str_len); in Encode()
656 if (str_len != 0 && dst == nullptr) { in Encode()
660 for (size_t i = 0, k = 0; k < str_len; i += 2, k += 1) { in Encode()
667 return ExternTwoByteString::New(isolate, dst, str_len, error); in Encode()
678 isolate, reinterpret_cast<uint16_t*>(dst), str_len, error); in Encode()
681 isolate, reinterpret_cast<const uint16_t*>(buf), str_len, error); in Encode()
/third_party/node/test/js-native-api/3_callbacks/
H A D3_callbacks.c26 size_t str_len = strlen(str); in RunCallback() local
27 NODE_API_CALL(env, napi_create_string_utf8(env, str, str_len, argv)); in RunCallback()
/third_party/jerryscript/tests/unit-core/
H A Dtest-api-set-and-clear-error-flag.cpp23 compare_str (jerry_value_t value, const jerry_char_t *str_p, size_t str_len) in compare_str() argument
26 TEST_ASSERT (str_len == size); in compare_str()
29 TEST_ASSERT (!memcmp (str_p, str_buff, str_len)); in compare_str()
/third_party/libuv/src/win/
H A Dfs-event.c398 size_t str_len; in file_info_cmp() local
403 str_len = wcslen(str); in file_info_cmp()
409 if (str_len != (file_name_len / sizeof(WCHAR))) in file_info_cmp()
412 return _wcsnicmp(str, file_name, str_len); in file_info_cmp()
/third_party/mesa3d/src/glx/tests/
H A Dclientinfo_unittest.cpp123 uint32_t str_len, in xcb_glx_client_info()
131 gl_ext_string = new char[str_len]; in xcb_glx_client_info()
132 memcpy(gl_ext_string, string, str_len); in xcb_glx_client_info()
133 gl_ext_length = str_len; in xcb_glx_client_info()
120 xcb_glx_client_info(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version, uint32_t str_len, const char *string) xcb_glx_client_info() argument
/third_party/node/deps/openssl/openssl/apps/
H A Denc.c440 size_t str_len = strlen(str); in enc_main() local
500 if (!PKCS5_PBKDF2_HMAC(str, str_len, sptr, islen, in enc_main()
513 (unsigned char *)str, str_len, in enc_main()
526 OPENSSL_cleanse(str, str_len); in enc_main()
/third_party/node/deps/uv/src/win/
H A Dfs-event.c408 size_t str_len; in file_info_cmp() local
413 str_len = wcslen(str); in file_info_cmp()
419 if (str_len != (file_name_len / sizeof(WCHAR))) in file_info_cmp()
422 return _wcsnicmp(str, file_name, str_len); in file_info_cmp()
/third_party/openssl/apps/
H A Denc.c440 size_t str_len = strlen(str); in enc_main() local
500 if (!PKCS5_PBKDF2_HMAC(str, str_len, sptr, islen, in enc_main()
513 (unsigned char *)str, str_len, in enc_main()
526 OPENSSL_cleanse(str, str_len); in enc_main()
/third_party/libabigail/src/
H A Dabg-tools-utils.cc889 string::size_type str_len = str.length(), suffix_len = suffix.length(); in string_ends_with() local
891 if (str_len < suffix_len) in string_ends_with()
893 return str.compare(str_len - suffix_len, suffix_len, suffix) == 0; in string_ends_with()
1631 string::size_type str_len = str.length(), i = 0 ; in get_deb_name()
1633 for (; i < str_len; ++i) in get_deb_name()
1639 if (i == str_len) in get_deb_name()
1661 string::size_type str_len = str.length(), i = 0; in get_rpm_name()
1664 for (; i < str_len; ++i) in get_rpm_name()
1668 if ((next_index < str_len) && c == '-' && isdigit(str[next_index])) in get_rpm_name()
1672 if (i == str_len) in get_rpm_name()
[all...]
/third_party/libbpf/include/uapi/linux/
H A Dbtf.h21 __u32 str_len; /* length of string section */ member
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-cff1-table.hh1314 size_t str_len; in get_glyph_name() local
1319 str_len = byte_str.length; in get_glyph_name()
1325 str_len = ubyte_str.length; in get_glyph_name()
1327 if (!str_len) return false; in get_glyph_name()
1328 unsigned int len = hb_min (buf_len - 1, str_len); in get_glyph_name()

Completed in 21 milliseconds

123