資源簡介
owncloud 8.0.16 for windows是最后一個兼容windows系列服務版本的個人私有云服務器代碼了。代碼為php5.3以上支持,官方已經不再有更新版本了。
代碼片段和文件信息
/*
?*?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??2016-11-08?05:36??owncloud\
?????目錄???????????0??2016-11-08?05:36??owncloud\l10n\
?????文件????????4858??2016-11-08?05:36??owncloud\l10n\l10n.pl
?????目錄???????????0??2016-11-08?05:36??owncloud\l10n\.tx\
?????文件????????1441??2016-11-08?05:36??owncloud\l10n\.tx\config
?????文件???????34520??2016-11-08?05:36??owncloud\COPYING-AGPL
?????文件?????????477??2016-11-08?05:36??owncloud\AUTHORS
?????文件?????????283??2016-11-08?05:36??owncloud\occ
?????目錄???????????0??2016-11-08?05:36??owncloud\config\
?????文件???????28866??2016-11-08?05:36??owncloud\config\config.sample.php
?????文件?????????225??2016-11-08?05:36??owncloud\config\.htaccess
?????目錄???????????0??2016-11-08?05:36??owncloud\themes\
?????文件?????????580??2016-11-08?05:36??owncloud\themes\README
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\mrclay\
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\
?????文件????????1558??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\LICENSE.txt
?????文件?????????624??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\UPGRADING.txt
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\
?????文件???????31378??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\CSSmin.php
?????文件???????43622??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\FirePHP.php
?????文件???????52368??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\JSMinPlus.php
?????文件???????23589??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\Minify.php
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\HTTP\
?????文件???????10673??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\HTTP\Encoder.php
?????文件???????11781??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\HTTP\ConditionalGet.php
?????文件???????15801??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\JSMin.php
?????目錄???????????0??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\Minify\
?????文件????????2745??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\Minify\CSSmin.php
?????文件????????5384??2016-11-08?05:36??owncloud\3rdparty\mrclay\minify\min\lib\Minify\Source.php
............此處省略10829個文件信息
- 上一篇:64位、32位VC11VC14運行庫
- 下一篇:基于PHP的超市管理系統.rar
評論
共有 條評論