資源簡介
本系統下載安裝包已被移除,請自行編寫后臺系統!已下載安裝使用的朋友有任何相關問題請自行解決或者放棄使用本系統!本人不再回答任何有關本系統的任何問題!
以上為后臺原作者申明,因此,請下載的朋友自行解決出現的問題,請勿去騷擾原作者,僅供tp愛好者學習使用,不喜勿下。

代碼片段和文件信息
/*
?*?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();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-04-10?23:25??PHP-Amateur_Common_System\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\
?????目錄???????????0??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Common\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\Conf\
?????文件????????2891??2013-04-16?19:23??PHP-Amateur_Common_System\Admin\Conf\config.php
?????目錄???????????0??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lang\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\Lib\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\Lib\Action\
?????文件????????8619??2013-04-16?15:10??PHP-Amateur_Common_System\Admin\Lib\Action\AccessAction.class.php
?????文件????????6558??2013-04-17?13:02??PHP-Amateur_Common_System\Admin\Lib\Action\CommonAction.class.php
?????文件????????4207??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Action\IndexAction.class.php
?????文件?????????124??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Action\MemberAction.class.php
?????文件????????2339??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Action\NewsAction.class.php
?????文件????????3699??2013-04-26?20:03??PHP-Amateur_Common_System\Admin\Lib\Action\PublicAction.class.php
?????文件???????22198??2013-03-26?13:48??PHP-Amateur_Common_System\Admin\Lib\Action\SysDataAction.class.php
?????文件????????3098??2013-04-26?19:36??PHP-Amateur_Common_System\Admin\Lib\Action\WebinfoAction.class.php
?????目錄???????????0??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Behavior\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\Lib\Model\
?????文件????????7026??2013-04-16?19:30??PHP-Amateur_Common_System\Admin\Lib\Model\AccessModel.class.php
?????文件????????1106??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Model\IndexModel.class.php
?????文件????????3946??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Model\NewsModel.class.php
?????文件????????3339??2013-04-26?20:18??PHP-Amateur_Common_System\Admin\Lib\Model\PublicModel.class.php
?????文件????????6124??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Model\SysDataModel.class.php
?????文件?????????114??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Model\WebinfoModel.class.php
?????目錄???????????0??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Lib\Widget\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\Tpl\
?????目錄???????????0??2013-04-22?19:58??PHP-Amateur_Common_System\Admin\Tpl\Access\
?????文件????????3694??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Tpl\Access\addAdmin.html
?????文件????????5973??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Tpl\Access\changeRole.html
?????文件????????4056??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Tpl\Access\editNode.html
?????文件????????2834??2013-03-25?16:15??PHP-Amateur_Common_System\Admin\Tpl\Access\editRole.html
............此處省略657個文件信息
- 上一篇:排隊買票多線程問題
- 下一篇:衛星通信知識點總結不包含計算題
評論
共有 條評論