Searched refs:final_length (Results 1 – 3 of 3) sorted by relevance
788 size_t final_length = str_length; in DoReplaceSubstringsAfterOffset() local792 final_length += expansion; in DoReplaceSubstringsAfterOffset()800 str->resize(final_length); in DoReplaceSubstringsAfterOffset()803 for (size_t prev_match = str_length, write_offset = final_length; ; in DoReplaceSubstringsAfterOffset()
627 int skip_next_lf = 0, needed_length = strlen(s) + 2, final_length; in translate_newlines() local658 final_length = current - buf + 1; in translate_newlines()659 if (final_length < needed_length && final_length) in translate_newlines()661 buf = PyMem_REALLOC(buf, final_length); in translate_newlines()
707 size_t needed_length = strlen(s) + 2, final_length; in translate_newlines() local738 final_length = current - buf + 1; in translate_newlines()739 if (final_length < needed_length && final_length) in translate_newlines()741 buf = PyMem_REALLOC(buf, final_length); in translate_newlines()