Lines Matching refs:result_len
243 Py_ssize_t self_len, result_len; in stringlib_replace_interleave() local
267 result_len = count * to_len + self_len; in stringlib_replace_interleave()
268 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_interleave()
313 Py_ssize_t self_len, result_len; in stringlib_replace_delete_single_character() local
325 result_len = self_len - count; /* from_len == 1 */ in stringlib_replace_delete_single_character()
326 assert(result_len>=0); in stringlib_replace_delete_single_character()
328 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_delete_single_character()
358 Py_ssize_t self_len, result_len; in stringlib_replace_delete_substring() local
374 result_len = self_len - (count * from_len); in stringlib_replace_delete_substring()
375 assert (result_len>=0); in stringlib_replace_delete_substring()
377 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_delete_substring()
510 Py_ssize_t self_len, result_len; in stringlib_replace_single_character() local
530 result_len = self_len + count * (to_len - 1); in stringlib_replace_single_character()
532 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_single_character()
574 Py_ssize_t self_len, result_len; in stringlib_replace_substring() local
597 result_len = self_len + count * (to_len - from_len); in stringlib_replace_substring()
599 result = STRINGLIB_NEW(NULL, result_len); in stringlib_replace_substring()