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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? native.php

?? WordPress的是一個最先進的語義個人發布平臺
?? 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);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美调教femdomvk| 日韩激情视频在线观看| 国产精品影视在线观看| 欧美mv日韩mv亚洲| 国产自产视频一区二区三区| 国产女主播一区| 欧美一区二区三区公司| 国模套图日韩精品一区二区| 国产色产综合色产在线视频| 不卡在线观看av| 亚洲一区二区三区视频在线播放| 91精品欧美一区二区三区综合在| 久久97超碰色| 国产精品久久久久久久久久免费看| 91视频.com| 琪琪久久久久日韩精品| 久久精品日产第一区二区三区高清版| hitomi一区二区三区精品| 亚洲午夜电影在线观看| 久久久久久亚洲综合影院红桃| 99久久国产综合精品色伊| 五月天欧美精品| 国产精品色在线| 欧美日韩不卡在线| 高清shemale亚洲人妖| 亚洲一区二区高清| 久久久亚洲欧洲日产国码αv| 91福利资源站| 国产精品自拍三区| 亚洲超碰97人人做人人爱| 久久久蜜桃精品| 欧美日韩一区二区三区四区| 国产精品亚洲视频| 午夜精品一区二区三区免费视频| 26uuu国产一区二区三区| 在线观看免费亚洲| 国产成人午夜视频| 视频一区国产视频| 亚洲欧洲国产日韩| 久久亚洲精品小早川怜子| 欧美亚洲禁片免费| caoporn国产精品| 国模套图日韩精品一区二区| 调教+趴+乳夹+国产+精品| 国产精品久久三| 337p日本欧洲亚洲大胆色噜噜| 欧美日韩午夜影院| 91国在线观看| aaa亚洲精品| 国产精品一区二区视频| 日本三级韩国三级欧美三级| 亚洲一线二线三线视频| 国产精品嫩草久久久久| 精品久久久久av影院| 欧美精选一区二区| 欧美在线你懂得| 91社区在线播放| 成人黄色免费短视频| 国产精品一区二区不卡| 久久精品久久99精品久久| 午夜精品久久久久久久久| 亚洲男人天堂av网| 国产精品日韩成人| 日本一区二区三级电影在线观看| 欧美精品一区男女天堂| 日韩区在线观看| 日韩一区二区三区免费看 | 国产精品996| 老鸭窝一区二区久久精品| 午夜精品一区二区三区电影天堂| 成人美女视频在线看| 国产.欧美.日韩| 国产91精品露脸国语对白| 国产二区国产一区在线观看| 国产伦精品一区二区三区免费迷| 精品综合免费视频观看| 久久国产福利国产秒拍| 国产一区不卡在线| 国产91在线观看| av成人免费在线观看| 色综合久久久久综合体| 欧美性xxxxx极品少妇| 欧美三级欧美一级| 欧美久久久久久久久久| 日韩一级片在线观看| 欧美精品一区二区三| 国产三级久久久| 日韩一区有码在线| 亚洲国产乱码最新视频| 日韩avvvv在线播放| 老司机免费视频一区二区三区| 久草精品在线观看| 国产风韵犹存在线视精品| 99久久亚洲一区二区三区青草| 99久久国产免费看| 欧美日韩综合一区| 日韩欧美中文一区二区| 久久九九99视频| 综合分类小说区另类春色亚洲小说欧美| 亚洲视频精选在线| 日韩影院在线观看| 国产99久久久国产精品免费看| 99久久er热在这里只有精品15| 欧美视频完全免费看| 日韩欧美亚洲国产另类| 欧美国产日韩一二三区| 一区二区在线观看视频| 免费在线成人网| 粉嫩久久99精品久久久久久夜| 色诱亚洲精品久久久久久| 欧美精品久久久久久久多人混战 | 久久国产精品无码网站| 国产麻豆成人传媒免费观看| 成人av资源在线| 欧美日韩二区三区| 欧美极品美女视频| 日本中文一区二区三区| 成人av在线资源| 欧美一级欧美一级在线播放| 国产精品丝袜久久久久久app| 午夜精品视频在线观看| www.在线成人| 精品久久一区二区| 洋洋av久久久久久久一区| 国产一区三区三区| 欧美精品在线一区二区三区| 国产精品乱人伦| 精品影视av免费| 欧美在线一二三四区| 国产精品日韩成人| 国产一区二区精品久久| 欧美日韩精品综合在线| 国产精品精品国产色婷婷| 日韩不卡手机在线v区| 91视频精品在这里| 欧美激情一区二区| 看国产成人h片视频| 欧美日韩精品免费观看视频 | 日韩高清不卡一区二区| 白白色亚洲国产精品| www一区二区| 日韩黄色免费电影| 欧美亚洲综合网| 亚洲欧美日韩在线| 成人精品免费看| 精品成人在线观看| 蜜臀av一级做a爰片久久| 欧美视频一区二区三区| 亚洲精品国产品国语在线app| 粉嫩一区二区三区在线看| 久久亚洲二区三区| 久久国产精品露脸对白| 91精品国产乱码久久蜜臀| 亚洲国产精品嫩草影院| 色噜噜狠狠色综合中国| 国产精品福利在线播放| 成人精品鲁一区一区二区| 日本一区免费视频| 成人免费看的视频| 中文字幕第一页久久| 不卡的看片网站| 国产精品网站导航| av在线不卡电影| 亚洲免费毛片网站| 一本大道久久a久久精品综合| 中文字幕一区在线观看视频| 99久久精品久久久久久清纯| 一区免费观看视频| 91麻豆精品在线观看| 夜夜亚洲天天久久| 欧美中文字幕不卡| 欧美a一区二区| 久久综合九色欧美综合狠狠| 国产精品一区二区免费不卡| 国产欧美日韩不卡| av高清久久久| 亚洲精品日韩专区silk| 欧洲人成人精品| 日韩电影在线观看一区| 日韩欧美一级精品久久| 激情另类小说区图片区视频区| 国产午夜精品久久久久久久 | 国产精品日韩成人| 色综合久久综合网97色综合 | 国产成人日日夜夜| 亚洲天天做日日做天天谢日日欢| 色又黄又爽网站www久久| 日韩精品电影在线观看| 久久综合99re88久久爱| 99久久久国产精品免费蜜臀| 亚洲五码中文字幕| 337p粉嫩大胆色噜噜噜噜亚洲| 波多野结衣中文字幕一区二区三区 | 久久99精品久久久久久| 日本一区二区三区高清不卡| 日本高清不卡在线观看| 蜜臀av性久久久久蜜臀av麻豆| 国产亚洲精品久| 在线观看亚洲专区| 久久成人羞羞网站|