function lessc::literal in Less CSS Preprocessor 6.3
Same name and namespace in other branches
- 6 lessc.inc.php \lessc::literal()
17 calls to lessc::literal()
- lessc::accessor in lessphp/
lessc.inc.php - lessc::argumentDef in lessphp/
lessc.inc.php - lessc::argumentValues in lessphp/
lessc.inc.php - lessc::assign in lessphp/
lessc.inc.php - lessc::chunk in lessphp/
lessc.inc.php
File
- lessphp/
lessc.inc.php, line 1152
Class
Code
function literal($what, $eatWhitespace = true) {
// this is here mainly prevent notice from { } string accessor
if ($this->count >= strlen($this->buffer)) {
return false;
}
// shortcut on single letter
if (!$eatWhitespace and strlen($what) == 1) {
if ($this->buffer[$this->count] == $what) {
$this->count++;
return true;
}
else {
return false;
}
}
return $this
->match($this
->preg_quote($what), $m, $eatWhitespace);
}