Vergleich inc/3rdparty/diff/Diff.php - 1.8.2 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 7Zeile 7
 * <dairiki@dairiki.org>, and is used/adapted with his permission.
*
* Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki.org>

 * <dairiki@dairiki.org>, and is used/adapted with his permission.
*
* Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki.org>

 * Copyright 2004-2011 Horde LLC (http://www.horde.org/)

 * Copyright 2004-2017 Horde LLC (http://www.horde.org/)

 *
* See the enclosed file COPYING for license information (LGPL). If you did
* not receive this file, see http://www.horde.org/licenses/lgpl21.

 *
* See the enclosed file COPYING for license information (LGPL). If you did
* not receive this file, see http://www.horde.org/licenses/lgpl21.

Zeile 81Zeile 81

/**
* returns the number of new (added) lines in a given diff.


/**
* returns the number of new (added) lines in a given diff.

     *
* @since Text_Diff 1.1.0

 
     *
* @return integer The number of new lines
*/

     *
* @return integer The number of new lines
*/

Zeile 100Zeile 98

/**
* Returns the number of deleted (removed) lines in a given diff.


/**
* Returns the number of deleted (removed) lines in a given diff.

     *
* @since Text_Diff 1.1.0

 
     *
* @return integer The number of deleted lines
*/

     *
* @return integer The number of deleted lines
*/

Zeile 221Zeile 217
     * @param string $line  The line to trim.
* @param integer $key The index of the line in the array. Not used.
*/

     * @param string $line  The line to trim.
* @param integer $key The index of the line in the array. Not used.
*/

    static public function trimNewlines(&$line, $key)

    public static function trimNewlines(&$line, $key)

    {
$line = str_replace(array("\n", "\r"), '', $line);
}

    {
$line = str_replace(array("\n", "\r"), '', $line);
}