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