Vergleich inc/3rdparty/diff/Diff.php - 1.4.1 - 1.4.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 50Zeile 50

require_once MYBB_ROOT.'inc/3rdparty/diff/Diff/Engine/' . $engine . '.php';
$class = 'Text_Diff_Engine_' . $engine;


require_once MYBB_ROOT.'inc/3rdparty/diff/Diff/Engine/' . $engine . '.php';
$class = 'Text_Diff_Engine_' . $engine;

        $diff_engine = &new $class();

        $diff_engine = new $class();


$this->_edits = call_user_func_array(array($diff_engine, 'diff'), $params);
}


$this->_edits = call_user_func_array(array($diff_engine, 'diff'), $params);
}

Zeile 68Zeile 68
     *
* Example:
* <code>

     *
* Example:
* <code>

     * $diff = &new Text_Diff($lines1, $lines2);

     * $diff = new Text_Diff($lines1, $lines2);

     * $rev = $diff->reverse();
* </code>
*

     * $rev = $diff->reverse();
* </code>
*

Zeile 304Zeile 304

function &reverse()
{


function &reverse()
{

        $reverse = &new Text_Diff_Op_copy($this->final, $this->orig);

        $reverse = new Text_Diff_Op_copy($this->final, $this->orig);

        return $reverse;
}


        return $reverse;
}


Zeile 326Zeile 326

function &reverse()
{


function &reverse()
{

        $reverse = &new Text_Diff_Op_add($this->orig);

        $reverse = new Text_Diff_Op_add($this->orig);

        return $reverse;
}


        return $reverse;
}


Zeile 348Zeile 348

function &reverse()
{


function &reverse()
{

        $reverse = &new Text_Diff_Op_delete($this->final);

        $reverse = new Text_Diff_Op_delete($this->final);

        return $reverse;
}


        return $reverse;
}


Zeile 370Zeile 370

function &reverse()
{


function &reverse()
{

        $reverse = &new Text_Diff_Op_change($this->final, $this->orig);

        $reverse = new Text_Diff_Op_change($this->final, $this->orig);

        return $reverse;
}


        return $reverse;
}