'Gets the index of the end of the line of the given index.
Arguments:
index: The index into the original string.
Returns:
The index of the end of the line of the given index.'

def index_to_line_end_index(self, index):

    line_number = self.index_to_line_number(index)
    return self.line_number_to_end_index(line_number)
