private function isEndOfLine($i) {
        $ch = $this->data[$i];

        if ($this->getLineEndingModeCrlf()) {
            if ($ch=="\r") {
                $more_ch = $i + 1 < strlen($this->data);

                if ($more_ch) {
                    $next_n = $this->data[$i + 1] == "\n";

                    if ($next_n) return true;
                }
            }
        } else {
            if ($ch=="\n") return true;
        }
        return false;
    }