亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? native.php

?? WordPress的是一個最先進(jìn)的語義個人發(fā)布平臺
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/** * $Horde: framework/Text_Diff/Diff/Engine/native.php,v 1.10 2008/01/04 10:27:53 jan Exp $ * * Class used internally by Text_Diff to actually compute the diffs. This * class is implemented using native PHP code. * * The algorithm used here is mostly lifted from the perl module * Algorithm::Diff (version 1.06) by Ned Konz, which is available at: * http://www.perl.com/CPAN/authors/id/N/NE/NEDKONZ/Algorithm-Diff-1.06.zip * * More ideas are taken from: http://www.ics.uci.edu/~eppstein/161/960229.html * * Some ideas (and a bit of code) are taken from analyze.c, of GNU * diffutils-2.7, which can be found at: * ftp://gnudist.gnu.org/pub/gnu/diffutils/diffutils-2.7.tar.gz * * Some ideas (subdivision by NCHUNKS > 2, and some optimizations) are from * Geoffrey T. Dairiki <dairiki@dairiki.org>. The original PHP version of this * code was written by him, and is used/adapted with his permission. * * Copyright 2004-2008 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  Geoffrey T. Dairiki <dairiki@dairiki.org> * @package Text_Diff */class Text_Diff_Engine_native {    function diff($from_lines, $to_lines)    {        array_walk($from_lines, array('Text_Diff', 'trimNewlines'));        array_walk($to_lines, array('Text_Diff', 'trimNewlines'));        $n_from = count($from_lines);        $n_to = count($to_lines);        $this->xchanged = $this->ychanged = array();        $this->xv = $this->yv = array();        $this->xind = $this->yind = array();        unset($this->seq);        unset($this->in_seq);        unset($this->lcs);        // Skip leading common lines.        for ($skip = 0; $skip < $n_from && $skip < $n_to; $skip++) {            if ($from_lines[$skip] !== $to_lines[$skip]) {                break;            }            $this->xchanged[$skip] = $this->ychanged[$skip] = false;        }        // Skip trailing common lines.        $xi = $n_from; $yi = $n_to;        for ($endskip = 0; --$xi > $skip && --$yi > $skip; $endskip++) {            if ($from_lines[$xi] !== $to_lines[$yi]) {                break;            }            $this->xchanged[$xi] = $this->ychanged[$yi] = false;        }        // Ignore lines which do not exist in both files.        for ($xi = $skip; $xi < $n_from - $endskip; $xi++) {            $xhash[$from_lines[$xi]] = 1;        }        for ($yi = $skip; $yi < $n_to - $endskip; $yi++) {            $line = $to_lines[$yi];            if (($this->ychanged[$yi] = empty($xhash[$line]))) {                continue;            }            $yhash[$line] = 1;            $this->yv[] = $line;            $this->yind[] = $yi;        }        for ($xi = $skip; $xi < $n_from - $endskip; $xi++) {            $line = $from_lines[$xi];            if (($this->xchanged[$xi] = empty($yhash[$line]))) {                continue;            }            $this->xv[] = $line;            $this->xind[] = $xi;        }        // Find the LCS.        $this->_compareseq(0, count($this->xv), 0, count($this->yv));        // Merge edits when possible.        $this->_shiftBoundaries($from_lines, $this->xchanged, $this->ychanged);        $this->_shiftBoundaries($to_lines, $this->ychanged, $this->xchanged);        // Compute the edit operations.        $edits = array();        $xi = $yi = 0;        while ($xi < $n_from || $yi < $n_to) {            assert($yi < $n_to || $this->xchanged[$xi]);            assert($xi < $n_from || $this->ychanged[$yi]);            // Skip matching "snake".            $copy = array();            while ($xi < $n_from && $yi < $n_to                   && !$this->xchanged[$xi] && !$this->ychanged[$yi]) {                $copy[] = $from_lines[$xi++];                ++$yi;            }            if ($copy) {                $edits[] = &new Text_Diff_Op_copy($copy);            }            // Find deletes & adds.            $delete = array();            while ($xi < $n_from && $this->xchanged[$xi]) {                $delete[] = $from_lines[$xi++];            }            $add = array();            while ($yi < $n_to && $this->ychanged[$yi]) {                $add[] = $to_lines[$yi++];            }            if ($delete && $add) {                $edits[] = &new Text_Diff_Op_change($delete, $add);            } elseif ($delete) {                $edits[] = &new Text_Diff_Op_delete($delete);            } elseif ($add) {                $edits[] = &new Text_Diff_Op_add($add);            }        }        return $edits;    }    /**     * Divides the Largest Common Subsequence (LCS) of the sequences (XOFF,     * XLIM) and (YOFF, YLIM) into NCHUNKS approximately equally sized     * segments.     *     * Returns (LCS, PTS).  LCS is the length of the LCS. PTS is an array of     * NCHUNKS+1 (X, Y) indexes giving the diving points between sub     * sequences.  The first sub-sequence is contained in (X0, X1), (Y0, Y1),     * the second in (X1, X2), (Y1, Y2) and so on.  Note that (X0, Y0) ==     * (XOFF, YOFF) and (X[NCHUNKS], Y[NCHUNKS]) == (XLIM, YLIM).     *     * This function assumes that the first lines of the specified portions of     * the two files do not match, and likewise that the last lines do not     * match.  The caller must trim matching lines from the beginning and end     * of the portions it is going to specify.     */    function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks)    {        $flip = false;        if ($xlim - $xoff > $ylim - $yoff) {            /* Things seems faster (I'm not sure I understand why) when the             * shortest sequence is in X. */            $flip = true;            list ($xoff, $xlim, $yoff, $ylim)                = array($yoff, $ylim, $xoff, $xlim);        }        if ($flip) {            for ($i = $ylim - 1; $i >= $yoff; $i--) {                $ymatches[$this->xv[$i]][] = $i;            }        } else {            for ($i = $ylim - 1; $i >= $yoff; $i--) {                $ymatches[$this->yv[$i]][] = $i;            }        }        $this->lcs = 0;        $this->seq[0]= $yoff - 1;        $this->in_seq = array();        $ymids[0] = array();        $numer = $xlim - $xoff + $nchunks - 1;        $x = $xoff;        for ($chunk = 0; $chunk < $nchunks; $chunk++) {            if ($chunk > 0) {                for ($i = 0; $i <= $this->lcs; $i++) {                    $ymids[$i][$chunk - 1] = $this->seq[$i];                }            }            $x1 = $xoff + (int)(($numer + ($xlim - $xoff) * $chunk) / $nchunks);            for (; $x < $x1; $x++) {                $line = $flip ? $this->yv[$x] : $this->xv[$x];                if (empty($ymatches[$line])) {                    continue;                }                $matches = $ymatches[$line];                reset($matches);                while (list(, $y) = each($matches)) {                    if (empty($this->in_seq[$y])) {                        $k = $this->_lcsPos($y);                        assert($k > 0);                        $ymids[$k] = $ymids[$k - 1];                        break;                    }                }                while (list(, $y) = each($matches)) {                    if ($y > $this->seq[$k - 1]) {                        assert($y <= $this->seq[$k]);                        /* Optimization: this is a common case: next match is                         * just replacing previous match. */                        $this->in_seq[$this->seq[$k]] = false;                        $this->seq[$k] = $y;                        $this->in_seq[$y] = 1;                    } elseif (empty($this->in_seq[$y])) {                        $k = $this->_lcsPos($y);                        assert($k > 0);                        $ymids[$k] = $ymids[$k - 1];                    }                }            }        }        $seps[] = $flip ? array($yoff, $xoff) : array($xoff, $yoff);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本色道a无线码一区v| 波多野结衣亚洲一区| 欧美精品三级日韩久久| 亚洲一区二区三区精品在线| 欧美三级中文字幕在线观看| 丝袜亚洲精品中文字幕一区| 日韩亚洲欧美成人一区| 国产麻豆成人传媒免费观看| 国产精品美女一区二区在线观看| 99在线视频精品| 五月婷婷欧美视频| 久久亚洲免费视频| 91污在线观看| 午夜精品免费在线| 国产亚洲女人久久久久毛片| 波多野洁衣一区| 天堂一区二区在线| 久久久国产精品麻豆| 在线视频一区二区免费| 另类小说图片综合网| 中文字幕 久热精品 视频在线| 一本大道久久a久久精二百| 热久久免费视频| 国产喷白浆一区二区三区| 91黄色激情网站| 久久99精品久久久久久动态图| 中文子幕无线码一区tr| 欧美高清精品3d| av中文字幕一区| 男男gaygay亚洲| 亚洲青青青在线视频| 精品免费99久久| 欧洲一区在线观看| 国产成人一级电影| 日韩成人精品视频| 亚洲另类色综合网站| 欧美va亚洲va香蕉在线| 在线免费av一区| 国产精一区二区三区| 亚洲 欧美综合在线网络| 国产女主播一区| 欧美videofree性高清杂交| 在线观看亚洲精品视频| 国产a级毛片一区| 奇米色一区二区| 亚洲综合免费观看高清完整版在线| 精品国产区一区| 欧美视频完全免费看| 懂色av噜噜一区二区三区av| 日韩国产一二三区| 亚洲午夜av在线| 中文字幕一区在线| 亚洲国产精品成人久久综合一区 | 亚洲永久精品大片| 国产日韩成人精品| 欧美mv和日韩mv的网站| 欧美精品高清视频| 欧美色男人天堂| 91国内精品野花午夜精品 | 99久久99久久综合| 国产在线精品一区二区夜色 | 亚洲国产一二三| 亚洲三级在线观看| 亚洲国产精品传媒在线观看| 久久久亚洲欧洲日产国码αv| 9191久久久久久久久久久| 欧美亚洲国产怡红院影院| 色网综合在线观看| 91蜜桃免费观看视频| 99re在线精品| 97久久超碰国产精品电影| 不卡视频在线看| www.亚洲人| 91蜜桃视频在线| 欧洲精品在线观看| 欧美日韩国产美女| 欧美乱妇一区二区三区不卡视频| 欧美在线一区二区三区| 欧美日韩国产综合久久| 欧美精品自拍偷拍动漫精品| 欧美日韩成人在线| 7777精品伊人久久久大香线蕉最新版 | 亚洲日本va午夜在线电影| 国产精品国产三级国产普通话蜜臀| 国产午夜精品一区二区三区四区| 国产亚洲欧美一区在线观看| 中文av一区特黄| 亚洲视频香蕉人妖| 亚洲一区二区在线视频| 视频在线在亚洲| 久久激情综合网| 国产成人av自拍| 99riav久久精品riav| 在线欧美日韩国产| 777奇米四色成人影色区| 久久综合九色综合久久久精品综合 | 亚洲欧美日韩人成在线播放| 夜夜嗨av一区二区三区中文字幕| 午夜久久久久久久久久一区二区| 久久99日本精品| 成人在线综合网站| 欧美日韩亚洲另类| 久久久久久夜精品精品免费| 国产精品高清亚洲| 亚洲国产精品久久艾草纯爱 | 国产风韵犹存在线视精品| 不卡视频一二三| 欧美麻豆精品久久久久久| 久久久影院官网| 亚洲一区二区免费视频| 另类的小说在线视频另类成人小视频在线 | 国产亚洲精品久| 亚洲男人的天堂在线观看| 亚洲午夜在线观看视频在线| 国产一区二区h| 色综合久久综合网欧美综合网| 欧美精品在线视频| 日本一区二区免费在线| 亚洲风情在线资源站| 国产成人丝袜美腿| 欧美日韩国产一级二级| 国产精品伦理一区二区| 日韩高清欧美激情| 成人99免费视频| 日韩女优av电影| 亚洲尤物视频在线| 国产不卡视频在线观看| 欧美一区二区三区思思人| 国产精品久久久久久久浪潮网站| 日韩不卡在线观看日韩不卡视频| 99精品热视频| 国产日产欧美精品一区二区三区| 天堂午夜影视日韩欧美一区二区| 91一区二区在线观看| 久久一区二区三区四区| 午夜精品爽啪视频| 91小视频免费看| 亚洲国产精品精华液ab| 精品亚洲porn| 91精品国产色综合久久不卡电影| 亚洲人成影院在线观看| 国产91丝袜在线播放九色| 欧美一区二区福利视频| 五月激情丁香一区二区三区| 97久久精品人人澡人人爽| 国产精品视频看| 国产另类ts人妖一区二区| 精品日本一线二线三线不卡| 天天影视色香欲综合网老头| 91国偷自产一区二区三区成为亚洲经典| 国产欧美视频在线观看| 国产精品一区二区久久不卡| 日韩免费高清av| 男人的天堂久久精品| 91精品一区二区三区久久久久久| 亚洲一本大道在线| 欧美视频日韩视频在线观看| 一区二区免费视频| 色悠悠久久综合| 亚洲精品第1页| 在线观看中文字幕不卡| 亚洲一区二区三区四区的| 色综合天天天天做夜夜夜夜做| 欧美韩国日本不卡| eeuss鲁片一区二区三区| 国产精品亲子伦对白| 成人综合激情网| 亚洲欧洲成人自拍| 色美美综合视频| 亚洲一二三四区| 欧美日韩精品电影| 美女网站色91| 国产天堂亚洲国产碰碰| 成人av综合一区| 亚洲久草在线视频| 欧美日韩国产高清一区| 奇米影视在线99精品| 久久婷婷国产综合国色天香| 国产 欧美在线| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 蜜桃91丨九色丨蝌蚪91桃色| 日韩一区二区高清| 久久99国产精品成人| 国产日韩v精品一区二区| kk眼镜猥琐国模调教系列一区二区| 1024成人网| 欧美日韩国产在线观看| 极品美女销魂一区二区三区| 国产偷国产偷精品高清尤物 | 日韩精品中文字幕一区二区三区| 国内精品嫩模私拍在线| 99亚偷拍自图区亚洲| 日韩电影一区二区三区四区| 欧美一区二区三区成人| 麻豆精品一区二区三区| 久久久精品综合| 91美女蜜桃在线| 日韩av一二三| 国产欧美在线观看一区| 91高清视频在线|