vendor/cerdic/css-tidy/class.csstidy.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* CSSTidy - CSS Parser and Optimiser
*
* CSS Parser class
*
* Copyright 2005, 2006, 2007 Florian Schmitz
*
* This file is part of CSSTidy.
*
* CSSTidy is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* CSSTidy is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
* @package csstidy
* @author Florian Schmitz (floele at gmail dot com) 2005-2007
* @author Brett Zamir (brettz9 at yahoo dot com) 2007
* @author Nikolay Matsievsky (speed at webo dot name) 2009-2010
* @author Cedric Morin (cedric at yterium dot com) 2010-2012
* @author Christopher Finke (cfinke at gmail.com) 2012
* @author Mark Scherer (remove $GLOBALS once and for all + PHP5.4 comp) 2012
*/
/**
* Defines ctype functions if required.
*
* @TODO: Make these methods of CSSTidy.
* @since 1.0.0
*/
if (!function_exists('ctype_space')){
/* ctype_space Check for whitespace character(s) */
function ctype_space($text){
return (1===preg_match("/^[ \r\n\t\f]+$/", $text));
}
}
if (!function_exists('ctype_alpha')){
/* ctype_alpha Check for alphabetic character(s) */
function ctype_alpha($text){
return (1===preg_match('/^[a-zA-Z]+$/', $text));
}
}
if (!function_exists('ctype_xdigit')){
/* ctype_xdigit Check for HEX character(s) */
function ctype_xdigit($text){
return (1===preg_match('/^[a-fA-F0-9]+$/', $text));
}
}
/**
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。