資源簡介
淘寶客Cms最新授權版:自動采集淘寶優惠券商品,高傭金+公眾號直播+代理系統 使用說明:訪問/install.php直接安裝即可
代碼片段和文件信息
/*
?*?YUI?Compressor
?*?http://developer.yahoo.com/yui/compressor/
?*?Author:?Julien?Lecomte?-??http://www.julienlecomte.net/
?*?Author:?Isaac?Schlueter?-?http://foohack.com/
?*?Author:?Stoyan?Stefanov?-?http://phpied.com/
?*?Copyright?(c)?2011?Yahoo!?Inc.??All?rights?reserved.
?*?The?copyrights?embodied?in?the?content?of?this?file?are?licensed
?*?by?Yahoo!?Inc.?under?the?BSD?(revised)?open?source?license.
?*/
package?com.yahoo.platform.yui.compressor;
import?java.io.IOException;
import?java.io.Reader;
import?java.io.Writer;
import?java.util.regex.Pattern;
import?java.util.regex.Matcher;
import?java.util.ArrayList;
public?class?CssCompressor?{
????private?StringBuffer?srcsb?=?new?StringBuffer();
????public?CssCompressor(Reader?in)?throws?IOException?{
????????//?Read?the?stream...
????????int?c;
????????while?((c?=?in.read())?!=?-1)?{
????????????srcsb.append((char)?c);
????????}
????}
????//?Leave?data?urls?alone?to?increase?parse?performance.
????protected?String?extractDataUrls(String?css?ArrayList?preservedTokens)?{
???? int?maxIndex?=?css.length()?-?1;
????????int?appendIndex?=?0;
???? StringBuffer?sb?=?new?StringBuffer();
????????Pattern?p?=?Pattern.compile(“url\\(\\s*([\“‘]?)data\\:“);
????????Matcher?m?=?p.matcher(css);
????????
????????/*?
?????????*?Since?we?need?to?account?for?non-base64?data?urls?we?need?to?handle?
?????????*?‘?and?)?being?part?of?the?data?string.?Hence?switching?to?indexOf
?????????*?to?determine?whether?or?not?we?have?matching?string?terminators?and
?????????*?handling?sb?appends?directly?instead?of?using?matcher.append*?methods.
?????????*/
????????while?(m.find())?{
???????? int?startIndex?=?m.start()?+?4;?? //?“url(“.length()
???? String?terminator?=?m.group(1);?????//?‘?“?or?empty?(not?quoted)
????
???? if?(terminator.length()?==?0)?{
???? ? terminator?=?“)“;
???? }
???? boolean?foundTerminator?=?false;
???? int?endIndex?=?m.end()?-?1;
???? while(foundTerminator?==?false?&&?endIndex+1?<=?maxIndex)?{
???? endIndex?=?css.indexOf(terminator?endIndex+1);
???? if?((endIndex?>?0)?&&?(css.charAt(endIndex-1)?!=?‘\\‘))?{
???? foundTerminator?=?true;
???? if?(!“)“.equals(terminator))?{
???? endIndex?=?css.indexOf(“)“?endIndex);?
???? }
???? }
???? }
???? //?Enough?searching?start?moving?stuff?over?to?the?buffer
sb.append(css.substring(appendIndex?m.start()));
???? if?(foundTerminator)?{
???? String?token?=?css.substring(startIndex?endIndex);
???? token?=?token.replaceAll(“\\s+“?““);
???? preservedTokens.add(token);
???? String?preserver?=?“url(___YUICSSMIN_PRESERVED_TOKEN_“?+?(preservedTokens.size()?-?1)?+?“___)“;
???? sb.append(preserver);
???? appendIndex?=?endIndex?+?1;
???? }?else?{
???? //?No?end?terminator?found?re-add?the?whole?match.?Should?we?throw/warn?here?
???? sb.append(css.substring(m.start()?m.end()));
???? appendIndex?=?m.end();
???? }
????????}
????????sb.append(css.substring(appendIndex));
????????return?sb.toString();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????254??2018-03-23?13:17??install.php
?????文件????????480??2018-03-23?13:17??robots.txt
????..A..H.??????6148??2018-03-25?16:57??app\.DS_Store
?????文件??????23827??2018-03-23?13:17??app\Common\common.php
?????文件???????3389??2018-03-23?13:16??app\Extend\Driver\TagLib\TagLibYh.class.php
?????文件??????15933??2018-03-23?13:16??app\Extend\Model\RelationModel.class.php
?????文件????????635??2018-03-23?13:16??app\Extend\README.txt
?????文件????????292??2018-03-23?13:17??app\Extend\Vendor\min\config-test.php
?????文件???????6850??2018-03-23?13:17??app\Extend\Vendor\min\config.php
?????文件????????661??2018-03-23?13:17??app\Extend\Vendor\min\groupsConfig.php
?????文件???????1886??2018-03-23?13:17??app\Extend\Vendor\min\index.php
?????文件??????30446??2018-03-23?13:17??app\Extend\Vendor\min\lib\CSSmin.php
?????文件???????5089??2018-03-23?13:17??app\Extend\Vendor\min\lib\DooDigestAuth.php
?????文件??????43622??2018-03-23?13:17??app\Extend\Vendor\min\lib\FirePHP.php
?????文件??????11781??2018-03-23?13:17??app\Extend\Vendor\min\lib\HTTP\ConditionalGet.php
?????文件??????10673??2018-03-23?13:17??app\Extend\Vendor\min\lib\HTTP\Encoder.php
?????文件??????15537??2018-03-23?13:17??app\Extend\Vendor\min\lib\JSMin.php
?????文件??????52368??2018-03-23?13:17??app\Extend\Vendor\min\lib\JSMinPlus.php
?????文件???????2728??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Build.php
?????文件???????2746??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Cache\APC.php
?????文件???????4861??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Cache\File.php
?????文件???????3110??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Cache\Memcache.php
?????文件???????2801??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Cache\XCache.php
?????文件???????2765??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Cache\ZendPlatform.php
?????文件???????3744??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\ClosureCompiler.php
?????文件???????2663??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\CommentPreserver.php
?????文件???????7034??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Controller\ba
?????文件???????2095??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Controller\Files.php
?????文件???????2804??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Controller\Groups.php
?????文件???????9035??2018-03-23?13:17??app\Extend\Vendor\min\lib\Minify\Controller\MinApp.php
............此處省略3286個文件信息
- 上一篇:互聯網科技信息類網站織夢模板(帶手機端)
- 下一篇:魔眾企業VI系統 v1.2.0
評論
共有 條評論