class.csstidy-ctype.php
4 years ago
class.csstidy-optimise.php
3 years ago
class.csstidy-print.php
3 years ago
class.csstidy.php
3 years ago
cssparse-rtl.css
4 years ago
cssparse-rtl.min.css
4 years ago
cssparse.css
7 years ago
cssparse.min.css
4 years ago
cssparsed-rtl.css
4 years ago
cssparsed-rtl.min.css
4 years ago
cssparsed.css
14 years ago
cssparsed.min.css
4 years ago
data-wp.inc.php
4 years ago
data.inc.php
3 years ago
lang.inc.php
4 years ago
wordpress-standard.tpl
11 years ago
class.csstidy-ctype.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * CSSTidy - CSS Parser and Optimiser |
| 4 | * |
| 5 | * CSS ctype functions |
| 6 | * Defines some functions that can be not defined. |
| 7 | * |
| 8 | * This file is part of CSSTidy. |
| 9 | * |
| 10 | * CSSTidy is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * CSSTidy is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with CSSTidy; if not, write to the Free Software |
| 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 23 | * |
| 24 | * @license https://opensource.org/licenses/gpl-license.php GNU Public License |
| 25 | * @package csstidy |
| 26 | * @author Nikolay Matsievsky (speed at webo dot name) 2009-2010 |
| 27 | * @version 1.0 |
| 28 | */ |
| 29 | |
| 30 | if ( ! function_exists( 'ctype_space' ) ) { |
| 31 | |
| 32 | /** |
| 33 | * Check for whitespace character(s). |
| 34 | * |
| 35 | * @param string $text - the text. |
| 36 | */ |
| 37 | function ctype_space( $text ) { |
| 38 | return ! preg_match( "/[^\s\r\n\t\f]/", $text ); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | if ( ! function_exists( 'ctype_alpha' ) ) { |
| 43 | |
| 44 | /** |
| 45 | * Check for alphabetic character(s) |
| 46 | * |
| 47 | * @param string $text - the text. |
| 48 | */ |
| 49 | function ctype_alpha( $text ) { |
| 50 | return preg_match( '/[a-zA-Z]/', $text ); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 |