static function CssToken::name in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/CssParser.php \CssToken::name()
- 7.2 QueryPath/CssParser.php \CssToken::name()
2 calls to CssToken::name()
- CssParser::combinator in QueryPath/
CssParser.php - CssParser::throwError in QueryPath/
CssParser.php
File
- QueryPath/
CssParser.php, line 88
Class
Code
static function name($const_int) {
$a = array(
'character',
'star',
'right angle bracket',
'dot',
'octothorp',
'right square bracket',
'left square bracket',
'colon',
'right parenthesis',
'left parenthesis',
'plus',
'tilde',
'equals',
'vertical bar',
'comma',
'space',
'quote',
'single quote',
'backslash',
'carat',
'dollar',
'at',
);
if (isset($a[$const_int]) && is_numeric($const_int)) {
return $a[$const_int];
}
elseif ($const_int == 99) {
return 'a legal non-alphanumeric character';
}
elseif ($const_int == FALSE) {
return 'end of file';
}
return sprintf('illegal character (%s)', $const_int);
}