Lines:
1 to 92 of 92
<?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 <https://www.gnu.org/licenses/>. * * @license https://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 */ /** * Defines ctype functions if required * * @version 1.0 */ require_once( dirname( __FILE__ ) . '/class.csstidy_ctype.php' ); /** * Various CSS data needed for correct optimisations etc. * * @version 1.3 */ require( dirname( __FILE__ ) . '/data.inc.php' ); /** * Contains a class for printing CSS code * * @version 1.0 */ require( dirname( __FILE__ ) . '/class.csstidy_print.php' ); /** * Contains a class for optimising CSS code * * @version 1.0 */ require( dirname( __FILE__ ) . '/class.csstidy_optimise.php' ); /* class csstidy */ /* function csstidy::__construct() – Loads standard template and sets default settings */ /* function csstidy::csstidy() – */ /* function csstidy::get_cfg() – Get the value of a setting. */ /* function csstidy::_load_template() – Load a template */ /* function csstidy::set_cfg() – Set the value of a setting. */ /* function csstidy::_add_token() – Adds a token to $this->tokens */ /* function csstidy::log() – Add a message to the message log */ /* function csstidy::_unicode() – Parse unicode notations and find a replacement character */ /* function csstidy::write_page() – Write formatted output to a file */ /* function csstidy::write() – Write plain output to a file */ /* function csstidy::load_template() – Loads a new template */ /* function csstidy::parse_from_url() – Starts parsing from URL */ /* function csstidy::is_token() – Checks if there is a token at the current position */ /* function csstidy::parse() – Parses CSS in $string. The code is saved as array in $this->css */ /* function csstidy::explode_selectors() – Explodes selectors */ /* function csstidy::escaped() – Checks if a character is escaped (and returns true if it is) */ /* function csstidy::css_add_property() – Adds a property with value to the existing CSS code */ /* function csstidy::css_new_media_section() – Start a new media section. */ /* function csstidy::css_new_selector() – Start a new selector. */ /* function csstidy::css_new_property() – Start a new propertie. */ /* function csstidy::merge_css_blocks() – Adds CSS to an existing media/selector */ /* function csstidy::is_important() – Checks if $value is !important. */ /* function csstidy::gvw_important() – Returns a value without !important */ /* function csstidy::property_is_next() – Checks if the next word in a string from pos is a CSS property */ /* function csstidy::property_is_valid() – Checks if a property is valid */ /* function csstidy::parse_string_list() – Accepts a list of strings (e.g., the argument to format() in a @font-face src property) and returns a list of the strings. Converts things like: */