Home
last modified time | relevance | path

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

12

/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/
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/c-ares/
Dares_parse_txt_reply.c57 size_t substr_len, str_len; in ares_parse_txt_reply() local
162 str_len = 0; in ares_parse_txt_reply()
168 memcpy ((char *) txt_curr->txt + str_len, strptr, substr_len); in ares_parse_txt_reply()
169 str_len += substr_len; in ares_parse_txt_reply()
/external/selinux/libsepol/cil/src/
Dcil.c1197 size_t str_len = 0; in cil_userprefixes_to_string() local
1215str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string()
1218 *size = str_len * sizeof(char); in cil_userprefixes_to_string()
1219 str_len++; in cil_userprefixes_to_string()
1220 str_tmp = cil_malloc(str_len * sizeof(char)); in cil_userprefixes_to_string()
1227 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1229 str_len -= buf_pos; in cil_userprefixes_to_string()
1322 int str_len = 0; in __cil_level_strlen() local
1328 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1331 str_len++; /* initial ":" */ in __cil_level_strlen()
[all …]
Dcil_post.h36 int str_len; member
Dcil_post.c87 fc->str_len = 0; in cil_post_fc_fill_data()
111 fc->str_len++; in cil_post_fc_fill_data()
139 } else if (a_data->str_len < b_data->str_len) { in cil_post_filecon_compare()
141 } else if (b_data->str_len < a_data->str_len) { in cil_post_filecon_compare()
/external/boringssl/src/crypto/err/
Derr_test.cc102 size_t str_len = strlen(str); in HasSuffix() local
103 if (str_len < suffix_len) { in HasSuffix()
106 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/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/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/strace/
Dutil.c454 const size_t str_len = strlen(str); in getfdinode() local
455 if (str_len && str[str_len - 1] == ']') in getfdinode()
/external/pdfium/core/fxcrt/
Dfx_basic_bstring.cpp856 FX_STRSIZE str_len = len >= 0 ? len : FXSYS_wcslen(str); in FromUnicode() local
857 return FromUnicode(CFX_WideString(str, str_len)); in FromUnicode()
/external/skia/third_party/lua/src/
Dlstrlib.c37 static int str_len (lua_State *L) { in str_len() function
988 {"len", 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/skia/src/ports/
DSkFontHost_win.cpp1683 size_t str_len = ::MultiByteToWideChar(CP_UTF8, 0, familyName, in logfont_for_name() local
1687 wchar_t *wideFamilyName = new wchar_t[str_len]; in logfont_for_name()
1690 wideFamilyName, str_len); in logfont_for_name()
/external/mesa3d/src/gtest/src/
Dgtest.cc1628 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
1630 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
1631 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest.cc1628 const size_t str_len = str.length(); in EndsWithCaseInsensitive() local
1630 return (str_len >= suffix_len) && in EndsWithCaseInsensitive()
1631 CaseInsensitiveCStringEquals(str.c_str() + str_len - suffix_len, in EndsWithCaseInsensitive()

12