Horde_Mime_Part::_findHeader PHP Method

_findHeader() protected static method

Find the location of the end of the header text.
protected static _findHeader ( string $text, string $eol ) : integer
$text string The text to search.
$eol string The EOL string.
return integer Header position.
    protected static function _findHeader($text, $eol)
    {
        $hdr_pos = strpos($text, $eol . $eol);
        return $hdr_pos === false ? strlen($text) : $hdr_pos;
    }