资源简介
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
相关资源
- 中英文php7.1 文档for Dash Mac
- php tools for visual studio 2015完美破解版
- CodeGear.Delphi.for.PHP V2.1.0.1083 including
- thinkphp5 + ajax 使用formdata提交数据包括
- PHP multipartform-data 远程DOS漏洞
- PHP Tools for VS 2017 V1.28.10848.2017 激活 亲
- xdebug helper for chrome
- T+ OpenAPI Demo For PHP
- jquery.form.js + php ajax提交,包含图片文
- PHP Manager for IIS Windows2008 x64位
- VS.Php for VisualStudio 2015 3.6.8097.1 破解版
- php_memcache-3.0.9 for php7-nts-vc14-x86 扩展
- delphi for php v2.1.0.1083破解版.part01
- xdebug helper 1.6.1 crx for chrome
- php_redis-2.2.7-5.4-ntsts-vc9-x86.zip
- Zend Guard Loader (Runtime for PHP 5.4) fo
- Zend Guard Loader For PHP 5.5 or 5.6
- WFphp订单系统官方正版wforder
- sphinx-for-chinese安装包.rar
- 增加站点地图插件 for phpcms.rar
- jQuery拖动自定义创建表单代码(基于
- 批量添加文章的插件 for phpcms.rar
- windows.inc
评论
共有 条评论