资源简介
这是仿思途的一款旅游系统,下载之后,可以直接一键安装,无需输入导入,可商用!
代码片段和文件信息
/*
* 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 2017-12-05 19:30 admin\
文件 695 2019-04-25 14:12 admin\.htaccess
目录 0 2017-12-05 19:30 admin\application\
文件 5597 2017-12-04 16:50 admin\application\bootstrap.php
目录 0 2017-12-05 14:37 admin\application\cache\
文件 43130 2019-04-25 11:20 admin\application\cache\menu_2.php
文件 42727 2019-04-25 11:20 admin\application\cache\menu_3.php
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\config\
文件 4324 2019-04-25 13:29 admin\application\cache\tplcache\stourtravel\config\authright.php
文件 15132 2019-04-25 11:05 admin\application\cache\tplcache\stourtravel\index.php
文件 25432 2019-04-25 13:30 admin\application\cache\tplcache\stourtravel\index_5.php
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\login\
文件 4506 2019-04-25 11:08 admin\application\cache\tplcache\stourtravel\login\login.php
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\mall\
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\public\
文件 3062 2017-07-03 14:30 admin\application\cache\tplcache\stourtravel\public\leftnav.php
文件 1126 2019-04-25 11:08 admin\application\cache\tplcache\stourtravel\public\public_js.php
文件 593 2017-07-03 14:30 admin\application\cache\tplcache\stourtravel\public\public_min_js.php
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\systemparts\
文件 14054 2019-04-25 11:14 admin\application\cache\tplcache\stourtravel\systemparts\upgrade_manager.php
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\templetmall\
目录 0 2017-12-05 14:37 admin\application\cache\tplcache\stourtravel\upgrade\
文件 11877 2019-04-25 11:16 admin\application\cache\tplcache\stourtravel\upgrade\upgrade.php
目录 0 2017-12-05 14:37 admin\application\classes\
文件 89880 2019-06-05 09:05 admin\application\classes\common.php
目录 0 2017-12-05 14:37 admin\application\classes\controller\
文件 13645 2016-05-23 11:20 admin\application\classes\controller\advertise.php
文件 18644 2017-12-04 16:57 admin\application\classes\controller\advertise5x.php
文件 17521 2019-06-05 09:14 admin\application\classes\controller\app.php
............此处省略10341个文件信息
评论
共有 条评论