资源简介
昂酷二手车系统是目前最专业的二手车系统具有拍卖销售,卖车,评估等功能,让小公司也有大舞台。该二手车拍卖系统由昂酷网络有限公司全力打造. 一、昂酷二手车系统前端功能
代码片段和文件信息
/*
* 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 2018-04-03 16:09 car\
文件 210 2016-08-01 17:31 car\.htaccess
目录 0 2018-04-03 15:55 car\Application\
目录 0 2018-04-03 15:51 car\Application\Admin\
目录 0 2018-04-03 15:51 car\Application\Admin\Common\
文件 759 2016-08-01 17:31 car\Application\Admin\Common\function.php
文件 1 2016-08-01 17:31 car\Application\Admin\Common\index.html
目录 0 2018-04-03 15:55 car\Application\Admin\Conf\
文件 8825 2018-04-03 15:55 car\Application\Admin\Conf\config.php
文件 9002 2018-04-02 10:35 car\Application\Admin\Conf\config.php.bak
文件 1 2016-08-01 17:31 car\Application\Admin\Conf\index.html
文件 166 2016-08-01 17:31 car\Application\Admin\Conf\tags.php
目录 0 2018-04-03 15:56 car\Application\Admin\Controller\
文件 8858 2017-07-20 15:55 car\Application\Admin\Controller\AccessController.class.php
文件 6970 2016-08-01 17:31 car\Application\Admin\Controller\AdvertisingController.class.php
文件 49084 2017-04-14 08:39 car\Application\Admin\Controller\AuctionController.class.php
文件 6821 2016-12-12 18:25 car\Application\Admin\Controller\CommonController.class.php
文件 21359 2017-03-17 17:59 car\Application\Admin\Controller\IndexController.class.php
文件 16235 2017-03-08 22:34 car\Application\Admin\Controller\MemberController.class.php
文件 5529 2016-08-01 17:31 car\Application\Admin\Controller\NewsController.class.php
文件 5271 2017-01-05 17:22 car\Application\Admin\Controller\OrderController.class.php
文件 8446 2017-02-22 18:39 car\Application\Admin\Controller\PaymentController.class.php
文件 8855 2017-01-05 09:55 car\Application\Admin\Controller\PublicController.class.php
文件 6680 2017-02-08 14:13 car\Application\Admin\Controller\SellController.class.php
文件 21646 2016-12-29 11:45 car\Application\Admin\Controller\SysDataController.class.php
文件 30916 2018-03-27 14:57 car\Application\Admin\Controller\UploadController.class.php
文件 5438 2017-01-14 09:34 car\Application\Admin\Controller\UserController.class.php
文件 1 2016-08-01 17:31 car\Application\Admin\index.html
目录 0 2018-04-03 15:55 car\Application\Admin\Model\
文件 7497 2016-12-08 14:59 car\Application\Admin\Model\AccessModel.class.php
文件 3619 2016-08-01 17:31 car\Application\Admin\Model\AdvertisingModel.class.php
............此处省略2692个文件信息
- 上一篇:opencv 运动物体跟踪检测
- 下一篇:ProE5.0全套教程.pdf
相关资源
- 科领互动投影系统v4.6绿色版
- DiskGenius Pro V4.6.2.1专业破解版
-
openla
yers最新版完整API v4.6.5 - Quantity one v4.6.2
-
J-li
nk ARM V4.66+Segger_J-li nk_keygen - DiskGeniusProV4.6.2.1.2014.06.13专业破解版
- UBLOX-6M GPS资料包V4.6.zip
- 柚子黑卡城市社交电商小程序V4.6.0完
- NoFuserEx.v.1.2-dotNet.v4.6.1.rar
- Fiddler Web Debugger (V4.6.20171.7553)中文
-
Jli
nk v4.60驱动 - RealVNC.Enterprise.v4.6.1Keymaker_201
评论
共有 条评论