'Init method.
Arguments:
string: The string to work with.'

def __init__(self, string):

    self._string = string
    self._line_start_indexes = self._process_line_breaks(string)
    self.eof_index = len(string)
