public function getNextEol($position = self::CURRENT_POSITION)
    {
        if (self::CURRENT_POSITION === $position) {
            $position = $this->position;
        }

        $eolPosition = strpos($this->data, "\n", $position);
        if (false === $eolPosition) {
            $eolPosition = strlen($this->data) - 1;
        }

        return $eolPosition;
    }
public function getNextEol($position = self::CURRENT_POSITION)
    {
        if (self::CURRENT_POSITION === $position) {
            $position = $this->position;
        }

        $eolPosition = strpos($this->data, "\n", $position);
        if (false === $eolPosition) {
            $eolPosition = strlen($this->data) - 1;
        }

        return $eolPosition;
    }
public function getNextEol ( $ position = self :: CURRENT_POSITION ) { if ( self :: CURRENT_POSITION === $ position ) { $ position = $ this -> position ; } $ eolPosition = strpos ( $ this -> data , "\n" , $ position ) ; if ( false === $ eolPosition ) { $ eolPosition = strlen ( $ this -> data ) - 1 ; } return $ eolPosition ; }
Get the position of the next EOL.

@param int $position
@return int
Get the position of the next EOL .