Lines Matching refs:str_len
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
118 while ((j < str_len) && (maxcount-- > 0)) { in stringlib_split_char()
119 for(; j < str_len; j++) { in stringlib_split_char()
136 if (i <= str_len) { in stringlib_split_char()
137 SPLIT_ADD(str, i, str_len); in stringlib_split_char()
149 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split() argument
161 return stringlib_split_char(str_obj, str, str_len, sep[0], maxcount); in stringlib_split()
169 pos = fastsearch(str+i, str_len-i, sep, sep_len, -1, FAST_SEARCH); in stringlib_split()
185 SPLIT_ADD(str, i, str_len); in stringlib_split()
197 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rsplit_whitespace() argument
207 i = j = str_len - 1; in stringlib_rsplit_whitespace()
216 if (j == str_len - 1 && i < 0 && STRINGLIB_CHECK_EXACT(str_obj)) { in stringlib_rsplit_whitespace()
247 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rsplit_char() argument
258 i = j = str_len - 1; in stringlib_rsplit_char()
291 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rsplit() argument
303 return stringlib_rsplit_char(str_obj, str, str_len, sep[0], maxcount); in stringlib_rsplit()
309 j = str_len; in stringlib_rsplit()
340 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_splitlines() argument
359 for (i = j = 0; i < str_len; ) { in stringlib_splitlines()
363 while (i < str_len && !STRINGLIB_ISLINEBREAK(str[i])) in stringlib_splitlines()
368 if (i < str_len) { in stringlib_splitlines()
369 if (str[i] == '\r' && i + 1 < str_len && str[i+1] == '\n') in stringlib_splitlines()
377 if (j == 0 && eol == str_len && STRINGLIB_CHECK_EXACT(str_obj)) { in stringlib_splitlines()