资源简介
淘宝优惠券源码,正式授权版(电脑端+手机端)
本程序为淘宝优惠券PHP源码、包含PC端和移动端
代码片段和文件信息
/*
* 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 2019-01-02 09:27 cmsv2.2\
文件 72 2018-03-23 13:16 cmsv2.2\admin.php
目录 0 2018-05-09 10:16 cmsv2.2\app\
文件 6148 2018-03-25 16:57 cmsv2.2\app\.DS_Store
目录 0 2018-06-14 12:32 cmsv2.2\app\Common\
文件 23827 2018-03-23 13:17 cmsv2.2\app\Common\common.php
文件 1371 2018-05-17 12:22 cmsv2.2\app\Common\打开必读.txt
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Driver\
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Driver\TagLib\
文件 3389 2018-03-23 13:16 cmsv2.2\app\Extend\Driver\TagLib\TagLibYh.class.php
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Model\
文件 15933 2018-03-23 13:16 cmsv2.2\app\Extend\Model\RelationModel.class.php
文件 635 2018-03-23 13:16 cmsv2.2\app\Extend\README.txt
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Vendor\
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Vendor\min\
文件 292 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\config-test.php
文件 6850 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\config.php
文件 661 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\groupsConfig.php
文件 1886 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\index.php
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Vendor\min\lib\
文件 30446 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\CSSmin.php
文件 5089 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\DooDigestAuth.php
文件 43622 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\FirePHP.php
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Vendor\min\lib\HTTP\
文件 11781 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\HTTP\ConditionalGet.php
文件 10673 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\HTTP\Encoder.php
文件 15537 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\JSMin.php
文件 52368 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\JSMinPlus.php
目录 0 2018-05-09 10:16 cmsv2.2\app\Extend\Vendor\min\lib\Minify\
文件 2728 2018-03-23 13:17 cmsv2.2\app\Extend\Vendor\min\lib\Minify\Build.php
............此处省略3282个文件信息
评论
共有 条评论