Current File : /customers/3/5/c/campinoeksjo.se/httpd.www/wp-includes/Text/Diff/Engine/xdiff.php
<?php
/**
 * Class used internally by Diff to actually compute the diffs.
 *
 * This class uses the xdiff PECL package (http://pecl.php.net/package/xdiff)
 * to compute the differences between the two input arrays.
 *
 * Copyright 2004-2010 The Horde Project (http://www.horde.org/)
 *
 * See the enclosed file COPYING for license information (LGPL). If you did
 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
 *
 * @author  Jon Parise <jon@horde.org>
 * @package Text_Diff
 */
class Text_Diff_Engine_xdiff {

    /**
     */
    function diff($from_lines, $to_lines)
    {
        array_walk($from_lines, array('Text_Diff', 'trimNewlines'));
        array_walk($to_lines, array('Text_Diff', 'trimNewlines'));

        /* Convert the two input arrays into strings for xdiff processing. */
        $from_string = implode("\n", $from_lines);
        $to_string = implode("\n", $to_lines);

        /* Diff the two strings and convert the result to an array. */
        $diff = xdiff_string_diff($from_string, $to_string, count($to_lines));
        $diff = explode("\n", $diff);

        /* Walk through the diff one line at a time.  We build the $edits
         * array of diff operations by reading the first character of the
         * xdiff output (which is in the "unified diff" format).
         *
         * Note that we don't have enough information to detect "changed"
         * lines using this approach, so we can't add Text_Diff_Op_changed
         * instances to the $edits array.  The result is still perfectly
         * valid, albeit a little less descriptive and efficient. */
        $edits = array();
        foreach ($diff as $line) {
            if (!strlen($line)) {
                continue;
            }
            switch ($line[0]) {
            case ' ':
                $edits[] = new Text_Diff_Op_copy(array(substr($line, 1)));
                break;

            case '+':
                $edits[] = new Text_Diff_Op_add(array(substr($line, 1)));
                break;

            case '-':
                $edits[] = new Text_Diff_Op_delete(array(substr($line, 1)));
                break;
            }
        }

        return $edits;
    }

}
Campino Eksjö | Stans Bästa Pizzeria!
Välkommen

Vi Gör De Bästa Pizzorna i Stan!

Välkommen till Pizzeria Campino i Eksjö!
Här serverar vi pizza, kebab, sallad, a la carté och är belägna i hjärtat mitt i Eksjö Stad.

Vi har många års av erfarenhet i pizzabranschen och lovar er en härlig matupplevelse!
Självklart jobbar vi endast marknadens bästa råvaror, alltid det bästa för Campinos kunder.

/Campino

pizza_image

Pizzameny

             

Dagens Lunch 120:-

Måndag-Fredag 11.00 -14.00

VALFRI Maträtt inkl. dricka, Sallad, Bröd och Kaffe

Recensioner på Facebook

Så säger våra kunder om oss.

Kvalité

Vi jobbar endast med bra råvaror på Pizzeria Campino.

Snabbt & Bra

Hos oss går det undan, vi jobbar snabbt och effektivt.

Erfarenhet

Vi vet vad vi gör, vi har varit i branschen över 20år.

Allt från grunden.

På pizzeria Campino kör vi inte halvfabrikat, här gör vi allt från grunden.

Följ Oss på Sociala Medier

Gilla oss på Facebook

+